/* ============================================================
   D. Samuel — Instructional & Learner Experience Design
   Portfolio site stylesheet  ·  "Forest & Stone" theme
   ============================================================

   ARCHITECTURE
   ─────────────────────────────────────────────────────────────
   This is the SINGLE shared stylesheet for every page on the
   site:  index.html, work.html, about.html, writing.html,
   contact.html, and all three essay pages.  All pages link to
   this file so design tokens and components stay consistent.
   No page-specific CSS files exist — everything lives here,
   organised into clearly marked sections.

   DESIGN SYSTEM SUMMARY
   ─────────────────────────────────────────────────────────────
   Palette:  Forest & Stone — warm sand backgrounds, deep
   evergreen greens, antique brass accents.  Intentionally
   avoids red/orange and near-black (#000 / #111) panels that
   felt too stark on the original Wix site.

   Typography:
     Display  — Fraunces (Google Fonts, variable optical size)
                Used for headings, pull quotes, brand name.
                Italic variant gives expressive contrast.
     Body     — Hanken Grotesk (Google Fonts)
                Clean, modern sans — readable at small sizes.

   Accessibility:
     • All text/background color pairs meet WCAG 2.1 AA (4.5:1
       for normal text, 3:1 for large text).
     • prefers-reduced-motion block strips all animations for
       users who need it.
     • Focus styles are preserved (browser defaults) on all
       interactive elements.

   SECTIONS (jump with Ctrl/Cmd+F → the section name)
   ─────────────────────────────────────────────────────────────
   1.  Custom properties (design tokens)
   2.  Reset & base
   3.  NAV
   4.  BUTTONS
   5.  HERO (home page only)
   6.  VALUE STRIP (home page only)
   7.  HOME CLOSING CTA (home page only)
   8.  INNER PAGE HEADER (work / about / writing / contact)
   9.  SECTION SCAFFOLD (shared padding & kicker labels)
  10.  WORK (project list on work.html)
  11.  ABOUT (mission, vision, skills panel)
  12.  WRITING LIST (writing.html + essay "more writing" rail)
  13.  CONTACT (two-column layout + form)
  14.  ARTICLE / ESSAY PAGES (prose layout, byline, references)
  15.  FOOTER
  16.  REVEAL ANIMATION (IntersectionObserver scroll-in effect)
  17.  RESPONSIVE BREAKPOINTS  (≤900 px tablet / ≤560 px mobile)
   ============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES (design tokens)
   ─────────────────────────────────────────────────────────────
   Every color, font, shadow, and layout constant is defined
   here as a CSS custom property so changes propagate to the
   entire site by editing one value.

   COLOR RATIONALE
   • --sand / --sand-deep / --cream  — three slightly different
     warm neutral backgrounds.  sand = page base, sand-deep =
     alternate-banded sections, cream = cards & form panels.
   • --ink / --ink-soft / --ink-muted — warm near-black text
     in three weights.  ink = headings, ink-soft = body copy,
     ink-muted = labels, meta, captions.
   • --evergreen / --evergreen-d  — primary forest green.
     Used for the brand accent, nav underlines, active states,
     CTA button backgrounds, and section borders.
   • --panel  — deep forest, used for the sticky skills panel
     and footer background.  Chosen instead of pure black to
     stay warmer and on-brand.
   • --terracotta / --brass-d  — antique brass/gold accent.
     --terracotta is safe on dark surfaces (the panel, footer)
     and large display uses.  --brass-d is the darker, AA-safe
     version for small text on light backgrounds.
   • --line  — hairline borders.  Warm tan so borders feel
     like paper, not cold grey.
   • --shadow  — layered, warm shadow with slight vertical
     offset.  The long negative spread creates a natural glow
     without an obvious hard edge.
   ============================================================ */
:root {
  /* ── Neutral backgrounds (light to dark) ── */
  --sand:        #EFE9DD;   /* page background — warm stone */
  --sand-deep:   #E6DECF;   /* alternate section band */
  --cream:       #F6F1E7;   /* card / form panel surface */

  /* ── Text (warm near-black, three weights) ── */
  --ink:         #1F1B16;   /* primary headings — warm black */
  --ink-soft:    #4A4239;   /* body copy — AA contrast on --sand */
  --ink-muted:   #5C5349;   /* labels, meta, captions */

  /* ── Primary brand color ── */
  --evergreen:   #2C4A3A;   /* forest green */
  --evergreen-d: #213829;   /* darker green — hover states */

  /* ── Dark panel (footer, skills sidebar) ── */
  --panel:       #1E3328;   /* deep forest — avoids pure black */

  /* ── Accent ── */
  --terracotta:  #A98B4B;   /* brass — safe on dark; large/decorative use on light */
  --brass-d:     #735821;   /* deeper brass — AA-safe for small text on --cream/--sand */

  /* ── Structural ── */
  --line:        #CFC3A8;   /* hairline borders */
  --shadow:      24px 28px 60px -32px rgba(31,27,22,0.42);

  /* ── Layout ── */
  --maxw: 1180px;           /* max content width, applied via .wrap */

  /* ── Typography ── */
  --font-display: "Fraunces", Georgia, serif;    /* headings, pull quotes, brand */
  --font-body:    "Hanken Grotesk", -apple-system, sans-serif; /* body, nav, UI */
}


/* ============================================================
   2. RESET & BASE
   ─────────────────────────────────────────────────────────────
   Minimal reset — zero margins/padding, border-box sizing
   everywhere.  No normalize.css or full reset library is used;
   the goal is to stay lean and predictable.

   body::before injects a subtle SVG noise texture (grain)
   across the entire viewport, fixed so it doesn't scroll.
   pointer-events: none ensures it never intercepts clicks.
   opacity 0.04 keeps it near-invisible — adds depth without
   distraction.
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* sharper text on macOS Chrome/Safari */
  overflow-x: hidden;                  /* prevents horizontal scroll from portrait ring animation */
}

/* Text selection — uses brand colors for a polished feel */
::selection { background: var(--evergreen); color: var(--sand); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* .wrap — reusable max-width container centered with side padding */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* Grain / atmosphere overlay — SVG fractal noise embedded as a data URI.
   Fixed so it doesn't scroll with the page.  Gives the sand background
   the subtle texture of paper or stone rather than flat color. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height%3D'100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ============================================================
   3. NAV
   ─────────────────────────────────────────────────────────────
   Sticky top navigation with a frosted-glass effect.
   • position: sticky + z-index: 100 keeps it above all content.
   • The transparent border becomes visible (--line color) once
     the user scrolls down 12px — site.js adds the .scrolled
     class at that threshold.
   • backdrop-filter: blur(10px) + semi-transparent background
     creates the frosted glass look without hiding underlying
     content completely.
   • Active state: the current page's nav link receives
     class="active" on the <a> element.  It gets a full-width
     underline and full --ink color.  Each HTML file sets this
     on its own corresponding link.
   • Mobile: the .nav-links flex row turns into a fixed
     dropdown slide-in panel at ≤900px (see responsive section).
     The hamburger button (#navToggle) is hidden on desktop,
     shown on mobile via media query.
   ============================================================ */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(239,233,221,0.82); /* --sand at 82% opacity for frosted effect */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}

/* .scrolled is added by site.js when window.scrollY > 12 */
header.nav.scrolled { border-color: var(--line); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* Brand / logo — uses Fraunces display font with a brass dot accent */
.brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.32rem;
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px;
}
.brand .dot { color: var(--terracotta); } /* the period after "D. Samuel" */

/* Desktop nav links row */
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.94rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color .2s ease;
}

/* Animated underline — grows from left on hover */
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--evergreen); transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* Active state — full underline and darker text, no hover animation needed */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { width: 100%; }

/* "Get in touch" CTA pill — overrides the link underline system entirely */
.nav-cta {
  background: var(--evergreen); color: var(--sand) !important;
  padding: 10px 20px !important; border-radius: 100px; font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta::after { display: none !important; } /* suppress the underline pseudo-element */
.nav-cta:hover { background: var(--evergreen-d); transform: translateY(-2px); }

/* Hamburger button — hidden on desktop, visible on mobile via @media */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }


/* ============================================================
   4. BUTTONS
   ─────────────────────────────────────────────────────────────
   Two button variants used on hero and closing CTA sections:
   • .btn-primary  — filled evergreen (primary action)
   • .btn-ghost    — outlined dark (secondary action)
   Both share the .btn base class which handles layout,
   padding, border-radius, and the arrow nudge animation.
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.98rem; cursor: pointer;
  padding: 14px 26px; border-radius: 100px; border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--evergreen); color: var(--sand); }
.btn-primary:hover { background: var(--evergreen-d); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--sand); transform: translateY(-2px); }

/* Arrow nudge — the → inside a button slides right on hover */
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }


/* ============================================================
   5. HERO (home page — index.html only)
   ─────────────────────────────────────────────────────────────
   Two-column grid: text content (left, 1.15fr) + portrait (right, 0.85fr).
   The grid collapses to single-column on mobile (see responsive section).

   PORTRAIT / HEADSHOT
   The <img> inside .portrait has an onerror handler that hides
   itself and shows the monogram fallback ("DS") if headshot.jpg
   doesn't exist.  To add a real photo, drop a file named
   "headshot.jpg" in the donteisha-portfolio folder.  No other
   code changes are required — the fallback hides automatically.

   DASHED RING ANIMATION
   .portrait-wrap::after draws a dashed circle slightly larger
   than the portrait and slowly rotates it via @keyframes spin
   at 60s per revolution.  It's a subtle ambient motion that
   adds life without being distracting.  prefers-reduced-motion
   removes it entirely.
   ============================================================ */
.hero { position: relative; z-index: 2; padding: 72px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }

/* Kicker — small ALL-CAPS label above the main headline */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--evergreen); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--evergreen); }

/* Main headline — fluid clamp sizing so it scales between 2.9rem and 5.1rem */
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.9rem, 6.4vw, 5.1rem); line-height: 0.98;
  letter-spacing: -0.025em; margin-bottom: 18px;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--evergreen); }

/* Role / subtitle line below the headline */
.hero .role {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--ink-soft);
  margin-bottom: 26px; font-weight: 400;
}
.hero p.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Portrait container — positions the badge and the dashed ring */
.portrait-wrap { position: relative; justify-self: center; }
.portrait {
  width: clamp(260px, 30vw, 380px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid var(--cream);  /* cream border separates photo from background */
  position: relative; z-index: 2;
  background: var(--evergreen); /* visible before image loads */
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Monogram fallback — shown via JS onerror if headshot.jpg is missing */
.portrait .monogram {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 5rem; color: var(--sand);
  background: radial-gradient(circle at 30% 25%, #38614C, var(--evergreen-d));
}

/* Rotating dashed ring around the portrait */
.portrait-wrap::after {
  content: ""; position: absolute; inset: -18px;
  border: 1.5px dashed var(--line); border-radius: 50%;
  z-index: 1; animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Badge pill — "12 yrs in education ✦" — rotated slightly for a sticker feel */
.badge {
  position: absolute; z-index: 3; bottom: 18px; right: -6px;
  background: var(--terracotta); color: var(--ink);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 10px 16px; border-radius: 100px;
  box-shadow: 0 10px 24px -10px rgba(169,139,75,0.65); transform: rotate(-3deg);
}


/* ============================================================
   6. VALUE STRIP (home page — index.html only)
   ─────────────────────────────────────────────────────────────
   A full-width evergreen band directly below the hero.
   Four stats/values in a 4-column grid (collapses to 2 at ≤900px).
   Each .stat uses the .num large display number and .lbl caption.
   The light italic em within .num provides color contrast.
   ============================================================ */
.strip { background: var(--evergreen); color: var(--sand); position: relative; z-index: 2; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.stat .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; display: block; }
.stat .num em { font-style: italic; color: #c9e0d3; } /* light mint — still readable on evergreen */
.stat .lbl { font-size: 0.9rem; color: #c9d8cf; margin-top: 8px; }


/* ============================================================
   7. HOME CLOSING CTA (home page — index.html only)
   ─────────────────────────────────────────────────────────────
   A centered call-to-action section at the bottom of the home
   page, above the footer.  Uses --sand-deep background to
   visually separate it from the plain --sand above.
   Max-width is narrowed to 760px so the headline never sprawls.
   ============================================================ */
.home-cta { background: var(--sand-deep); position: relative; z-index: 2; padding: 84px 0; }
.home-cta .wrap { max-width: 760px; text-align: center; }
.home-cta h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 18px;
}
.home-cta h2 em { font-style: italic; color: var(--evergreen); }
.home-cta p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 30px; }
.home-cta .hero-cta { justify-content: center; } /* re-use the hero-cta flex row, centered */


/* ============================================================
   8. INNER PAGE HEADER
   ─────────────────────────────────────────────────────────────
   The top section on work.html, about.html, writing.html, and
   contact.html.  Replaces the hero for non-home pages — simpler
   layout with just a kicker label, h1, and optional lead paragraph.
   The .kicker here uses the same style as the global .kicker
   component but without the .idx number prefix.
   ============================================================ */
.page-header { position: relative; z-index: 2; padding: 72px 0 6px; }
.page-header .kicker { margin-bottom: 18px; }
.page-header h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.02em;
}
.page-header h1 em { font-style: italic; color: var(--evergreen); }
.page-header .lead { margin-top: 18px; color: var(--ink-soft); font-size: 1.12rem; max-width: 44em; }


/* ============================================================
   9. SECTION SCAFFOLD
   ─────────────────────────────────────────────────────────────
   .section-pad  — standard vertical padding for content sections.
   .kicker       — small uppercase label used above section titles.
                   The .idx child is an optional italic number
                   prefix (used in some sections for visual hierarchy).
   section gets z-index: 2 to sit above the fixed grain overlay
   (which is at z-index: 1).
   ============================================================ */
section { position: relative; z-index: 2; }
.section-pad { padding: 56px 0 96px; }
.kicker {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass-d);
  display: flex; align-items: center; gap: 12px;
}
.kicker .idx { font-family: var(--font-display); color: var(--ink-muted); font-weight: 500; }


/* ============================================================
  10. WORK (work.html project list)
   ─────────────────────────────────────────────────────────────
   Each project is an <article class="project"> using a
   3-column grid:  project number | content | CTA link.

   LAYOUT NOTES
   • 88px left column holds just the italic project number (.pnum).
   • Middle column stretches to fill — holds the title, tags,
     and the PAO (Problem / Approach / Design rationale /
     Success measures) detail grid.
   • Right column (auto width) holds the "View →" link.
   • On hover, the entire article nudges right (padding-left: 12px)
     for a subtle interactive feel.

   PAO GRID (.pao)
   Each PAO row is a 2-col grid: label (128px) + value.
   Labels are uppercase brass, values are --ink-soft.
   This aligns all four data pairs into a clean table-like layout
   without using an actual <table>.

   TAGS
   .tag       — base tag chip (evergreen tint)
   .tag.concept — brass/gold tint with ✦ prefix, identifies
                  this as a concept/coursework project rather
                  than deployed production work.  Honesty-first
                  framing so recruiters have full context.

   "VIEW" LINK
   The .view link opens the PDF in a new tab (target="_blank").
   rel="noopener" is set for security (prevents the opened page
   from accessing the opener window via window.opener).
   The arrow slides right on the parent article :hover.
   ============================================================ */
.project {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 36px; align-items: start;
  padding: 40px 0; border-top: 1px solid var(--line); transition: padding-left .3s ease;
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project:hover { padding-left: 12px; } /* nudge right on hover */
.project .pnum { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--terracotta); font-style: italic; }
.project h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 14px; }
.project .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* Base tag chip */
.tag { font-size: 0.78rem; font-weight: 600; color: var(--evergreen); background: rgba(35,74,60,0.10); padding: 5px 12px; border-radius: 100px; }

/* Concept/coursework tag — brass color with ✦ prefix (::before) */
.tag.concept { color: var(--brass-d); background: rgba(169,139,75,0.16); display: inline-flex; align-items: center; gap: 6px; }
.tag.concept::before { content: "✦"; font-size: 0.7em; }

/* PAO detail grid — two columns: label (128px) + value */
.pao { display: grid; gap: 10px; max-width: 52em; }
.pao div { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: baseline; }
.pao .k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); padding-top: 2px; }
.pao .v { color: var(--ink-soft); }
.pao .v strong { color: var(--ink); font-weight: 600; } /* bold terms within the value column */

/* View → PDF link (right column of the project grid) */
.project .view { align-self: center; white-space: nowrap; font-weight: 600; color: var(--evergreen); display: inline-flex; align-items: center; gap: 8px; }
.project .view .arrow { transition: transform .2s ease; }
.project:hover .view .arrow { transform: translateX(5px); }


/* ============================================================
  11. ABOUT (about.html)
   ─────────────────────────────────────────────────────────────
   Two-column grid (1fr / 1fr):
   LEFT  — .vm: stacked Mission + Vision cards (.vm-card)
   RIGHT — .skills-panel: sticky dark sidebar with skill chips

   MISSION / VISION CARDS
   Each .vm-card is a cream-background card with a 4px left
   border in --evergreen, giving a subtle accent stripe.
   The h4 inside uses Fraunces italic for editorial warmth.

   SKILLS PANEL
   Background is --panel (deep forest) for visual separation.
   position: sticky keeps it in view while the user scrolls the
   mission/vision cards.  On mobile (≤900px) the sticky is
   removed (position: static) so it flows naturally.
   The .skill-group .gl label is uppercase brass — same visual
   language as the section kicker labels.
   Each .chip has a semi-transparent border that brightens
   on hover for subtle interactivity.

   RESUME LINK
   Currently points to href="#" — update this to the actual
   resume PDF path once the file is available, e.g.:
     href="docs/resume-d-samuel.pdf"
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.vm { display: grid; gap: 34px; }
.vm-card { background: var(--cream); border-radius: 18px; padding: 32px 34px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.vm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--evergreen); }
.vm-card h4 { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; font-weight: 500; margin-bottom: 12px; }
.vm-card p { color: var(--ink-soft); font-size: 1rem; }

/* Sticky skills panel (dark) */
.skills-panel { background: var(--panel); color: var(--sand); border-radius: 18px; padding: 38px; align-self: start; position: sticky; top: 96px; }
.skills-panel h4 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.skills-panel .sub { color: #b9af9f; font-size: 0.92rem; margin-bottom: 28px; } /* descriptive sub-label */
.skill-group { margin-bottom: 24px; }
.skill-group .gl { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Individual skill chip */
.chip {
  font-size: 0.85rem; padding: 7px 14px; border-radius: 100px;
  border: 1px solid rgba(247,242,232,0.22); /* faint warm-white border */
  color: var(--sand); transition: background .2s ease, border-color .2s ease;
}
.chip:hover { background: rgba(247,242,232,0.10); border-color: rgba(247,242,232,0.5); }

/* Resume download link — update href to actual PDF path */
.resume-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--sand); font-weight: 600; border-bottom: 1.5px solid var(--terracotta); padding-bottom: 3px; }


/* ============================================================
  12. WRITING LIST  (writing.html + essay "more writing" rail)
   ─────────────────────────────────────────────────────────────
   writing.html uses .essay-grid — a 3-column card grid.
   Each essay page ends with a .more-writing section that
   uses .more-grid — a 2-column grid linking to the other essays.
   Both grids use the same .more-card component.

   MORE-CARD
   The entire card is an <a> tag so the whole surface is
   clickable — no nested buttons or extra JS needed.
   Cards lift on hover (translateY -5px + shadow) for a
   tactile effect.  The arrow inside .read slides on card hover.
   ============================================================ */
.essay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.more-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 30px; transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; min-height: 180px;
}
.more-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.more-card .mc-tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-d); margin-bottom: 14px; }
.more-card h3 { font-family: var(--font-display); font-size: 1.34rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin-bottom: auto; }
.more-card .excerpt { color: var(--ink-soft); font-size: 0.96rem; margin: 14px 0 0; }

/* "Read essay →" link — positioned at the bottom of the card using auto margin above */
.more-card .read { margin-top: 22px; font-size: 0.9rem; font-weight: 600; color: var(--evergreen); display: inline-flex; gap: 8px; align-items: center; }
.more-card .read .arrow { transition: transform .2s ease; }
.more-card:hover .read .arrow { transform: translateX(4px); }

/* The "More writing" band (--sand-deep background) at the bottom of each essay page */
.more-writing { background: var(--sand-deep); position: relative; z-index: 2; padding: 70px 0 80px; }
.more-writing .eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-d); margin-bottom: 28px; }


/* ============================================================
  13. CONTACT (contact.html)
   ─────────────────────────────────────────────────────────────
   Two-column grid (1fr / 1fr):
   LEFT  — intro paragraph + clickable email address
   RIGHT — the contact form

   FORM
   • Background: --cream, rounded 20px corners, 1px --line border.
   • .frow splits the first row (First / Last name) into two columns.
   • All inputs and textareas share the same padding, border-radius,
     and focus style (border turns --evergreen on focus).
   • The submit button spans the full form width.
   • The onsubmit handler in the HTML prevents default form
     submission (no backend connected) and changes the button
     text to a confirmation message — a front-end UX courtesy
     so the user knows their message was "sent".

   NOTE: To wire this form to a real email backend, replace the
   inline onsubmit with a fetch() call to a service like
   Formspree, Netlify Forms (when back on Netlify), or EmailJS.
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 26em; margin-bottom: 28px; }
.contact .email-link { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; border-bottom: 2px solid var(--terracotta); padding-bottom: 4px; display: inline-block; }

/* Form container */
form { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 34px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } /* First + Last name side by side */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--sand); font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--evergreen); }
.field textarea { resize: vertical; min-height: 110px; }
form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }


/* ============================================================
  14. ARTICLE / ESSAY PAGES
   ─────────────────────────────────────────────────────────────
   Three essay pages share this layout:
   • honesty-integrity-and-learner-centered-design.html
   • designing-my-next-chapter-in-learning-experience-design.html
   • from-content-to-capability.html

   PAGE STRUCTURE
   <article>
     <header class="article-hero">  — title block above the fold
     <div class="prose">            — long-form body content
   </article>
   <section class="more-writing">  — related essay cards
   <footer>                        — shared footer

   ARTICLE HERO
   • .back-link     — "← Back to writing" with gap animation on hover
   • .article-kicker — category label (Craft & ethics, Career, etc.)
   • h1             — article title with optional <em> for italic word
   • .standfirst    — italic intro paragraph (editorial convention)
   • .byline        — avatar initials + author + date + read time

   PROSE
   Max-width 720px for optimal reading line length (~70–75 chars).
   • p, ul, ol      — 1.14rem, 1.78 line-height for comfortable reading
   • h2             — section headers with a brass bar pseudo-element above
   • .pullquote     — large italic highlight quote, left border accent
   • a              — evergreen + brass underline, background highlight on hover

   REFERENCES
   Only "From Content to Capability" has a .references block
   (APA-formatted academic citations).  Styled as a cream-panel
   inset with uppercase brass heading.
   ============================================================ */
.article-hero { padding: 56px 0 30px; position: relative; z-index: 2; }
.article-hero .wrap { max-width: 800px; } /* wider than prose for the intro block */

/* Back navigation link */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 34px; transition: gap .2s ease, color .2s ease; }
.back-link:hover { gap: 12px; color: var(--evergreen); }

/* Category label above the article title */
.article-kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-d); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px; }
.article-kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--terracotta); }

/* Article main title */
.article-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 22px; }
.article-hero h1 em { font-style: italic; color: var(--evergreen); }

/* Large italic intro paragraph (above the byline) */
.standfirst { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--ink-soft); margin-bottom: 30px; max-width: 34em; }

/* Author / date / read-time row */
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-muted); }
.byline .avatar { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #38614C, var(--evergreen-d)); color: var(--sand); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.byline .who { color: var(--ink); font-weight: 600; }
.byline .sep { color: var(--line); }  /* bullet separator between byline items */

/* Prose body */
.prose { position: relative; z-index: 2; padding: 18px 0 60px; }
.prose .wrap { max-width: 720px; } /* narrower than .article-hero for comfortable line length */
.prose p, .prose ul, .prose ol { font-size: 1.14rem; line-height: 1.78; color: var(--ink-soft); margin-bottom: 1.5rem; }
.prose p strong { color: var(--ink); font-weight: 600; }

/* Section headings within prose — brass bar above for visual anchor */
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); margin: 3rem 0 1.1rem; }
.prose h2::before { content: ""; display: block; width: 38px; height: 3px; background: var(--terracotta); margin-bottom: 1.1rem; border-radius: 2px; }

/* Links within prose */
.prose a { color: var(--evergreen); font-weight: 600; border-bottom: 1.5px solid var(--terracotta); transition: background .2s ease; }
.prose a:hover { background: rgba(169,139,75,0.14); }

/* Pull quote — large italic highlight with left brass border */
.pullquote { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--evergreen); margin: 2.6rem 0; padding-left: 26px; border-left: 4px solid var(--terracotta); }

/* References panel (APA citations — used in "From Content to Capability") */
.references { margin-top: 3rem; padding: 30px 32px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.references h3 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-d); margin-bottom: 18px; }
.references li { list-style: none; font-size: 0.92rem; line-height: 1.6; color: var(--ink-muted); padding-left: 22px; text-indent: -22px; margin-bottom: 14px; }
.references a { color: var(--evergreen); border-bottom: 1px solid var(--line); word-break: break-word; }


/* ============================================================
  15. FOOTER
   ─────────────────────────────────────────────────────────────
   Dark --panel background (deep forest) consistent with the
   skills panel on the About page.
   Two-row layout:
   • foot-top   — brand quote (left) + nav links (right)
   • foot-bottom — copyright (left) + tagline (right)
   Both rows use flex with gap + flex-wrap for graceful
   wrapping on narrow screens.
   ============================================================ */
footer { background: var(--panel); color: var(--sand); position: relative; z-index: 2; padding: 56px 0 36px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(247,242,232,0.16); }
.foot-top .big { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 500; line-height: 1.07; letter-spacing: -0.01em; max-width: 14em; }
.foot-top .big em { font-style: italic; color: #c9e0d3; } /* light mint em on dark background */
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: #c9d8cf; font-weight: 500; transition: color .2s ease; }
.foot-links a:hover { color: var(--sand); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: #9aa79f; font-size: 0.88rem; }


/* ============================================================
  16. REVEAL ANIMATION
   ─────────────────────────────────────────────────────────────
   Elements with class="reveal" start invisible and translated
   down 28px.  When site.js (IntersectionObserver) adds the
   class "in", they transition to full opacity and original
   position over 0.7s with a natural ease curve.

   HERO SEQUENCE
   The hero elements (eyebrow → h1 → role → lede → CTA) use
   a separate CSS animation (@keyframes rise) with staggered
   animation-delay values so they appear one after another.
   The portrait uses @keyframes pop which also scales from 92%.

   SAFETY NET (in site.js)
   The IntersectionObserver only fires when elements scroll
   INTO view.  For above-fold content (About, Contact page
   headers), this means elements stay hidden if the page loads
   with them already visible.  site.js fires a requestAnimationFrame
   check on load that immediately adds "in" to any .reveal
   element that's already in the viewport.

   ACCESSIBILITY
   prefers-reduced-motion: reduce removes all animations and
   transitions globally and immediately shows all .reveal
   elements (opacity: 1, no transform).
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Hero staggered entrance — separate keyframe animation on each element */
.hero .eyebrow, .hero h1, .hero .role, .hero p.lede, .hero .hero-cta { opacity: 0; transform: translateY(24px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .eyebrow  { animation-delay: .05s; }
.hero h1        { animation-delay: .15s; }
.hero .role     { animation-delay: .28s; }
.hero p.lede    { animation-delay: .40s; }
.hero .hero-cta { animation-delay: .52s; }

/* Portrait pops in with a scale as well as a fade */
.portrait-wrap { opacity: 0; animation: pop 1s cubic-bezier(.2,.7,.2,1) .35s forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop  { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* Accessibility: remove all motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
  17. RESPONSIVE BREAKPOINTS
   ─────────────────────────────────────────────────────────────
   Two breakpoints:
   ≤ 900px — tablet / large mobile  (most multi-column grids collapse)
   ≤ 560px — small mobile           (tighter padding, single-column forms)

   900px CHANGES
   • Hero grid → single column (portrait moves above text via order: -1)
   • Value strip → 2×2 grid instead of 4×1
   • About grid → single column; skills panel loses sticky
   • Essay grid (writing.html) → single column
   • Contact grid → single column
   • Project grid → single column (number, content, CTA stack vertically)
   • PAO label/value pairs → stacked (1-column grid)
   • Nav links → full-width dropdown panel (fixed, slides in from top)
     The hamburger button (#navToggle) becomes visible.
     .nav-links.open reveals the panel.

   560px CHANGES
   • .wrap side padding reduced (32px → 22px)
   • Section padding tightened
   • Contact form first-row (.frow) becomes single column
   • References block padding reduced
   ============================================================ */
@media (max-width: 900px) {
  /* Hero */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait-wrap { order: -1; } /* portrait moves above the headline text */

  /* Value strip */
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-panel { position: static; } /* can't sticky in a single-column layout */

  /* Writing */
  .essay-grid { grid-template-columns: 1fr; }
  .more-grid  { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Work projects */
  .project { grid-template-columns: 1fr; gap: 14px; }
  .project .pnum { font-size: 1.1rem; }

  /* PAO rows — stack label above value */
  .pao div { grid-template-columns: 1fr; gap: 2px; }
  .pao .k  { padding-top: 8px; }

  /* Mobile nav — slides down from behind the sticky header */
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; /* top: 72px (nav height), full width */
    flex-direction: column;
    background: var(--sand); padding: 24px 32px; gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); /* hidden above viewport by default */
    transition: transform .3s ease;
  }
  .nav-links.open { transform: none; } /* site.js adds .open on hamburger click */
  .nav-toggle { display: block; } /* show hamburger button */
}

@media (max-width: 560px) {
  .wrap        { padding: 0 22px; }
  .section-pad { padding: 40px 0 70px; }
  .frow        { grid-template-columns: 1fr; } /* First/Last stacked */
  .references  { padding: 24px 22px; }
  .slide-grid  { grid-template-columns: 1fr; }
}


/* ============================================================
  18. SLIDE GALLERY — project artifact visual embeds
   ─────────────────────────────────────────────────────────────
   Used on project-*.html pages to display PDF slide exports
   as native web images, grouped by session with headings.

   STRUCTURE
   .slide-deck              — outer section wrapping all sessions
   .slide-session           — one session block (heading + grid)
   .slide-session-label     — session heading (Fraunces, brass bar)
   .slide-grid              — 2-col image grid (collapses at 700px)
   .slide                   — <figure> wrapper for each image
   .slide img               — the actual slide image

   IMAGE FORMAT
   JPEG at 1400×788 (150 DPI export from pdftoppm).
   lazy-loaded with loading="lazy" on each <img>.
   ============================================================ */
.slide-deck { padding: 3rem 0 5rem; }

.slide-session { margin-bottom: 4rem; }

.slide-session-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--line);
}
.slide-session-label::before {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--terracotta);
  margin-bottom: .9rem;
  border-radius: 2px;
}

.slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.slide {
  margin: 0;
  padding: 0;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(30,40,50,.13);
  transition: box-shadow .2s ease;
}
.slide img:hover { box-shadow: 0 6px 28px rgba(30,40,50,.22); }

/* ── SLIDE VIEWER (.sv) ───────────────────────────────────────
   Single-slide-at-a-time viewer embedded in the page.
   Shows one image, a section label, a counter, prev/next
   buttons, and a progress bar that fills as you advance.
   ────────────────────────────────────────────────────────── */
.sv { background: var(--panel); border-radius: 16px; padding: 28px 32px 32px; }

/* Header row: section label (left) + counter (right) */
.sv-header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sv-section { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--sand); letter-spacing: -0.01em; }
.sv-count   { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: #9aa79f; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* Slide image */
.sv-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 32px rgba(0,0,0,.45);
  transition: opacity .18s ease;
}

/* Progress bar */
.sv-progress { height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; margin: 18px 0; overflow: hidden; }
.sv-progress-fill { height: 100%; background: var(--terracotta); border-radius: 2px; transition: width .25s ease; }

/* Controls row: prev (left) + next (right) */
.sv-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 4px; }
.sv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.sv-btn:hover   { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); }
.sv-btn:disabled { opacity: .3; cursor: default; }

@media (max-width: 700px) {
  .slide-grid { grid-template-columns: 1fr; }
  .sv { padding: 20px 18px 24px; }
  .sv-btn { padding: 9px 14px; font-size: 0.82rem; }
}
