/* ==========================================================================
   QUIET THEME — paper/ink/pine, shared by the homepage and about page.
   Scoped under body.page-quiet; other pages keep style.css untouched.
   ========================================================================== */

.page-quiet {
  --paper:      #F5F6F4;
  --ink:        #15191A;
  --ink-muted:  #5C6462;
  --rule:       #DCDFDA;
  --accent:     #1F4D3F;

  --font-body:  "Inter Tight", -apple-system, system-ui, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, monospace;

  --gap: 72px;

  background-color: var(--paper);
  background-image: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* --- Layout: single column, one spacing rule for all sections --- */
.page-quiet main {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* Reading measure: headings may span the column, running text may not */
.page-quiet main p,
.page-quiet main li {
  max-width: 66ch;
}

.page-quiet main > * + * {
  margin-top: var(--gap);
}

/* The lead project is isolated with 1.5x the section gap */
.page-quiet main > .lead-project,
.page-quiet main > .lead-project + * {
  margin-top: calc(var(--gap) * 1.5);
}

/* --- Nav & footer: paper + hairline, nothing heavier --- */
.page-quiet .site-nav {
  position: static;
  background-color: var(--paper);
  border-bottom: 1px solid var(--rule);
}

/* Nav and footer line up with the 680px content column */
.page-quiet .site-nav-inner,
.page-quiet .footer-inner {
  max-width: 680px;
  padding: 0 24px;
  justify-content: space-between;
}

.page-quiet .nav-brand {
  color: var(--ink);
  font-family: var(--font-mono);
}

.page-quiet .nav-list li a {
  color: var(--ink-muted);
  background: none;
}

.page-quiet .nav-list li a:hover {
  color: var(--ink);
  background: none;
}

.page-quiet .site-footer {
  background-color: var(--paper);
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
}

.page-quiet .site-footer .footer-brand,
.page-quiet .site-footer .footer-copy {
  color: var(--ink-muted);
}

.page-quiet .site-footer a {
  color: var(--ink);
}

.page-quiet .footer-right a + a::before {
  color: var(--ink-muted);
}

/* --- Intro --- */
.page-quiet .intro h1 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

.page-quiet .intro-line {
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--ink);
}

.page-quiet .intro-sub {
  margin: 0;
}

/* --- Lead project: set at display scale, no card, no box --- */
.page-quiet .lead-project h2 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 20px 0 16px;
  color: var(--ink);
}

.page-quiet .lead-project p {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* Metrics strip — the one place the page raises its voice */
.page-quiet .metrics {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin: 28px 0;
}

.page-quiet .store-badge {
  display: inline-block;
  margin-right: 20px;
  vertical-align: middle;
}

.page-quiet .store-badge img {
  height: 44px;
  width: auto;
}

/* Screenshot ships inside its own device frame — no extra border */
.page-quiet .lead-shot {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

/* Wide screens: app screenshot sits in a second column to the right of
   the lead text, top-aligned with the project title */
@media (min-width: 1280px) {
  .page-quiet .lead-project:has(.lead-shot) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 175px;
    column-gap: 56px;
    width: calc(100% + 231px);
  }

  .page-quiet .lead-project:has(.lead-shot) > * {
    grid-column: 1;
  }

  .page-quiet .lead-project .lead-shot {
    grid-column: 2;
    grid-row: 2 / span 5;
    align-self: start;
    margin-top: 20px;
  }
}

/* --- Minor sections: body scale, eyebrow does the separating --- */
.page-quiet .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.page-quiet .minor p {
  margin: 0 0 10px;
}

.page-quiet .plain-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.page-quiet .plain-list li {
  margin: 0 0 10px;
}

/* Minor sections stay on one size and one color; titles separate by
   weight only, gray is reserved for dates and eyebrows */
.page-quiet .plain-list strong {
  font-weight: 500;
}

.page-quiet .plain-list .muted {
  font-size: inherit;
}

/* Tight variant: compact bulleted lines (day job) */
.page-quiet .tight li {
  margin: 0 0 4px;
  padding-left: 16px;
  position: relative;
}

.page-quiet .tight li::before {
  content: "\00B7";
  position: absolute;
  left: 2px;
  color: var(--ink-muted);
}

.page-quiet .muted {
  font-size: 15px;
  color: var(--ink-muted);
}

/* --- Links & focus --- */
.page-quiet main a {
  color: var(--accent);
}

.page-quiet .quiet-link {
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}

.page-quiet .quiet-link:hover {
  text-decoration-color: var(--accent);
}

.page-quiet a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Mobile --- */
@media (max-width: 480px) {
  .page-quiet {
    --gap: 52px;
  }

  .page-quiet main {
    padding: 44px 20px 72px;
  }

  .page-quiet .intro h1 {
    font-size: 32px;
  }

  .page-quiet .intro-line {
    font-size: 19px;
  }

  .page-quiet .lead-project h2 {
    font-size: 27px;
  }

  .page-quiet .lead-project p {
    font-size: 17px;
  }
}
