/*
 * Le Jourdain — styles.css
 * Typeface: Bricolage Grotesque (headings) + Geologica (body)
 * Rationale: Bricolage's irregular stroke tension suits folklore's uneasy past;
 *            Geologica's humanist legibility keeps reading comfortable.
 * Prefix: stu3s-
 */

/* ============================================================
   reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }

/* ============================================================
   tokens
   ============================================================ */
:root {
  /* colour */
  --c-cream:   #fdf8f0;
  --c-sand:    #f0e8d8;
  --c-amber:   #d97706;
  --c-amber-d: #b45309;
  --c-teal:    #0f766e;
  --c-teal-l:  #ccfbf1;
  --c-ink:     #1c1810;
  --c-ink-60:  #5a5040;
  --c-ink-30:  #a09080;
  --c-line:    #e8dece;
  --c-white:   #ffffff;

  /* spacing */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* typography */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;
  --fs-7xl:  4.5rem;
  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-body:  1.65;

  /* radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  20px;
  --r-full: 9999px;

  /* shadow */
  --sh-sm: 0 1px 4px rgba(0,0,0,.07);
  --sh-md: 0 4px 16px rgba(0,0,0,.10);
  --sh-lg: 0 8px 32px rgba(0,0,0,.14);

  /* transitions */
  --t-fast:  120ms ease;
  --t-base:  220ms ease;
  --t-slow:  380ms ease;

  /* z-index */
  --z-header:   100;
  --z-mobile:   200;
  --z-cookie:   300;
  --z-back-top: 150;

  /* layout */
  --container:  1160px;
  --header-h:   68px;
  --logo-w:     152px;
  --logo-h:     40px;
}

/* ============================================================
   base
   ============================================================ */
body {
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  line-height: var(--lh-tight);
  font-weight: 700;
}

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

main {
  padding-top: var(--header-h);
  min-height: 60vh;
}

.section {
  padding: var(--sp-20) 0;
}

.section--tight {
  padding: var(--sp-12) 0;
}

.section-label {
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: var(--sp-4);
}

/* ============================================================
   header
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-line);
  z-index: var(--z-header);
  overflow: hidden;
  transition: box-shadow var(--t-base);
}

#site-header.scrolled {
  box-shadow: var(--sh-sm);
}

#site-header .container {
  height: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--sp-8);
  overflow: hidden;
}

/* logo */
.stu3s-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.stu3s-logo img {
  max-width: var(--logo-w);
  max-height: var(--logo-h);
  width: auto;
  height: auto;
  display: block;
}

.footer-brand .stu3s-logo img {
  max-width: calc(var(--logo-w) * 0.9);
  max-height: calc(var(--logo-h) * 0.9);
  width: auto;
  height: auto;
  display: block;
}

/* nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
justify-content: flex-end;
}

.nav-links a {
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink-60);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-ink);
  background: var(--c-sand);
}

.nav-links a.active {
  color: var(--c-amber-d);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}

.hamburger:hover {
  background: var(--c-sand);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* responsive header */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (min-width: 861px) {
  .hamburger { display: none; }
}

/* ============================================================
   mobile menu
   ============================================================ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-mobile);
  background: var(--c-cream);
  border-top: 1px solid var(--c-line);
  padding: var(--sp-6) var(--sp-6) var(--sp-10);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--t-base), transform var(--t-base), visibility 0s linear var(--t-base);
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--t-base), transform var(--t-base), visibility 0s linear 0s;
}

.mobile-menu a {
  display: block;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--c-ink);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-line);
  transition: color var(--t-fast);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--c-amber);
}

/* ============================================================
   hero — typographic (variant B)
   ============================================================ */
.stu3s-hero {
  background: var(--c-ink);
  color: var(--c-cream);
  padding: var(--sp-20) 0;
  position: relative;
  overflow: hidden;
}

.stu3s-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(217,119,6,.18) 0%, transparent 70%);
  pointer-events: none;
}

.stu3s-hero__inner {
  position: relative;
  max-width: 800px;
}

.stu3s-hero__eyebrow {
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.stu3s-hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--c-amber);
}

.stu3s-hero__title {
  font-size: clamp(var(--fs-4xl), 6vw, var(--fs-7xl));
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--sp-6);
  letter-spacing: -0.02em;
}

.stu3s-hero__title em {
  font-style: normal;
  color: var(--c-amber);
}

.stu3s-hero__sub {
  font-size: var(--fs-lg);
  color: rgba(253,248,240,.7);
  max-width: 560px;
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-10);
}

.stu3s-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--c-amber);
  color: var(--c-white);
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  transition: background var(--t-fast), transform var(--t-fast);
}

.stu3s-hero__cta:hover {
  background: var(--c-amber-d);
  transform: translateY(-1px);
}

/* ============================================================
   signal board (homepage interactive section)
   ============================================================ */
.stu3s-signal-board {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.stu3s-signal-board__tabs {
  display: flex;
  border-bottom: 1px solid var(--c-line);
  overflow-x: auto;
  scrollbar-width: none;
}

.stu3s-signal-board__tabs::-webkit-scrollbar { display: none; }

.stu3s-signal-tab {
  flex-shrink: 0;
  padding: var(--sp-4) var(--sp-6);
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink-60);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.stu3s-signal-tab:hover { color: var(--c-ink); }
.stu3s-signal-tab.active {
  color: var(--c-amber-d);
  border-bottom-color: var(--c-amber);
}

.stu3s-signal-panels {
  padding: var(--sp-8);
}

.stu3s-signal-panel {
  display: none;
  animation: stu3s-fadeIn var(--t-base);
}

.stu3s-signal-panel.active { display: block; }

/* ============================================================
   post card
   ============================================================ */
.stu3s-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}

.stu3s-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.stu3s-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.stu3s-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-sand);
}

.stu3s-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.stu3s-card:hover .stu3s-card__img img {
  transform: scale(1.04);
}

.stu3s-card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.stu3s-card__tag {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-teal);
}

.stu3s-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--c-ink);
}

.stu3s-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--c-ink-60);
  line-height: var(--lh-body);
  flex: 1;
}

.stu3s-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-ink-30);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
}

/* text-only card variant */
.stu3s-card--text {
  padding: var(--sp-5);
}

/* ============================================================
   quote carousel
   ============================================================ */
.stu3s-quote-carousel {
  background: var(--c-teal);
  color: var(--c-cream);
  border-radius: var(--r-xl);
  padding: var(--sp-12) var(--sp-10);
  position: relative;
  overflow: hidden;
}

.stu3s-quote-carousel blockquote {
  display: none;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-3xl));
  font-weight: 600;
  line-height: var(--lh-snug);
  max-width: 700px;
  animation: stu3s-fadeIn var(--t-slow);
}

.stu3s-quote-carousel blockquote.active { display: block; }

.stu3s-quote-carousel blockquote footer {
  margin-top: var(--sp-6);
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-sm);
  font-weight: 400;
  opacity: .7;
}

.stu3s-carousel-dots {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}

.stu3s-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: rgba(253,248,240,.3);
  cursor: pointer;
  border: none;
  transition: background var(--t-fast), width var(--t-fast);
}

.stu3s-carousel-dot.active {
  background: var(--c-amber);
  width: 24px;
}

/* ============================================================
   counters
   ============================================================ */
.stu3s-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.stu3s-counter__num {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--c-amber);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stu3s-counter__label {
  font-size: var(--fs-sm);
  color: var(--c-ink-60);
  margin-top: var(--sp-2);
}

/* ============================================================
   accordion FAQ
   ============================================================ */
.stu3s-accordion {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stu3s-accordion-item {
  border-bottom: 1px solid var(--c-line);
}

.stu3s-accordion-item:last-child { border-bottom: none; }

.stu3s-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-5) var(--sp-6);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-ink);
  background: var(--c-white);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast);
}

.stu3s-accordion-trigger:hover { background: var(--c-sand); }

.stu3s-accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--t-base);
  color: var(--c-ink-30);
}

.stu3s-accordion-trigger[aria-expanded="true"] .stu3s-accordion-icon {
  transform: rotate(180deg);
}

.stu3s-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}

.stu3s-accordion-body-inner {
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-ink-60);
  line-height: var(--lh-body);
  background: var(--c-white);
}

/* ============================================================
   page-specific: article / post
   ============================================================ */
.stu3s-post-hero {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: var(--c-sand);
}

.stu3s-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stu3s-post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6) var(--sp-8);
}

.stu3s-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-ink-30);
  margin-bottom: var(--sp-5);
}

.stu3s-post-tag {
  background: var(--c-teal-l);
  color: var(--c-teal);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
}

.stu3s-post-title {
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}

.stu3s-post-dek {
  font-size: var(--fs-xl);
  color: var(--c-ink-60);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-6);
}

.stu3s-post-byline {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
}

.stu3s-post-byline strong {
  color: var(--c-ink);
}

/* article prose */
.stu3s-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-6) var(--sp-16);
}

.stu3s-prose h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin: var(--sp-10) 0 var(--sp-4);
  letter-spacing: -0.01em;
}

.stu3s-prose h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin: var(--sp-8) 0 var(--sp-3);
}

.stu3s-prose p {
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
  color: var(--c-ink);
  margin-bottom: var(--sp-5);
}

.stu3s-prose blockquote {
  border-left: 3px solid var(--c-amber);
  margin: var(--sp-8) 0;
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-sand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--c-ink-60);
}

.stu3s-prose ul, .stu3s-prose ol {
  margin: var(--sp-5) 0 var(--sp-5) var(--sp-6);
}

.stu3s-prose li {
  list-style: disc;
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
  margin-bottom: var(--sp-2);
}

.stu3s-prose ol li { list-style: decimal; }

/* reading progress bar */
#reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 3px;
  background: var(--c-amber);
  z-index: calc(var(--z-header) + 1);
  width: 0%;
  transition: width 100ms linear;
}

/* CTA block (Variant A newsletter) */
.stu3s-cta-block {
  background: var(--c-sand);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin: var(--sp-10) 0;
}

.stu3s-cta-block__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.stu3s-cta-block__desc {
  font-size: var(--fs-sm);
  color: var(--c-ink-60);
  margin-bottom: var(--sp-5);
}

.stu3s-cta-form {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.stu3s-cta-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-sm);
  background: var(--c-white);
  color: var(--c-ink);
  outline: none;
  transition: border-color var(--t-fast);
}

.stu3s-cta-form input[type="email"]:focus {
  border-color: var(--c-amber);
}

.stu3s-cta-form button {
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}

.stu3s-cta-form button:hover { background: var(--c-amber-d); }

.stu3s-cta-success {
  display: none;
  font-size: var(--fs-sm);
  color: var(--c-teal);
  padding: var(--sp-3);
}

/* related reading */
.stu3s-related {
  border-top: 1px solid var(--c-line);
  padding-top: var(--sp-10);
  margin-top: var(--sp-10);
}

.stu3s-related h3 {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-30);
  margin-bottom: var(--sp-6);
}

.stu3s-related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}

/* ============================================================
   breadcrumb
   ============================================================ */
.stu3s-breadcrumb {
  padding: var(--sp-5) 0 var(--sp-3);
}

.stu3s-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-ink-30);
}

.stu3s-breadcrumb a {
  color: var(--c-ink-30);
  transition: color var(--t-fast);
}

.stu3s-breadcrumb a:hover { color: var(--c-amber); }

.stu3s-breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: var(--sp-2);
  opacity: .5;
}

.stu3s-breadcrumb [aria-current="page"] {
  color: var(--c-ink-60);
  font-weight: 500;
}

/* ============================================================
   page-specific: about / who we are
   ============================================================ */
.stu3s-authors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}

.stu3s-author-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}

.stu3s-author-card__name {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.stu3s-author-card__role {
  font-size: var(--fs-sm);
  color: var(--c-amber);
  margin-bottom: var(--sp-4);
}

.stu3s-author-card__bio {
  font-size: var(--fs-sm);
  color: var(--c-ink-60);
  line-height: var(--lh-body);
  margin-bottom: var(--sp-4);
}

.stu3s-author-card__link {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

.stu3s-author-card__link:hover { color: var(--c-amber-d); }

/* ============================================================
   page-specific: contact / reach us
   ============================================================ */
.stu3s-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-12);
  align-items: start;
}

.stu3s-contact-info dt {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-30);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

.stu3s-contact-info dt:first-child { margin-top: 0; }

.stu3s-contact-info dd {
  font-size: var(--fs-base);
  color: var(--c-ink);
  line-height: var(--lh-snug);
}

.stu3s-form {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
}

.stu3s-form-group {
  margin-bottom: var(--sp-5);
}

.stu3s-form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink-60);
  margin-bottom: var(--sp-2);
}

.stu3s-form-group input,
.stu3s-form-group textarea,
.stu3s-form-group select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-base);
  background: var(--c-cream);
  color: var(--c-ink);
  outline: none;
  transition: border-color var(--t-fast);
}

.stu3s-form-group textarea { min-height: 130px; resize: vertical; }

.stu3s-form-group input:focus,
.stu3s-form-group textarea:focus,
.stu3s-form-group select:focus {
  border-color: var(--c-amber);
  background: var(--c-white);
}

.stu3s-captcha-group {
  margin-bottom: var(--sp-5);
}

.stu3s-captcha-error {
  display: none;
  font-size: var(--fs-xs);
  color: #dc2626;
  margin-top: var(--sp-2);
}

.stu3s-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-base);
  font-weight: 600;
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-full);
  transition: background var(--t-fast);
  width: 100%;
  justify-content: center;
}

.stu3s-submit-btn:hover { background: var(--c-amber-d); }

.stu3s-form-success {
  display: none;
  text-align: center;
  padding: var(--sp-8);
  color: var(--c-teal);
  font-weight: 500;
}

/* ============================================================
   page-specific: journal / listing
   ============================================================ */
.stu3s-listing-hero {
  padding: var(--sp-16) 0 var(--sp-10);
  border-bottom: 1px solid var(--c-line);
}

.stu3s-listing-hero h1 {
  font-size: clamp(var(--fs-4xl), 5vw, var(--fs-6xl));
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}

.stu3s-listing-hero p {
  font-size: var(--fs-lg);
  color: var(--c-ink-60);
  max-width: 560px;
}

/* ============================================================
   page-specific: legal
   ============================================================ */
.stu3s-legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6) var(--sp-16);
}

.stu3s-legal-content h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.stu3s-legal-content .updated {
  font-size: var(--fs-sm);
  color: var(--c-ink-30);
  margin-bottom: var(--sp-8);
  display: block;
}

.stu3s-legal-content h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: var(--sp-8) 0 var(--sp-3);
}

.stu3s-legal-content p,
.stu3s-legal-content li {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-ink-60);
  margin-bottom: var(--sp-3);
}

.stu3s-legal-content ul { margin: var(--sp-3) 0 var(--sp-3) var(--sp-6); }
.stu3s-legal-content li { list-style: disc; }

/* ============================================================
   footer — editorial variant C
   ============================================================ */
.site-footer {
  background: var(--c-ink);
  color: var(--c-cream);
  margin-top: var(--sp-16);
}

.footer-cta-band {
  padding: var(--sp-16) 0;
  border-bottom: 1px solid rgba(253,248,240,.08);
}

.footer-cta-band__quote {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
  font-weight: 700;
  line-height: var(--lh-snug);
  max-width: 640px;
  color: var(--c-cream);
  margin-bottom: var(--sp-6);
}

.footer-cta-band__quote span {
  color: var(--c-amber);
}

.footer-cta-band__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-cream);
  border-bottom: 1px solid rgba(253,248,240,.3);
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.footer-cta-band__link:hover {
  color: var(--c-amber);
  border-color: var(--c-amber);
}

.footer-links-row {
  padding: var(--sp-10) 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-8);
}

.footer-col__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253,248,240,.4);
  margin-bottom: var(--sp-4);
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(253,248,240,.7);
  margin-bottom: var(--sp-3);
  transition: color var(--t-fast);
}

.footer-col a:hover { color: var(--c-cream); }

.footer-bottom {
  padding: var(--sp-5) 0;
  border-top: 1px solid rgba(253,248,240,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: rgba(253,248,240,.3);
}

.footer-brand {
  display: flex;
  align-items: center;
}

/* ============================================================
   cookie banner
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cookie);
  background: var(--c-ink);
  color: var(--c-cream);
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid rgba(253,248,240,.1);
  transform: translateY(100%);
  transition: transform var(--t-slow);
  display: none;
}

#cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: var(--fs-sm);
  color: rgba(253,248,240,.8);
  min-width: 240px;
}

.cookie-text a {
  color: var(--c-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-btns {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}

#cookie-accept {
  background: var(--c-amber);
  color: var(--c-white);
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  transition: background var(--t-fast);
}

#cookie-accept:hover { background: var(--c-amber-d); }

#cookie-decline {
  background: transparent;
  border: 1px solid rgba(253,248,240,.2);
  color: rgba(253,248,240,.7);
  font-family: 'Geologica', Georgia, serif;
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  transition: border-color var(--t-fast), color var(--t-fast);
}

#cookie-decline:hover {
  border-color: rgba(253,248,240,.5);
  color: var(--c-cream);
}

/* ============================================================
   back to top
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-6);
  z-index: var(--z-back-top);
  width: 44px;
  height: 44px;
  background: var(--c-ink);
  color: var(--c-cream);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast);
  box-shadow: var(--sh-md);
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover { background: var(--c-amber-d); }

#back-to-top svg {
  width: 18px;
  height: 18px;
  color: inherit;
}

/* ============================================================
   reading progress
   ============================================================ */
/* (see #reading-progress rule above) */

/* ============================================================
   animations
   ============================================================ */
@keyframes stu3s-fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stu3s-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stu3s-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .stu3s-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 860px) {
  .stu3s-contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-links-row {
    grid-template-columns: 1fr 1fr;
  }

  .stu3s-counters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .stu3s-card-grid {
    grid-template-columns: 1fr;
  }

  .stu3s-counters {
    grid-template-columns: 1fr;
  }

  .footer-links-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .stu3s-quote-carousel {
    padding: var(--sp-8) var(--sp-6);
  }

  .stu3s-related-list {
    grid-template-columns: 1fr;
  }

  .stu3s-signal-panels {
    padding: var(--sp-5);
  }
}
