/* tagwerk.art — design language shared with the app: ink on paper,
   serif reading, grotesque labels. No rounded corners, no shadows,
   no gradients, no icons. */

:root {
  --ink: #1a1918;
  --paper: #faf9f7;
  --grey: #b5b2ad;
  --grey-dark: #6f6c67;
  --rule: #d8d5d0;
  --serif: "New York", "Iowan Old Style", Palatino, Georgia, serif;
  --grotesk: -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 34em;
  --size-caption: 0.8125rem;
  --size-body: 1.0625rem;
  --size-label: 0.75rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--size-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- type roles ---- */

.label {
  font-family: var(--grotesk);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

.caption {
  font-family: var(--grotesk);
  font-size: var(--size-caption);
  color: var(--grey-dark);
  line-height: 1.5;
}

.reading { max-width: var(--measure); }
.reading p + p { margin-top: 1rem; }

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

/* ---- nav ---- */

.site-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.site-nav .nav-links a {
  font-family: var(--grotesk);
  font-size: var(--size-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin-left: 1.75rem;
}

.site-nav .nav-links a:hover { color: var(--ink); }

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  padding: 5rem 0 4.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 1.25rem 0 1.5rem;
}

.hero .lede {
  max-width: 30em;
  color: var(--ink);
}

.hero .hero-meta { margin-top: 2.5rem; }

.hero-art figcaption { margin-top: 0.75rem; }

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

.section { padding: 4.5rem 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}
.section-head .num { color: var(--grey); }

h2.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

/* the loop — three columns over hairlines */

.loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.loop .step { border-top: 1px solid var(--ink); padding-top: 1rem; }
.loop .step .label { color: var(--ink); }
.loop .step p { margin-top: 0.75rem; font-size: 1rem; }

/* a day — analysis + protocol */

.day {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.excerpt p + p { margin-top: 1rem; }
.excerpt .caption { margin-top: 1.5rem; }

.protocol {
  border: 1px solid var(--ink);
  padding: 1.75rem;
}

.protocol .label { color: var(--ink); }

.protocol dl {
  margin: 1.25rem 0 1.5rem;
  font-family: var(--grotesk);
  font-size: var(--size-caption);
}

.protocol dl div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}

.protocol dt {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-dark);
}

.protocol ol {
  list-style: none;
  counter-reset: seq;
  font-size: 0.9375rem;
}

.protocol ol li {
  counter-increment: seq;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
}

.protocol ol li::before {
  content: counter(seq);
  font-family: var(--grotesk);
  font-size: var(--size-caption);
  color: var(--grey);
}

.protocol .constraint {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font-size: 0.9375rem;
}

.protocol .constraint .label { display: block; margin-bottom: 0.4rem; }

/* the pace — big anchor */

.pace {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

.anchor-year {
  font-family: var(--serif);
  font-size: clamp(6rem, 16vw, 11rem);
  line-height: 0.9;
  color: var(--grey);
  letter-spacing: -0.02em;
}

/* availability band */

.band {
  background: var(--ink);
  color: var(--paper);
  padding: 4.5rem 0;
}

.band .label { color: var(--grey); }

.band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin: 1.25rem 0 1rem;
  max-width: 22em;
}

.band p { max-width: var(--measure); color: var(--paper); }
.band a { color: var(--paper); border-bottom: 1px solid var(--grey-dark); }
.band a:hover { border-bottom-color: var(--paper); }
.band .caption { color: var(--grey); margin-top: 2rem; }

/* footer */

.site-footer { padding: 2.5rem 0 3.5rem; }

.site-footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.site-footer nav a {
  font-family: var(--grotesk);
  font-size: var(--size-caption);
  color: var(--grey-dark);
  margin-right: 1.5rem;
}

.site-footer nav a:hover { color: var(--ink); }

/* legal pages */

.legal-wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.legal-back {
  font-family: var(--grotesk);
  font-size: var(--size-caption);
  color: var(--grey-dark);
}

.legal-wrap h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  margin: 1.5rem 0 0.75rem;
}

.legal-wrap .legal-rule {
  border-top: 1px solid var(--ink);
  margin-bottom: 2rem;
}

.legal-wrap h2 {
  font-family: var(--grotesk);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin: 2.25rem 0 0.6rem;
}

.legal-wrap p { margin-bottom: 0.75rem; }
.legal-wrap a { border-bottom: 1px solid var(--rule); }
.legal-wrap a:hover { border-bottom-color: var(--ink); }

/* ---- responsive ---- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 3.5rem 0 3rem; }
  .day { grid-template-columns: 1fr; gap: 2.5rem; }
  .loop { grid-template-columns: 1fr; gap: 1.75rem; }
  .pace { grid-template-columns: 1fr; gap: 1.5rem; }
  .section { padding: 3.25rem 0; }
}
