/* ============================================================
   ThinkLink Association — Stylesheet
   ------------------------------------------------------------
   Sections:
     1. Reset
     2. Base
     3. Layout primitives
     4. Typography utilities
     5. Header
     6. Hero
     7. Section heads
     8. Mission
     9. Pillars
    10. Pull quote
    11. Activities
    12. Books
    13. Team
    14. Partnership
    15. Contact
    16. Footer
    17. Utilities
    18. Motion
    19. Legal pages
   ============================================================ */


/* ====== 1. Reset ====== */

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

img, svg { display: block; max-width: 100%; }

button { font: inherit; cursor: pointer; }


/* ====== 2. Base ====== */

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(47, 61, 44, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(20, 19, 14, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--moss); color: var(--paper); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) ease, opacity var(--t-fast) ease;
}


/* ====== 3. Layout primitives ====== */

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

section {
  padding: clamp(64px, 12vh, 120px) 0;
  position: relative;
}

.rule { height: 1px; background: var(--rule); border: 0; }


/* ====== 4. Typography utilities ====== */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-feature-settings: "ss01", "ss02";
}

.display em { font-style: italic; color: var(--moss); }

.small-caps {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* ====== 5. Header ====== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  width: 8px;
  height: 8px;
  background: var(--moss);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-2px);
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--moss);
  transition: width 220ms var(--ease-out);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }

.lang {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.lang-active { color: var(--ink); font-weight: 500; }

@media (max-width: 820px) {
  .site-nav ul { display: none; }
}


/* ====== 6. Hero ====== */

.hero {
  padding: clamp(64px, 12vh, 140px) 0 clamp(80px, 14vh, 180px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vh, 72px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moss);
}

.hero-title {
  font-size: clamp(2.4rem, 6.6vw, 5.4rem);
  max-width: 18ch;
  margin-top: 28px;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 56ch;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 36px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: clamp(48px, 8vh, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.meta-item-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}

.meta-item-label {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}


/* ====== 7. Section heads ====== */

.section-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.section-head-label {
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 22ch;
}

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head-label { width: 200px; }
}


/* ====== 8. Mission ====== */

.mission {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.mission-prose {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.mission-marker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.mission-prose p {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 58ch;
}

.mission-prose p + p { margin-top: 1.4em; }

.mission-prose .firstcap::first-letter {
  font-size: 4.6em;
  float: left;
  line-height: 0.85;
  padding: 0.08em 0.12em 0 0;
  font-weight: 400;
  color: var(--moss);
}

.mission-coda {
  font-style: italic;
  color: var(--moss);
}

@media (max-width: 820px) {
  .mission-prose { grid-template-columns: 1fr; gap: 24px; }
}


/* ====== 9. Pillars ====== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.pillar {
  padding: 40px 32px 48px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}

.pillar:last-child { border-right: 0; }
.pillar:nth-child(2) { padding-left: 32px; }
.pillar:last-child   { padding-left: 32px; padding-right: 0; }

.pillar-roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--moss);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 16ch;
}

.pillar p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 32px 0;
  }
  .pillar:nth-child(2),
  .pillar:last-child { padding-left: 0; }
  .pillar:last-child { border-bottom: 0; }
}


/* ====== 10. Pull quote ====== */

.quote {
  padding: clamp(60px, 10vh, 100px) 0;
  background: var(--ink);
  color: var(--paper);
}

.quote .container { position: relative; }

.quote-mark {
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--moss-soft);
  position: absolute;
  top: -10px;
  left: var(--gutter);
  opacity: 0.6;
}

.quote blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin: 0 auto;
  padding: 32px 0 0;
}

.quote blockquote em { font-style: italic; color: #C8C2A8; }

.quote cite {
  display: block;
  margin-top: 36px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #B4AC93;
}


/* ====== 11. Activities ====== */

.activity-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}

.activity-row {
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  transition: padding var(--t-fast) ease, background var(--t-fast) ease;
}

.activity-row:hover {
  padding-left: 12px;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--moss) 6%, transparent),
    transparent 60%
  );
}

.activity-when {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.activity-what {
  font-size: 17px;
  line-height: 1.4;
}

.activity-where {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-align: right;
}

.activity-row.is-upcoming .activity-when {
  color: var(--moss);
  font-weight: 500;
}

.activity-note {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .activity-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .activity-where { text-align: left; }
}


/* ====== 12. Books ====== */

.books {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.books-intro p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 1.4em;
}

.books-publisher {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.volumes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.volume {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}

.volume:first-child { border-top: 1px solid var(--rule); }

.volume-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--moss);
}

.volume-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.volume-editor {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

.volume-year {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
}

@media (max-width: 820px) {
  .books-grid { grid-template-columns: 1fr; gap: 48px; }
  .volume { grid-template-columns: 40px 1fr; }
  .volume-year { grid-column: 2; }
}


/* ====== 13. Team ====== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 48px;
}

.person { display: flex; flex-direction: column; }

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
}

.portrait-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--moss-soft);
  letter-spacing: -0.02em;
}

.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 30%,
    transparent 40%,
    rgba(47, 61, 44, 0.08) 100%
  );
  pointer-events: none;
}

.person-role {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 12px;
}

.person h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.person p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 18px;
}

.person-links {
  display: flex;
  gap: 18px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.person-links a {
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.person-links a:hover { color: var(--moss); border-color: var(--moss); }

@media (max-width: 820px) {
  .team-grid { grid-template-columns: 1fr; gap: 56px; }
}


/* ====== 14. Partnership ====== */

.partnership {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.partnership::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--moss-soft);
}

.partnership .section-head-label {
  border-top-color: var(--paper);
  color: var(--paper);
}

.partnership .section-head h2 { color: var(--paper); }

.partnership-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
}

.partnership-body .col { color: #D9D2BD; }

.partnership-body p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 1.3em;
  max-width: 56ch;
}

.partnership-lead {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem) !important;
  color: var(--paper);
  line-height: 1.4;
  margin-bottom: 1.6em;
  max-width: 48ch;
}

.partnership-body em { color: #E3DCC4; font-style: italic; }

.credentials {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.credential {
  font-family: var(--sans);
  font-size: 12px;
  color: #C8C2A8;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.credential strong {
  display: block;
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

@media (max-width: 820px) {
  .partnership-body { grid-template-columns: 1fr; gap: 24px; }
  .credentials { grid-template-columns: 1fr; gap: 22px; }
}


/* ====== 15. Contact ====== */

.contact { padding: clamp(56px, 10vh, 100px) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 18ch;
}

.contact-info {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.contact-info a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.contact-info a:hover { color: var(--moss); border-color: var(--moss); }

.contact-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 28px;
  margin-bottom: 6px;
}

.contact-label:first-child { margin-top: 0; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}


/* ====== 16. Footer ====== */

.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

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

.site-footer-meta { display: flex; flex-direction: column; gap: 6px; }

.site-footer-note { font-size: 11px; letter-spacing: 0.06em; }

.site-footer-links { display: flex; gap: 24px; }


/* ====== 17. Utilities ====== */

.is-hidden { display: none !important; }
.is-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ====== 18. Motion ====== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}


/* ====== 19. Legal pages ====== */

.legal {
  padding: clamp(48px, 8vh, 96px) 0 clamp(72px, 12vh, 120px);
}

.legal-prose {
  max-width: 680px;
  margin-inline: auto;
}

.legal-prose h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1em;
}

.legal-prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2.2em;
  margin-bottom: 0.5em;
}

.legal-prose p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1em;
}

.legal-prose a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.legal-prose a:hover {
  color: var(--moss);
  border-color: var(--moss);
}

.legal-prose strong {
  font-weight: 500;
  color: var(--ink);
}

.legal-meta {
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
