/* ============================================================
   ACTIONDESIGN.NO — style.css
   A warm, editorial "fagressurs" about action design for film.
   Deliberately distinct from battlebladeproductions.com:
   light paper palette, serif display type, large readable body.

   TOC
   1.  Reset & variables
   2.  Base typography
   3.  Layout helpers
   4.  Top bar / navigation
   5.  Hero
   6.  Article prose
   7.  Figures & images
   8.  Role / definition grid
   9.  Term list (glossary)
   10. FAQ
   11. Callout / note
   12. Read-more cards
   13. Footer
   14. Responsive
   ============================================================ */

/* 1. RESET & VARIABLES ------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette — warm paper, deep ink, single ochre accent */
  --paper:    #f4efe4;
  --paper-2:  #ece4d4;   /* cards / alt blocks */
  --ink:      #1b1916;   /* primary text */
  --ink-2:    #5c554a;   /* secondary text */
  --ochre:    #b06c2b;   /* accent (headings marks, hovers) */
  --ochre-dk: #8a4f1a;   /* link text (passes contrast on paper) */
  --line:     rgba(27, 25, 22, 0.16);
  --line-soft:rgba(27, 25, 22, 0.08);

  /* Rhythm */
  --measure: 44rem;      /* reading column */
  --pad-h: clamp(1.25rem, 5vw, 5rem);
}

/* 2. BASE TYPOGRAPHY -------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.19rem;          /* large, easy to read */
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

::selection { background: rgba(176, 108, 43, 0.22); }

/* 3. LAYOUT HELPERS --------------------------------------- */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--pad-h); }
.measure { max-width: var(--measure); }

.rule {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0 var(--pad-h);
}

.kicker {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.kicker::before {
  content: '';
  width: 1.6rem;
  height: 2px;
  background: var(--ochre);
}

/* 4. TOP BAR / NAVIGATION --------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 228, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.05rem var(--pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Fraunces', serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand img { width: 26px; height: 26px; }
.brand .dot { color: var(--ochre); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav a {
  color: var(--ink-2);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); border-bottom-color: var(--ochre); }

/* 5. HERO -------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .kicker { margin-bottom: 1.7rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.1rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 1.6rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--ochre);
  font-weight: 500;
}
.hero-lead {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38ch;
  font-weight: 400;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

.hero-figure { margin-top: clamp(2.5rem, 5vw, 4rem); }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}
.hero-figure figcaption {
  font-size: 0.86rem;
  color: var(--ink-2);
  margin-top: 0.7rem;
  letter-spacing: 0.01em;
}

/* 6. ARTICLE PROSE ---------------------------------------- */
.article { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }

.article h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 0 0 1.1rem;
}
.article h2:not(:first-child) { margin-top: 3.4rem; }

.article h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  font-weight: 600;
  margin: 2.2rem 0 0.7rem;
}

.article p {
  margin-bottom: 1.35rem;
  max-width: var(--measure);
}
.article p.lead {
  font-size: 1.32rem;
  line-height: 1.65;
  color: var(--ink);
}
.article strong { font-weight: 600; color: var(--ink); }
.article em { font-style: italic; }

.article a.inline {
  color: var(--ochre-dk);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138, 79, 26, 0.4);
  transition: text-decoration-color 0.18s, color 0.18s;
}
.article a.inline:hover {
  color: var(--ochre);
  text-decoration-color: var(--ochre);
}

.article ul, .article ol {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  padding-left: 1.3rem;
}
.article li { margin-bottom: 0.6rem; }
.article li::marker { color: var(--ochre); }

/* 7. FIGURES & IMAGES ------------------------------------- */
.figure { margin: 2.6rem 0; }
.figure.full { max-width: none; }
.figure img {
  width: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}
.figure figcaption {
  font-size: 0.86rem;
  color: var(--ink-2);
  margin-top: 0.7rem;
}

/* 8. ROLE / DEFINITION GRID ------------------------------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 2.2rem 0 1rem;
}
.role-card {
  background: var(--paper);
  padding: 1.8rem 1.7rem;
}
.role-card h3 {
  font-size: 1.28rem;
  margin: 0 0 0.55rem;
}
.role-card p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.role-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.7rem;
}

/* 9. TERM LIST (glossary) --------------------------------- */
.terms { margin: 2.5rem 0; max-width: var(--measure); }
.term {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.term:last-child { border-bottom: 1px solid var(--line); }
.term dt {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.term .no-term {
  font-size: 0.92rem;
  color: var(--ochre);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.term dd {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.term dd strong { color: var(--ink); font-weight: 600; }

.term-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}
.term-jump a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  transition: border-color 0.18s, color 0.18s;
}
.term-jump a:hover { color: var(--ink); border-color: var(--ochre); }

/* 10. FAQ ------------------------------------------------- */
.faq { max-width: var(--measure); margin: 2rem 0; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 {
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}
.faq-item p { margin: 0; color: var(--ink-2); }

/* 11. CALLOUT / NOTE -------------------------------------- */
.note {
  background: var(--paper-2);
  border-left: 3px solid var(--ochre);
  padding: 1.7rem 1.9rem;
  margin: 2.6rem 0;
  max-width: var(--measure);
}
.note p { margin: 0; font-size: 1.08rem; line-height: 1.65; color: var(--ink); }
.note p + p { margin-top: 0.8rem; }
.note a {
  color: var(--ochre-dk);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138, 79, 26, 0.45);
}
.note a:hover { color: var(--ochre); text-decoration-color: var(--ochre); }

/* 12. READ-MORE CARDS ------------------------------------- */
.more {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}
.more .kicker { margin-bottom: 1.8rem; }
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.4rem;
}
.more-card {
  display: block;
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.more-card:hover {
  border-color: var(--ochre);
  background: var(--paper-2);
  transform: translateY(-2px);
}
.more-card .label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
}
.more-card h3 {
  font-size: 1.4rem;
  margin: 0.7rem 0 0.5rem;
}
.more-card p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.more-card .arrow {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.more-card:hover .arrow { color: var(--ochre); }

/* 13. FOOTER ---------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-about { max-width: 32rem; }
.footer-about .brand { margin-bottom: 0.9rem; }
.footer-about p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.footer-about .credit { margin-top: 0.9rem; font-size: 0.95rem; }
.footer-about .credit a {
  color: var(--ochre-dk);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138, 79, 26, 0.4);
}
.footer-about .credit a:hover { color: var(--ochre); text-decoration-color: var(--ochre); }

.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav .label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.footer-nav a { color: var(--ink-2); font-size: 0.98rem; }
.footer-nav a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 72rem;
  margin: 2.2rem auto 0;
  padding: 1.4rem var(--pad-h) 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* 14. RESPONSIVE ----------------------------------------- */
@media (max-width: 720px) {
  body { font-size: 1.12rem; }
  .topbar-inner { gap: 0.8rem 1.2rem; }
  .nav { gap: 1.1rem; flex-wrap: wrap; }
  .nav a { font-size: 0.9rem; }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .footer-inner { flex-direction: column; }
}
