/* =====================================================
   ATELIER OCHRE — shared stylesheet
   Palette, type, and layout tokens live here so both
   pages (and any pages you add later) stay consistent.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=EB+Garamond:ital@0;1&family=Allura&display=swap');

:root {
  /* ---- Color tokens ---- */
  --paper: #EDE6D6;        /* aged paper background */
  --paper-dark: #E2D8C2;   /* slightly deeper paper, for panels */
  --ink: #2B2420;          /* warm near-black, main text */
  --ink-soft: #55493f;     /* softened ink for secondary text */
  --burgundy: #6B1F2A;     /* dried-wine accent */
  --gold: #B8935A;         /* muted gold leaf */
  --sage: #5C6B4F;         /* muted oil-green, for variety */
  --line: rgba(43, 36, 32, 0.16);

  /* ---- Type tokens ---- */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'EB Garamond', 'Times New Roman', Georgia, serif;
  --font-script: 'Allura', cursive;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(43,36,32,0.035) 1px, transparent 1px),
    radial-gradient(rgba(43,36,32,0.025) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Skip link / accessibility ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
}

a { color: inherit; }

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

/* =========================================
   NAV
   ========================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  background: rgba(237, 230, 214, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--burgundy);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a.active {
  color: var(--burgundy);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* =========================================
   INK DIVIDER (signature element)
   A hand-drawn brush stroke used to separate
   sections instead of a plain <hr>.
   ========================================= */
.ink-divider {
  display: block;
  width: min(420px, 60%);
  margin: 3rem auto;
  height: 28px;
  opacity: 0.75;
}

.ink-divider path {
  fill: none;
  stroke: var(--burgundy);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: draw-ink 1.4s ease forwards;
}

@keyframes draw-ink {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ink-divider path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* =========================================
   HOME PAGE — single scrollable manuscript column
   ========================================= */
.manuscript {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 2rem) 2rem;
}

.hero-eyebrow {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--sage);
  display: block;
  margin-bottom: 0.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  color: var(--burgundy);
}

.lede {
  font-size: 1.3rem;
  color: var(--ink-soft);
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  margin: 1.5rem 0 2.5rem;
}

.dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 4.2rem;
  float: left;
  line-height: 0.8;
  padding: 0.08em 0.09em 0 0;
  color: var(--burgundy);
  font-weight: 600;
}

.manuscript section {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.manuscript section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.section-heading .script-and {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 1.4em;
  padding: 0 0.05em;
}

.manuscript p {
  margin: 0 0 1.1rem;
}

.pull-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.pull-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.pull-list li span:last-child {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  text-align: right;
}

/* =========================================
   FOOTER — visit us / contact, styled like a
   letter's closing page
   ========================================= */
.closing {
  background: var(--ink);
  color: var(--paper);
  margin-top: 2rem;
}

.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 760px) {
  .closing-inner { grid-template-columns: 1fr; }
}

.closing h2 {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 2.4rem;
  font-weight: 400;
  margin: 0 0 1.2rem;
}

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(184, 147, 90, 0.4);
  filter: sepia(25%) contrast(1.05) saturate(0.85);
  display: block;
}

.contact-block dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin: 0 0 1.8rem;
}

.contact-block dt {
  font-family: var(--font-serif);
  color: var(--gold);
  font-style: italic;
}

.contact-block dd {
  margin: 0;
}

.signoff {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--paper);
  margin-top: 1.5rem;
}

.fine-print {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(237,230,214,0.55);
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid rgba(237,230,214,0.12);
}

/* =========================================
   TEACHERS PAGE — scrollable roster in columns
   ========================================= */
.roster-header {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2rem) 1rem;
  text-align: center;
}

.roster-header .hero-eyebrow { color: var(--burgundy); }

.roster-header p {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 55ch;
  margin: 1rem auto 0;
}

.category-nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.category-nav a {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.category-nav a:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--paper-dark);
}

.roster {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem) 4rem;
}

.category-group {
  margin-bottom: 3.5rem;
  scroll-margin-top: 5.5rem;
}

.category-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--burgundy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.category-title .count {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem 2rem;
}

.teacher-card {
  padding-bottom: 0.9rem;
}

.teacher-name {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--ink);
  margin: 0 0 0.2rem;
  display: inline-block;
  position: relative;
}

.teacher-name svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 8px;
  overflow: visible;
}

.teacher-name svg path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.5s ease;
}

.teacher-card:hover .teacher-name svg path,
.teacher-card:focus-within .teacher-name svg path {
  stroke-dashoffset: 0;
}

.teacher-specialty {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0.4rem 0 0;
}

.teacher-medium-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}

/* Back to top */
.back-to-top {
  display: block;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 1rem 0 3rem;
}

.back-to-top:hover { color: var(--burgundy); }
