/* ==========================================================================
   Fowler & Wells — global stylesheet
   Design tokens live at the top. Every section should draw from these
   rather than hard-coding new colors, sizes, or spacing.
   ========================================================================== */

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

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Lora:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@400;500;600&display=swap');

:root {
  /* --- Color --- */
  --forest: #2e1f3d ;      /* Canada, forests, hidden worlds */
  --parchment: #f6ecd9;   /* books, manuscripts, storytelling */
  --gold: #d4a24c ;        /* magic, discovery, artifacts */
  --midnight: #3f6b52 ;    /* wonder, imagination, night skies */
  --moss: #5f7a4c;        /* secondary green, card surfaces */
  --ink: #2e1f3d;         /* warm near-black for text */

  --forest-deep: #2e1f3d;
  --parchment-dim: #8ec45c;
      --parchment-book: #f9f4ea;   /* books, manuscripts, storytelling */

  --gold-dim: #a97c38;
  --midnight-deep: #563577;

/* --- Type --- */
--font-display: 'Fraunces', Georgia, serif;      /* headings — whimsical, storybook, handcrafted */
--font-body: 'Lora', Georgia, serif;             /* body — warm, readable, literary */
--font-accent: 'Montserrat', -apple-system, sans-serif; /* labels, buttons, publisher details */

  --step-caption: 0.8rem;
  --step-body: 1.08rem;
  --step-lead: 1.35rem;
  --step-h3: clamp(1.5rem, 2vw, 2rem);
  --step-h2: clamp(2.3rem, 4.5vw, 3.4rem);
  --step-h1: clamp(2.8rem, 7vw, 5.8rem);

  /* --- Spacing / layout --- */
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --section-pad-y: clamp(4rem, 10vw, 8rem);
  --max-w: 1180px;
  --radius: 3px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  margin: 0 0 0.5em;
  color: var(--forest);
}

h1 { font-size: var(--step-h1); font-weight: 500; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }


.eyebrow {
  font-family: var(--font-accent);
  font-size: var(--step-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

/* --- Reveal-on-scroll (subtle, per brief: "never delay information") --- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.8em;
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
  background: transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold {
  color: var(--forest);
  border-color: var(--gold);
  background: var(--gold);
}
.btn--gold:hover { background: transparent; color: var(--gold); }

.btn--ghost {
  color: var(--parchment);
  border-color: var(--parchment-dim);
}
.btn--ghost:hover { background: var(--parchment); color: var(--forest); }

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* --- Signature element: twin paths ---
   Two thin strokes (gold + moss) run between sections, touching and
   separating — two authors' paths merging into one world. This motif
   also appears, larger, behind the authors' portraits. */
.twin-path {
  width: 100%;
  height: 64px;
  display: block;
}
.twin-path .path-a { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: 0.75; }
.twin-path .path-b { fill: none; stroke: var(--moss); stroke-width: 1.4; opacity: 0.55; }

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

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

/* Section-specific styles are appended below by each section's own
   authoring pass; keeping them in this single file (rather than one
   stylesheet per section) avoids specificity fights between
   type-selectors and class-selectors down the line. */

/* --- Site header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--gutter);
  color: var(--parchment);
  mix-blend-mode: difference;
}

.site-header__mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-header__nav {
  display: flex;
  gap: clamp(1rem, 2vw, 2.2rem);
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header__nav a { opacity: 0.85; transition: opacity 0.2s var(--ease); }
.site-header__nav a:hover { opacity: 1; }

@media (max-width: 640px) {
  .site-header__nav { gap: 0.9rem; font-size: 0.66rem; }
}

/* --- Site footer --- */
.site-footer {
  background: var(--midnight-deep);
  color: var(--parchment-dim);
  padding: 2rem 0;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--forest-deep);
}

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

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,38,32,0.32) 0%, rgba(16,38,32,0.4) 45%, rgba(16,38,32,0.93) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--parchment);
}

.hero__mark {
  color: var(--parchment);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 0.4em;
}

.hero__line {
  max-width: 30ch;
  font-size: var(--step-lead);
  color: var(--parchment-dim);
  margin-bottom: 1.6em;
}

.hero__intro-label {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.2em;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
font-family:  "Henny Penny", system-ui;
font-weight: 400;
  font-size: var(--step-h1);
  color: var(--parchment);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.01em;
}

.hero__sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--parchment-dim);
  font-size: var(--step-lead);
  margin: 0.3em 0 0;
}

.hero__divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 2;
}

/* --- Hook --- */
.hook {
  background: var(--parchment);
  padding-top: clamp(5rem, 14vw, 10rem);
  padding-bottom: clamp(5rem, 14vw, 10rem);
}

.hook__inner {
  text-align: center;
}

.hook__question {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 0.8em;
}

.hook__answer {
  font-family: var(--font-accent);
  font-size: var(--step-lead);
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
}

.hook__answer span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--gold-dim);
  font-size: 1.2em;
}

/* --- Folklure (manuscript) --- */
.folklure { background: var(--parchment-book); }

.folklure__grid {
  display: grid;
  grid-template-columns: minmax(200px, 340px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.folklure__cover img {
  width: 100%;
  border-radius: var(--radius);
  transform: rotate(-2.5deg);
  box-shadow: 0 24px 48px -18px rgba(32,28,20,0.45);
}

.folklure__synopsis {
  font-size: var(--step-lead);
  max-width: 54ch;
}

.folklure__pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--moss);
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  max-width: 48ch;
}

.folklure__status {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--forest);
  opacity: 0.75;
  margin: -0.6rem 0 1.6rem;
}

.folklure__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 1.2rem 2rem;
  margin: 2rem 0 2.4rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--parchment-dim);
  border-bottom: 1px solid var(--parchment-dim);
}

.folklure__details-wide { grid-column: 1 / -1; }

.folklure__details dt {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.3em;
}

.folklure__details dd {
  margin: 0;
  font-family: var(--font-body);
  color: var(--forest);
}

@media (max-width: 760px) {
  .folklure__grid { grid-template-columns: 1fr; }
  .folklure__cover { max-width: 260px; margin: 0 auto; }
}

/* --- World (field guide) --- */
.world { background: var(--forest); color: var(--parchment); }
.world h2 { color: var(--parchment); max-width: 20ch; }

.world__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.8rem;
}

.world__card {
  padding: 2rem 1.8rem;
  border: 1px solid rgba(246,236,217,0.15);
  border-radius: var(--radius);
  background: rgba(246,236,217,0.03);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.world__card:hover {
  border-color: rgba(201,151,79,0.5);
  background: rgba(246,236,217,0.06);
}

.world__icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}

.world__card h3 { color: var(--gold); font-size: 1.25rem; }
.world__card p { color: var(--parchment-dim); margin: 0; font-size: 0.95rem; }

/* --- Authors --- */
.authors { background: var(--parchment); }

.authors__heading { text-align: center; max-width: 46ch; margin: 0 auto 3rem; }
.authors__heading h2 { margin-bottom: 0; }
.authors__heading-note {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--moss);
  margin-top: 0.6em;
}

.authors__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: clamp(1rem, 4vw, 2.5rem);
}

.authors__portrait {
  aspect-ratio: 4 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.authors__portrait img { width: 100%; height: 100%; object-fit: cover; }

.authors__card h3 { margin-bottom: 0.3em; }
.authors__credit {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  color: var(--gold-dim);
  margin: 0 0 0.7em;
}
.authors__card p { max-width: 40ch; color: var(--ink); opacity: 0.85; }

.authors__seam { width: 40px; height: 100%; align-self: stretch; }
.authors__seam-svg { width: 40px; height: 100%; }

@media (max-width: 720px) {
  .authors__grid { grid-template-columns: 1fr; }
  .authors__seam { display: none; }
}

/* --- Collaboration --- */
.collaboration { background: var(--moss); color: var(--parchment); }
.collaboration h2 { color: var(--parchment); }

.collaboration__inner {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.collaboration__rings { width: 100%; height: auto; overflow: visible; }
.collaboration__rings circle {
  fill: none;
  stroke: var(--parchment);
  stroke-width: 1.4;
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.collaboration__rings-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.2rem;
  fill: var(--gold);
}

.collaboration__text p { max-width: 46ch; color: var(--parchment); opacity: 0.92; font-size: var(--step-lead); }

@media (max-width: 700px) {
  .collaboration__inner { grid-template-columns: 1fr; text-align: center; }
  .collaboration__rings { max-width: 220px; margin: 0 auto; }
  .collaboration__text p { margin-left: auto; margin-right: auto; }
}

/* --- Contact --- */
.contact {
  background: var(--midnight-deep);
  color: var(--parchment);
  text-align: center;
}
.contact h2 { color: var(--parchment); }

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact__email {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  margin: 0.6em 0 1.6em;
  word-break: break-word;
}


/* OVERRIDES */

@import url('https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap');
.folkuretitle {
  font-family: "Henny Penny", system-ui !important;
  font-weight: 400;
  font-style: normal;
}


.hero__title {
  position: relative;
  display: inline-block;
}

/* Hydramarz floating logo */
.hydramarz-logo {
  position: absolute;
  width: 110px;
  height: auto;

  /* place above and slightly right */
  top: -65px;
  right: -130px;

  transform-origin: center;
  transition: transform 0.6s ease;
  cursor: pointer;
}

/* magical spin on hover */
.hero__title:hover .hydramarz-logo {
  transform: rotate(360deg);
}


/* optional: make it float gently when idle */
@keyframes hydraFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

.hydramarz-logo {
  animation: hydraFloat 4s ease-in-out infinite;
}

.hero__title:hover .hydramarz-logo {
  animation: none;
  transform: rotate(360deg);
}