/* thisismatt.net — one stylesheet. Palette is A6 "Taupe". */
:root { --bg: #3b3733; --fg: #ece6da; --mint: #8fd3bd; --gold: #a88a4a; --mute: #c9c2b4; --rule: rgba(236,230,218,.12); --pad: clamp(20px, 4vw, 56px); }
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; color: var(--fg); font: 16px/1.5 Archivo, 'Helvetica Neue', Arial, sans-serif; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
.px { image-rendering: pixelated; }

header { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 28px var(--pad); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-stretch: 75%; font-weight: 600; }
header a { color: var(--fg); padding: 8px 0; white-space: nowrap; }
header a.on { color: var(--mint); }
footer { padding: 24px var(--pad); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); opacity: .6; }

h1, h2, .display { font-family: 'Pixelify Sans', Chicago, monospace; font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(56px, 8vw, 118px); line-height: .86; margin: 0 0 20px; }
h2 { font-size: 40px; line-height: 1; margin: 0 0 8px; }
h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--mint); margin: 0 0 6px; }
.k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--mint); margin: 0 0 8px; }
.lede { font-size: clamp(18px, 1.6vw, 22px); font-stretch: 85%; font-weight: 300; line-height: 1.2; max-width: 26ch; margin: 0 0 20px; }
.lede b { color: var(--mint); font-weight: 800; }
p { max-width: 60ch; color: var(--mute); font-weight: 300; margin: 0 0 12px; }
p strong { color: var(--fg); font-weight: 600; }
.cta { display: inline-block; padding: 12px 18px; border: 1px solid var(--mint); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.cta.soon { border-color: var(--mute); color: var(--mute); cursor: default; }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--pad); align-items: end; min-height: calc(100svh - 84px); padding: 0 var(--pad) 0; }
.hero .copy { padding-bottom: var(--pad); }
.portrait { display: block; width: min(560px, 38vw); opacity: .92; }
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--pad); padding: var(--pad); border-top: 1px solid var(--rule); }
.work ul { list-style: none; padding: 0; margin: 0; max-width: 44ch; }
.work li { margin: 0 0 8px; color: var(--mute); font-weight: 300; }
.work li a { color: var(--fg); font-weight: 600; }
.work li a:hover { color: var(--mint); }
.stage { position: fixed; inset: 0; z-index: 0; touch-action: pan-y; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#label { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); font-family: 'Pixelify Sans', monospace; font-size: 17px; color: var(--mint); background: var(--bg); padding: 3px 9px; border: 1px solid var(--mint); white-space: nowrap; }
#label[hidden] { display: none; }
.hint { position: fixed; right: var(--pad); bottom: 20px; z-index: 1; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); opacity: .7; }
.home header, .home .hero, .home .work, .home footer,
.app header, .app section, .app footer { position: relative; z-index: 1; pointer-events: none; }
.home a, .app a, .app img { pointer-events: auto; }
.app { touch-action: pan-y; user-select: none; }
.app .stage { opacity: .8; }

/* app page */
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--pad); align-items: end; padding: 4vh var(--pad) var(--pad); }
.app-hero .shot { width: min(300px, 32vw); }
.tilt-l, .tilt-r { border-radius: 4.5% / 3%; box-shadow: 0 30px 60px -10px rgba(0,0,0,.55), 0 10px 20px -8px rgba(0,0,0,.4); }
.tilt-l { transform: perspective(1200px) rotateY(-14deg) rotateX(4deg); }
.tilt-r { transform: perspective(1600px) rotateY(10deg) rotateX(3deg); border-radius: 2.5% / 2%; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px var(--pad); padding: var(--pad); border-top: 1px solid var(--rule); }
.features p { margin: 0; }
.blocks { display: grid; gap: clamp(48px, 8vw, 120px); padding: var(--pad); border-top: 1px solid var(--rule); }
.block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pad); align-items: center; }
.block img { width: min(300px, 32vw); justify-self: end; }
.block:nth-child(even) img { order: 2; justify-self: start; }
.block h3 { font-size: 22px; letter-spacing: 0; text-transform: none; font-family: 'Pixelify Sans', Chicago, monospace; font-weight: 400; color: var(--fg); margin: 0 0 10px; }
.features.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fine { padding: var(--pad); border-top: 1px solid var(--rule); }

/* prose pages */
.prose { padding: 4vh var(--pad) var(--pad); max-width: 72ch; }
.prose h1 { font-size: clamp(40px, 5vw, 64px); }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose p { max-width: none; }
.prose .meta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8vh; }
  .portrait { width: min(70vw, 420px); justify-self: end; margin-right: calc(-1 * var(--pad)); }
  .app-hero { grid-template-columns: 1fr; }
  .app-hero .shot { width: min(60vw, 300px); justify-self: center; }
  .tilt-l, .tilt-r { transform: none; }
  .block { grid-template-columns: 1fr; }
  .block img, .block:nth-child(even) img { order: 0; width: min(60vw, 300px); justify-self: center; }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hint { display: none; } }
