/* Direction 2: Graphite studio. Dark ground, warm off-white type, Eucalyptus the single accent.
   Depth comes from layered surfaces (ground, panel, well); each screenshot lights its own well. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/Newsreader-normal-400_500.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/Newsreader-italic-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/Archivo-normal-400_700.woff2") format("woff2"); }
@font-face { font-family: "Kairos Greek"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/KairosGreek-400.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono-normal-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/IBMPlexMono-normal-500.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #16191b; --panel: #1e2225; --panel-hi: #24292c; --well: #101315;
  --ink: #ece7de; --mute: #a9a59d; --faint: #7d7a74; --line: #292c2d; --acc: #9fc2bd;
  --display: "Newsreader", "Kairos Greek", "Iowan Old Style", "Palatino", serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --edge: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
::selection { background: var(--acc); color: var(--ground); }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(236, 231, 222, .3); transition: text-decoration-color .25s ease, color .25s ease; }
a:hover { color: var(--acc); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 4px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }

.top, main, footer { max-width: 1240px; margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 30px; padding-bottom: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 600 15px/1 var(--sans); text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { height: 22px; width: auto; display: block; }
.where, .label, .status { font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.where { color: var(--mute); }

.hero { padding: clamp(56px, 10vh, 112px) 0 clamp(64px, 10vh, 112px); }
h1 { font-family: var(--display); font-size: clamp(36px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.03em; max-width: 11.5em; color: var(--ink); }
h1 i { color: var(--acc); letter-spacing: -0.02em; }

.block { padding-bottom: 96px; }
.label { color: var(--mute); display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }

/* Surfaces: ground < panel < well. A panel is lifted by a top highlight and a long soft shadow. */
.panel {
  position: relative; background: linear-gradient(180deg, var(--panel-hi), var(--panel) 140px);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .035), 0 30px 60px -30px rgba(0, 0, 0, .6);
}

/* Products */
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; padding: 48px 48px 48px 56px; align-items: center; }
.name { display: flex; align-items: center; gap: 18px; }
.tile { position: relative; display: block; flex: none; width: 44px; height: 44px; border-radius: 22.4%; overflow: hidden; }
.tile img { display: block; width: 100%; height: 100%; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.product h3 { font-family: var(--display); font-size: clamp(28px, 2.6vw, 36px); line-height: 1; letter-spacing: -0.025em; }
.claim { margin-top: 28px; max-width: 34em; }
.claim p { font-size: 16px; line-height: 1.7; color: #d9d4cb; }
.claim .disclaimer { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--ink); }

.status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; color: var(--mute); margin-top: 32px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.25px solid currentColor; margin-right: 12px; }
[data-live] .status::before { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 10px rgba(159, 194, 189, .7); }
.status > * { white-space: nowrap; }
.status > *:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--faint); display: inline-block; }
.status a { color: var(--ink); text-transform: none; letter-spacing: .02em; font-size: 12.5px; }

/* The well: a recessed stage where the screenshot is the only light */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--well); border-radius: 20px;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .05);
  display: grid; place-items: center;
}
.product .stage { padding: 36px 0; }
.shot { position: relative; display: block; width: 212px; border-radius: 28px; }
.shot::before {
  content: ""; position: absolute; inset: -6% -22%; z-index: -1;
  background: var(--src) center / cover no-repeat;
  filter: blur(42px) saturate(1.6); opacity: .26; border-radius: 50%;
  transition: opacity .8s var(--ease);
}
.shot img {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 360 / 779; object-fit: cover;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 6px rgba(10, 12, 13, .9), 0 0 0 7px rgba(255, 255, 255, .07), 0 24px 50px -10px rgba(0, 0, 0, .7);
  transition: transform .8s var(--ease);
}
@media (hover: hover) {
  .panel:hover .shot::before { opacity: .55; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .panel:hover .shot img { transform: translateY(-4px); }
}

/* Design */
.design { display: grid; gap: 24px; padding: 56px 64px; max-width: none; }
.design .lockup { display: block; width: 340px; max-width: 100%; height: auto; }
.design p:not(.status) { font-size: 16px; line-height: 1.7; color: #d9d4cb; max-width: 34em; }
.design .status { margin-top: 0; }

/* In development: a two-column catalogue of panels, each with its own lit well */
.dev { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dev > li { display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 32px; padding: 14px 32px 14px 14px; align-items: start; }
.dev > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dev > li:last-child:nth-child(odd) p:not(.status) { max-width: 36em; }
.dev .stage { grid-column: 1; grid-row: 1 / 5; height: 300px; place-items: start center; padding-top: 30px; border-radius: 18px; }
.dev .shot { width: 156px; border-radius: 22px; }
.dev .shot img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 5px rgba(10, 12, 13, .9), 0 0 0 6px rgba(255, 255, 255, .07), 0 24px 50px -10px rgba(0, 0, 0, .7); }
.dev .head { grid-column: 2; display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.dev .tile { width: 28px; height: 28px; }
.dev h3 { font-family: var(--display); font-size: 24px; line-height: 1; letter-spacing: -0.02em; }
.dev p:not(.status) { grid-column: 2; margin-top: 12px; font-size: 14.5px; line-height: 1.62; color: var(--mute); }
.dev .status { grid-column: 2; margin-top: 18px; padding-bottom: 20px; font-size: 11px; letter-spacing: .1em; align-self: start; }
.dev .status a { font-size: 12px; letter-spacing: 0; }

/* Contact */
.contact p { font-family: var(--display); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -0.015em; max-width: 20em; }
.contact a { color: var(--acc); font-style: italic; text-decoration-color: rgba(159, 194, 189, .4); text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact { padding-bottom: 72px; }

footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px;
  padding-top: 22px; padding-bottom: 48px;
  font: 400 13.5px/1.5 var(--sans); color: var(--mute);
}
footer { position: relative; }
footer::before { content: ""; position: absolute; top: 0; left: var(--edge); right: var(--edge); height: 1px; background: var(--line); }
footer i { font-family: var(--display); font-size: 16px; color: var(--ink); }

@media (max-width: 1080px) {
  .product { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 44px; }
  .dev { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .product { grid-template-columns: minmax(0, 1fr); padding: 28px 22px 22px; gap: 28px; border-radius: 24px; }
  .product .stage { padding: 32px 0; }
  .product .shot { width: 200px; }
  .design { padding: 32px 24px; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .top { padding-top: 22px; padding-bottom: 22px; }
  .where { display: none; }
  .hero { padding: 44px 0 56px; }
  h1 { font-size: clamp(30px, 8.6vw, 38px); line-height: 1.04; }
  .block { padding-bottom: 64px; }
  .product h3 { font-size: 28px; }
  .tile { width: 40px; height: 40px; }
  .claim p { font-size: 15.5px; }
  .dev { gap: 16px; }
  .dev > li { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 4px; }
  .dev .stage { grid-row: auto; height: 250px; }
  .dev .shot { width: 150px; }
  .dev .head, .dev p:not(.status), .dev .status { grid-column: 1; margin-left: 10px; margin-right: 10px; }
  footer { flex-direction: column; }
}

/* Hero (2026-10-26, Eric): the name, what it means, and the apps, each a way into its section. */
.hero h1.mark { max-width: none; line-height: 0; }
.hero h1.mark img { display: block; width: auto; height: clamp(44px, 6vw, 66px); max-width: 100%; }
@media (max-width: 600px) { .hero h1.mark img { width: 100%; height: auto; max-width: 340px; } }
.hero .def { margin-top: 16px; font-family: var(--display); font-size: clamp(16.5px, 1.5vw, 19px); color: var(--mute); }
.hero .def .w { font-style: italic; color: var(--ink); }
.hero .def .gk { color: var(--acc); }
.hero .apps { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero .app { position: relative; display: block; border-radius: 12px; text-decoration: none; transition: transform .35s var(--ease); }
.hero .app img { display: block; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.45); transition: box-shadow .35s var(--ease); }
.hero .app:hover, .hero .app:focus-visible { transform: translateY(-4px); }
.hero .app:hover img, .hero .app:focus-visible img { box-shadow: 0 0 0 1px rgba(159,194,189,.35), 0 14px 34px rgba(0,0,0,.5), 0 0 30px rgba(159,194,189,.18); }
.hero .tip { position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, -4px); white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s var(--ease); }
.hero .app:hover .tip, .hero .app:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .hero .apps { display: grid; grid-template-columns: repeat(9, minmax(0, 32px)); gap: 7px; } .hero .app img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; } .hero .tip { display: none; } }

/* A tile lands on its section: the panel clears the top and glows once. */
.products > li, .block li.panel { scroll-margin-top: 32px; }
html { scroll-behavior: smooth; }
.panel:target { animation: arrive 1.8s var(--ease) 1; }
@keyframes arrive { 0% { box-shadow: 0 0 0 1px rgba(159,194,189,.7), 0 0 60px rgba(159,194,189,.22); } 100% { box-shadow: 0 0 0 1px rgba(159,194,189,0), 0 0 60px rgba(159,194,189,0); } }

/* A soft light follows the pointer across a panel (fine pointers only). */
@media (hover: hover) and (pointer: fine) {
  .panel { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(236,231,222,.045), transparent 60%), linear-gradient(180deg, var(--panel-hi), var(--panel) 140px); }
}

/* Panels rise in as they enter the view, once. */
.js .panel.reveal { opacity: 0; transform: translateY(18px); }
.js .panel.reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* Local time in Amherst beside the place name. */
.where .clock::before { content: " · "; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .app, .hero .app img, .hero .tip { transition: none; }
  .panel:target { animation: none; box-shadow: 0 0 0 1px rgba(159,194,189,.5); }
  .js .panel.reveal { opacity: 1; transform: none; }
}


/* The principles line: the studio's promises, set large, once. */
.principles { padding: clamp(40px, 8vh, 96px) 0 clamp(28px, 5vh, 60px); }
.principles p { font-family: var(--display); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.18; letter-spacing: -.025em; color: var(--ink); max-width: 14em; }
.principles p span { display: block; }
.principles p span:last-child { color: var(--acc); font-style: italic; }

/* Documents (privacy, terms, Sift, 404): the homepage's header and footer around one reading column.
   The markup is main.doc > .meta (header), the text, footer. One column width for every block, about 68
   characters of body text per line (36rem of Archivo at 17.5px). */
.doc { --measure: 36rem; }
.doc .meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 30px 0; }
.doc .meta > a { display: inline-flex; align-items: center; gap: 12px; font: 600 15px/1 var(--sans); text-decoration: none; color: var(--ink); }
.doc .meta > a:hover { color: var(--ink); }
.doc .meta svg { height: 22px; width: auto; display: block; }
.doc > :not(.meta):not(footer) { max-width: var(--measure); }
.doc .kicker { margin-top: clamp(56px, 11vh, 120px); color: var(--mute); display: flex; align-items: center; gap: 14px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.doc .kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.doc h1 { margin-top: 20px; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.02; letter-spacing: -0.03em; max-width: 14em; }
.doc .lede { margin-top: 20px; padding-bottom: 36px; font-family: var(--display); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.42; letter-spacing: -0.005em; color: var(--mute); position: relative; }
.doc .lede::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 1px; background: var(--acc); opacity: .6; }
.doc .lede:has(+ footer) { padding-bottom: 0; }
.doc .lede:has(+ footer)::after { content: none; }
.doc h2 { margin: 48px 0 12px; font-family: var(--display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.012em; color: var(--ink); }
.doc .lede + h2 { margin-top: 48px; }
.doc p:not(.kicker):not(.lede):not(.updated), .doc li { font-size: 16px; line-height: 1.72; }
.doc p:not(.kicker):not(.lede):not(.updated) { margin: 0 0 18px; }
.doc ul { margin: 0 0 18px; padding-left: 1.15em; }
.doc li { margin: 0 0 12px; padding-left: .35em; }
.doc li::marker { color: var(--acc); }
.doc strong { font-weight: 600; color: var(--ink); }
.doc > :not(.meta):not(footer) a { color: var(--acc); text-decoration-color: rgba(159, 194, 189, .4); overflow-wrap: anywhere; }
.doc > :not(.meta):not(footer) a:hover { text-decoration-color: currentColor; }
.doc .updated { margin-top: 64px; color: var(--mute); font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.doc footer { max-width: none; margin-top: clamp(80px, 14vh, 140px); padding-left: 0; padding-right: 0; }
.doc footer::before { left: 0; right: 0; }
@media (max-width: 600px) {
  .doc .meta { padding: 22px 0; }
  .doc .kicker { margin-top: 48px; }
  .doc h1 { font-size: clamp(28px, 8.4vw, 36px); }
  .doc h2 { margin-top: 44px; }
  .doc p:not(.kicker):not(.lede):not(.updated), .doc li { font-size: 15.5px; line-height: 1.7; }
}

/* Each screenshot's glow is its own image, named here so pages need no style attribute (a strict CSP). */
#amble .shot { --src: url(/products/screens/amble.jpg); }
#valley-common .shot { --src: url(/products/screens/valley-common.jpg); }
#varia .shot { --src: url(/products/screens/varia.jpg); }
#lift .shot { --src: url(/products/screens/lift.jpg); }
#unknot .shot { --src: url(/products/screens/unknot.jpg); }
#kinlura .shot { --src: url(/products/screens/kinlura.jpg); }
#lyra .shot { --src: url(/products/screens/lyra.jpg); }
#parquet .shot { --src: url(/products/screens/parquet.jpg); }
#morsel .shot { --src: url(/products/screens/morsel.jpg); }
