/* GlazeTag public site. One stylesheet, no scripts, no webfonts, nothing third
   party. A privacy page that fetches a font from another company in order to
   say it collects nothing is a page that hands the reader's address to that
   company. So: system fonts only, everything served from Pages.

   The visual idea is a specimen archive. Porcelain paper, charcoal text,
   cobalt for anything actionable, oxidised copper used sparingly. Tile codes
   are set like the label on a museum specimen card: mono, letterspaced, above
   a hairline rule. */

:root {
  --porcelain:      #f7f4ed;
  --porcelain-deep: #efe9dd;
  --card:           #fffdf9;
  --charcoal:       #201e1a;
  --charcoal-soft:  #57524a;
  --muted:          #6f6960;
  --cobalt:         #1c3d8f;
  --cobalt-deep:    #142c68;
  --cobalt-wash:    #eaeefa;
  --copper:         #8d4f26;
  --rule:           #ddd5c5;
  --rule-soft:      #eae3d5;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wide: 62rem;
  --prose: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--charcoal);
  background: var(--porcelain);
  /* One quiet wash at the top so the page reads as paper, not as a gradient. */
  background-image: linear-gradient(180deg, var(--porcelain-deep) 0%, var(--porcelain) 22rem);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.wrap.prose { max-width: var(--prose); }

/* ---------- accessibility ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cobalt);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
  border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- specimen label ---------- */

.specimen {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.specimen .code { color: var(--cobalt); font-weight: 600; }

.label-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 1.5rem;
}

/* ---------- header ---------- */

header.site { padding: 1.5rem 0 0; }
header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}
.word {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-decoration: none;
}
.word .tag { color: var(--cobalt); }
nav.site { display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav.site a {
  font-size: 0.94rem;
  color: var(--charcoal-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
nav.site a:hover, nav.site a:focus-visible { color: var(--cobalt); border-bottom-color: var(--cobalt); }
nav.site a[aria-current="page"] { color: var(--charcoal); border-bottom-color: var(--rule); }

/* ---------- hero ---------- */

.hero { padding: 3.5rem 0 2.5rem; }
.hero h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 700;
  margin: 0 0 1rem;
  max-width: 18ch;
  text-wrap: balance;
}
.hero .lede {
  font-size: clamp(1.06rem, 2.4vw, 1.22rem);
  line-height: 1.55;
  color: var(--charcoal-soft);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

.status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  background: var(--cobalt-wash);
  border: 1px solid #ccd6f0;
  border-radius: 3px;
  padding: 0.4rem 0.7rem;
  margin: 0 0 1.5rem;
}

.price-line {
  font-size: 0.97rem;
  color: var(--charcoal-soft);
  margin: 0;
  max-width: 48ch;
}
.price-line strong { color: var(--charcoal); font-weight: 650; }

/* ---------- sections ---------- */

section { padding: 2.75rem 0; }
section + section { border-top: 1px solid var(--rule-soft); }

h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 680;
  margin: 0 0 1rem;
  max-width: 26ch;
  text-wrap: balance;
}
h3 {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  margin: 0 0 0.4rem;
}
p { margin: 0 0 1rem; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
.sub { color: var(--charcoal-soft); max-width: 58ch; }

a { color: var(--cobalt); text-underline-offset: 0.16em; }
a:hover { color: var(--cobalt-deep); }

/* ---------- specimen record card ---------- */

.record {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.4rem 1.5rem 1.5rem;
  max-width: 34rem;
}
.record dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  gap: 0.1rem 1.25rem;
}
.record dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule-soft);
}
.record dd {
  margin: 0;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.95rem;
}
.record dl > dt:first-of-type, .record dl > dt:first-of-type + dd { border-top: 0; }
.record .layers { font-family: var(--mono); font-size: 0.86rem; line-height: 1.55; }

.record-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
  max-width: 34rem;
}

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem 2.25rem;
  margin: 1.75rem 0 0;
}
.grid .item p { font-size: 0.94rem; color: var(--charcoal-soft); margin: 0; }
.grid .item .n {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--cobalt);
  display: block;
  margin: 0 0 0.45rem;
}

/* ---------- prose pages ---------- */

.page-head { padding: 2.5rem 0 0.5rem; }
.page-head h1 {
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  line-height: 1.13;
  letter-spacing: -0.028em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.page-head .sub { font-size: 1.03rem; }

.prose h2 { margin-top: 2.5rem; }
.prose h2:first-of-type { margin-top: 1.5rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, ul.prose { padding-left: 1.15rem; margin: 0 0 1rem; max-width: 64ch; }
.prose li, ul.prose li { margin: 0 0 0.5rem; }
.prose li::marker, ul.prose li::marker { color: var(--copper); }

.qa { border-top: 1px solid var(--rule-soft); padding: 1.4rem 0 0; margin: 1.4rem 0 0; }
.qa h3 { margin-top: 0; }
.qa p { font-size: 0.96rem; color: var(--charcoal-soft); }

.callout {
  border-left: 3px solid var(--copper);
  background: #fbf7f1;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  border-radius: 0 3px 3px 0;
}
.callout p { font-size: 0.94rem; margin: 0; }

.contact {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 0;
}
.contact p { margin: 0; font-size: 0.96rem; }
.contact .mail { font-family: var(--mono); font-size: 1rem; font-weight: 600; }
.contact .contact-note { margin-top: 0.5rem; }
.filename { font-family: var(--mono); font-size: 0.9em; word-break: break-all; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  font-size: 0.89rem;
  color: var(--muted);
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer.site a { color: var(--charcoal-soft); }
footer.site a:hover { color: var(--cobalt); }

/* ---------- 404 ---------- */

.notfound { padding: 5rem 0 4rem; }
.notfound h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -0.028em; margin: 0 0 0.75rem; }

/* ---------- narrow screens ---------- */

@media (max-width: 30rem) {
  body { font-size: 16px; }
  .wrap { padding: 0 1.1rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .record { padding: 1.15rem 1.15rem 1.25rem; }
  .record dl { grid-template-columns: 1fr; gap: 0; }
  .record dd { padding-top: 0; border-top: 0; }
  .record dt { padding-bottom: 0.15rem; }
  .record dl > dt:first-of-type + dd { border-top: 0; }
  header.site .wrap { gap: 0.6rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- dark ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --porcelain:      #171614;
    --porcelain-deep: #1e1c19;
    --card:           #201e1b;
    --charcoal:       #ece7dd;
    --charcoal-soft:  #b8b1a5;
    --muted:          #9a9388;
    --cobalt:         #93b0f0;
    --cobalt-deep:    #b9cbf7;
    --cobalt-wash:    #1b2440;
    --copper:         #d08c5a;
    --rule:           #35322d;
    --rule-soft:      #2b2825;
  }
  .skip { color: #10141f; }
  .status { border-color: #2c3a63; }
  .callout { background: #221f1b; }
}

@media print {
  body { background: #fff; color: #000; }
  header.site nav, footer.site nav, .skip { display: none; }
}
