/* Thereish — thereish.work. Brand: ../brand/BRAND.md (Direction A). No third parties. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-600-italic.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* The headline family lives here only, so a font swap is a one-line change. */
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --paper: #F6F8F7;
  --ink: #172A46;
  --slate: #3A4A63;
  --fog: #5A6A80;
  --mist: #E7ECEA;
  --rule: #DCE2DF;
  --field: #3FA97F;
  --deep-field: #247457;

  --bg: var(--paper);
  --text: var(--ink);
  --text-2: var(--slate);
  --text-3: var(--fog);
  --card: var(--mist);
  --line: var(--rule);
  --link: var(--deep-field);
  --button-bg: var(--deep-field);
  --button-text: #FFFFFF;
  --dot: var(--field);
  --accent-text: var(--deep-field);
  --ring: var(--mist);
  --glyph-ring: var(--ink);
  --frame: var(--ink);
  --focus: var(--deep-field);

  --radius: 18px;
  --measure: 38rem;
  --page: 70rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1B2E;
    --text: #F4F6F5;
    --text-2: #C3CCD8;
    --text-3: #9AA8BB;
    --card: #17263D;
    --line: #26385A;
    --link: #4CC393;
    --button-bg: #4CC393;
    --button-text: var(--ink);
    --dot: #4CC393;
    --accent-text: #4CC393;
    --ring: #1B2C47;
    --glyph-ring: #F4F6F5;
    --frame: #2A3C5C;
    --focus: #4CC393;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--button-bg); color: var(--button-text);
  padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.muted { color: var(--text-2); }
.small { font-size: 0.9375rem; }

/* Header */
.site-header { padding-block: 1.1rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.glyph-ring { stroke: var(--glyph-ring); }
.glyph-dot { fill: var(--dot); }
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem;
  line-height: 1; letter-spacing: -0.01em;
}
/* The wordmark's ı carries a round Field dot set slightly right: close, not exact. */
.wordmark .wm-i { position: relative; }
.wordmark .wm-i::after {
  content: ""; position: absolute;
  width: 0.16em; height: 0.16em; border-radius: 50%;
  background: var(--dot);
  left: 0.12em; top: 0.2em;
}
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); text-decoration: underline; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--button-bg); color: var(--button-text);
  font-weight: 600; text-decoration: none;
  padding: 0.8rem 1.5rem; border-radius: 999px;
}
.button:hover { filter: brightness(1.08); }

/* Hero */
.hero { padding-block: 2.5rem 3.5rem; }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem;
}
.lede { font-size: 1.2rem; color: var(--text-2); max-width: 32rem; }
.sign-off { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-2); margin-top: 1.5rem; }
.sign-off em { font-style: italic; color: var(--accent-text); }
.hero { overflow: hidden; }
.hero-art { position: relative; display: grid; place-items: center; padding: 3rem 0 2rem; }
/* Mist ring and Field dot in the glyph's proportions: the dot sits on the 45° line,
   just inside the ring. The ring sits up and right of the phone so the dot shows. */
.orbit {
  --w: min(84vw, 26rem);
  position: absolute; left: 50%; top: 50%;
  width: var(--w); aspect-ratio: 1; border-radius: 50%;
  border: calc(var(--w) * 0.13) solid var(--ring);
  transform: translate(-50%, -50%) translate(24%, -14%);
}
.orbit::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--dot);
  width: calc(var(--w) * 0.3); aspect-ratio: 1;
  left: calc(var(--w) * 0.376); top: calc(var(--w) * 0.064);
}

/* Screenshots in plain rounded frames (no device artwork). */
.shot {
  --bezel: 8px; --frame-radius: 2.4rem;
  position: relative; z-index: 1; margin: 0;
  width: min(100%, 17.5rem);
  border: var(--bezel) solid var(--frame); border-radius: var(--frame-radius);
  overflow: hidden; background: var(--frame);
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(15 27 46 / 0.35);
}
/* The screen is clipped to the frame's inner curve on all four corners itself, so no
   crop can poke past the frame (and browsers that skip clipping composited images to
   a rounded parent still get round corners). */
.shot picture, .shot img {
  display: block; width: 100%;
  border-radius: calc(var(--frame-radius) - var(--bezel));
  overflow: hidden;
}
/* The Lock Screen card is its own rounded shape: no phone frame. */
.shot.activity { --bezel: 0px; --frame-radius: 1.4rem; width: min(100%, 24rem); border: 0; background: #0F1B2E; }

/* Sections */
.section { padding-block: 3.5rem; }
.section.alt { background: var(--card); }
.section-intro { max-width: var(--measure); margin-bottom: 2rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps li {
  counter-increment: step; background: var(--bg); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%; margin-bottom: 0.75rem;
  background: var(--dot); color: var(--ink); font-weight: 600;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--text-2); }

.feature { display: grid; gap: 2rem; align-items: center; padding-block: 2.25rem; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .shot { justify-self: center; }
.feature p { color: var(--text-2); max-width: 34rem; }

.privacy-points { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.privacy-points li { padding-left: 1.6rem; position: relative; }
.privacy-points li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  border: 2px solid var(--text); background: transparent;
}

.coming-soon { text-align: center; }
.coming-soon .prose { margin-inline: auto; }

/* Content pages */
.page { padding-block: 2rem 4rem; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.page h2 { font-size: 1.6rem; margin-top: 2.5rem; scroll-margin-top: 1rem; }
.page h3 { font-size: 1.2rem; margin-top: 1.75rem; scroll-margin-top: 1rem; }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: 0.4rem; }
.toc { background: var(--card); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 1.5rem 0 2rem; }
.toc h2 { font-family: var(--font-body); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.5rem; }
.toc ul { margin: 0; }
.meta { color: var(--text-3); font-size: 0.9375rem; }
.faq h3 { margin-top: 2rem; }
.contact-card { background: var(--card); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 1.5rem 0; }
.contact-card p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; color: var(--text-2); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 0.75rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0; }

.not-found { text-align: center; padding-block: 5rem; }
.not-found .prose { margin-inline: auto; }

@media (min-width: 52rem) {
  .hero { padding-block: 3.5rem 5rem; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature:nth-of-type(even) .feature-text { order: 2; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
