/* ==========================================================================
   jessewilson.us — theme layer
   Loaded after main.css. Everything the site actually looks like lives here;
   main.css is kept only for the template reset, header/off-canvas menu and
   animation plumbing.

   Single source of truth for colour is the :root block below. No hex values
   appear in templates or partials.
   ========================================================================== */

:root {
  /* Palette (PRD section 14) */
  --ink: #262922;
  --cream: #FAF6EC;
  --parchment: #F2ECDD;
  --sage: #7E8C6C;
  --olive: #4E5A3E;
  --dusty-gold: #C4A25F;
  --terracotta: #B97455;
  --stone: #6B6558;
  --mist: #E4E7DE;

  /* Derived tones — kept here so they stay tied to the palette above */
  --gold-deep: #8A6B2E;      /* dusty-gold darkened to pass AA on cream */
  --cream-soft: rgba(250, 246, 236, 0.72);
  --hairline-on-ink: rgba(228, 231, 222, 0.16);
  --scrim-ink: rgba(38, 41, 34, 0.5);

  /* Typography */
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;

  /* Remap the template tokens onto the palette */
  --color-primary: var(--dusty-gold);
  --color-secondary: var(--ink);
  --color-heading: var(--ink);
  --color-default: var(--ink);
  --color-dark: var(--ink);
  --color-border: var(--mist);
  --color-body: var(--cream);

  --measure: 68ch;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a { color: var(--gold-deep); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--olive); }

::selection { background: var(--dusty-gold); color: var(--ink); }

/* Focus visibility — quiet, but never absent. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.jw-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 20px;
}
.jw-skip:focus { left: 12px; top: 12px; }

.jw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jw-cream { background-color: var(--cream); }
.jw-parchment { background-color: var(--parchment); }
.jw-ink { background-color: var(--ink); color: var(--cream); }
.jw-ink h1, .jw-ink h2, .jw-ink h3, .jw-ink h4 { color: var(--cream); }

/* Vertical rhythm. Generous by intent — whitespace is most of the restyle. */
.jw-section { padding-top: 110px; padding-bottom: 110px; }
.jw-section--tight { padding-top: 80px; padding-bottom: 80px; }
.jw-section--open { padding-top: 140px; padding-bottom: 140px; }

@media (max-width: 991px) {
  .jw-section { padding-top: 72px; padding-bottom: 72px; }
  .jw-section--tight { padding-top: 56px; padding-bottom: 56px; }
  .jw-section--open { padding-top: 84px; padding-bottom: 84px; }
}

.jw-measure { max-width: var(--measure); }
.jw-measure--center { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.jw-rule { border: 0; border-top: 1px solid var(--mist); margin: 0; opacity: 1; }

/* Metadata: dates, format/setting labels, "Posted on". Always --stone. */
.jw-meta {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.jw-meta--plain { text-transform: none; letter-spacing: 0.01em; font-size: 16px; }
.jw-meta a { color: var(--stone); text-decoration: underline; text-underline-offset: 3px; }
.jw-meta a:hover { color: var(--olive); }

.jw-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
}

.jw-h2 { font-size: clamp(28px, 3.2vw, 42px); margin: 0 0 24px; }
.jw-h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 0 0 18px; }

.jw-lede { font-size: 22px; line-height: 1.65; color: var(--ink); }
@media (max-width: 767px) { .jw-lede { font-size: 19px; } }

/* The one terracotta accent a page is allowed. Use once per page, no more. */
.jw-accent-underline {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--terracotta);
}
.jw-badge {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  color: var(--terracotta);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Links and buttons
   -------------------------------------------------------------------------- */

/* Primary interactive treatment: a door, not a sales button. */
.jw-door-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--dusty-gold);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}
.jw-door-link:hover { color: var(--olive); border-bottom-color: var(--olive); gap: 16px; }
.jw-door-link .jw-arrow { transition: transform 0.25s ease; }
.jw-door-link:hover .jw-arrow { transform: translateX(3px); }

.jw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid var(--dusty-gold);
  border-radius: 2px;
  background: var(--dusty-gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.jw-btn:hover { background: var(--olive); border-color: var(--olive); color: var(--cream); }

.jw-btn--quiet {
  background: transparent;
  color: var(--olive);
  border-color: var(--mist);
}
.jw-btn--quiet:hover { background: transparent; border-color: var(--olive); color: var(--olive); }

.jw-btn--on-ink {
  background: transparent;
  border-color: var(--dusty-gold);
  color: var(--dusty-gold);
}
.jw-btn--on-ink:hover { background: var(--dusty-gold); color: var(--ink); border-color: var(--dusty-gold); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

/* The bar always sits over the top of the page — the hero video on the home
   page, the parchment page head everywhere else. */
.jw-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.jw-header .header__wrap {
  padding: 26px 50px;
  background: transparent;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition: padding 0.3s ease;
}
@media (max-width: 991px) { .jw-header .header__wrap { padding: 20px 15px; } }

.jw-header .xb-header-logo a {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.jw-header .xb-header-logo .jw-logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 2px;
}

.jw-header .main-menu > ul { display: flex; align-items: center; gap: 38px; list-style: none; }
@media only screen and (min-width: 1200px) and (max-width: 1400px) {
  .jw-header .main-menu > ul { gap: 26px; }
}
.jw-header .main-menu > ul > li { position: relative; }
.jw-header .main-menu > ul > li > a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  display: inline-block;
  border-bottom: 1px solid transparent;
  /* The template title-cases nav labels. "Ways to Connect" is the label. */
  text-transform: none;
}
.jw-header .main-menu > ul > li > a:hover,
.jw-header .main-menu > ul > li.active > a {
  color: var(--olive);
  border-bottom-color: var(--dusty-gold);
}

.jw-header .xb-nav-mobile {
  color: var(--ink);
  background: none;
  border: 0;
  padding: 8px 0;
  line-height: 0;
}

/* Over-the-video variant, home page only */
.jw-header--over-hero .xb-header-logo a,
.jw-header--over-hero .main-menu > ul > li > a,
.jw-header--over-hero .xb-nav-mobile { color: var(--cream); }
.jw-header--over-hero .xb-header-logo .jw-logo-sub { color: var(--cream-soft); }
.jw-header--over-hero .main-menu > ul > li > a:hover,
.jw-header--over-hero .main-menu > ul > li.active > a {
  color: var(--cream);
  border-bottom-color: var(--dusty-gold);
}

/* Once the page has scrolled past the first screen the bar becomes a solid
   cream rail. Same on every page, including the home page. */
.jw-header.is-stuck {
  position: fixed;
  background: var(--cream);
  border-bottom: 1px solid var(--mist);
  animation: jw-drop-in 0.35s ease both;
}
.jw-header.is-stuck .header__wrap { padding-top: 16px; padding-bottom: 16px; }
.jw-header.is-stuck .xb-header-logo a,
.jw-header.is-stuck .main-menu > ul > li > a,
.jw-header.is-stuck .xb-nav-mobile { color: var(--ink); }
.jw-header.is-stuck .xb-header-logo .jw-logo-sub { color: var(--stone); }
.jw-header.is-stuck .main-menu > ul > li > a:hover,
.jw-header.is-stuck .main-menu > ul > li.active > a { color: var(--olive); }

@keyframes jw-drop-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Off-canvas mobile menu */
.xb-header-menu-scroll { background: var(--cream); height: 100%; }
.xb-logo-mobile a { font-family: var(--font-heading); font-size: 21px; color: var(--ink); }
.xb-menu-primary { list-style: none; margin: 40px 0 0; padding: 0; }
.xb-menu-primary > li { border-bottom: 1px solid var(--mist); }
.xb-menu-primary > li > a {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--ink);
  display: block;
  padding: 15px 0;
  text-transform: none;
}
.xb-menu-primary > li > a:hover,
.xb-menu-primary > li.active > a { color: var(--olive); }
.xb-close { background: transparent; }
.xb-close::before, .xb-close::after { background-color: var(--ink); }
.xb-header-menu-backdrop { background: var(--scrim-ink); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.jw-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--olive);
}
@media (max-width: 767px) { .jw-hero { min-height: 88vh; } }

.jw-hero__media,
.jw-hero__media video,
.jw-hero__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jw-hero__media { z-index: 0; }

/* Legibility wash. Dark enough for AA on the overlay copy at any video frame. */
.jw-hero__scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(38, 41, 34, 0.88) 0%,
    rgba(38, 41, 34, 0.62) 42%,
    rgba(38, 41, 34, 0.34) 100%
  );
}

.jw-hero__inner { position: relative; z-index: 2; width: 100%; padding: 0 50px 110px; }
@media (max-width: 991px) { .jw-hero__inner { padding: 0 15px 72px; } }

.jw-hero__statement {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(27px, 3.5vw, 50px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 21ch;
  margin: 0 0 34px;
}
@media (max-width: 767px) { .jw-hero__statement { max-width: none; } }

.jw-hero__signature {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream-soft);
  margin: 0;
}
.jw-hero__signature strong { color: var(--cream); font-weight: 600; }

/* --------------------------------------------------------------------------
   Page head (inner pages) — replaces the template maroon banner
   -------------------------------------------------------------------------- */

.jw-page-head {
  background: var(--parchment);
  border-bottom: 1px solid var(--mist);
  padding: 175px 0 78px;
}
@media (max-width: 991px) { .jw-page-head { padding: 130px 0 56px; } }

.jw-page-head__title {
  font-size: clamp(34px, 4.2vw, 54px);
  margin: 0 0 18px;
}
.jw-page-head__intro { font-size: 20px; line-height: 1.65; color: var(--stone); margin: 0; max-width: 62ch; }

/* --------------------------------------------------------------------------
   Prose (rich text out of the CMS)
   -------------------------------------------------------------------------- */

.jw-prose { font-size: 19px; line-height: 1.78; color: var(--ink); }
.jw-prose > *:first-child { margin-top: 0; }
.jw-prose > *:last-child { margin-bottom: 0; }
.jw-prose p { margin: 0 0 1.35em; }
.jw-prose h2 { font-size: 30px; margin: 2em 0 0.6em; }
.jw-prose h3 { font-size: 24px; margin: 1.8em 0 0.5em; }
.jw-prose ul, .jw-prose ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.jw-prose li { margin-bottom: 0.5em; }
.jw-prose ul { list-style: disc; }
.jw-prose ol { list-style: decimal; }
.jw-prose a { border-bottom: 1px solid var(--dusty-gold); }
.jw-prose a:hover { border-bottom-color: var(--olive); }
.jw-prose blockquote {
  margin: 2em 0;
  padding-left: 28px;
  border-left: 2px solid var(--sage);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.55;
  color: var(--olive);
}
.jw-prose img { border-radius: 2px; margin: 1.6em 0; }

/* --------------------------------------------------------------------------
   Doors / Programs
   -------------------------------------------------------------------------- */

.jw-doors { display: grid; gap: 1px; background: var(--mist); border: 1px solid var(--mist); }
@media (min-width: 768px) { .jw-doors--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
  .jw-doors--3 { grid-template-columns: repeat(3, 1fr); }
  .jw-doors--many { grid-template-columns: repeat(3, 1fr); }
}

.jw-door {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  padding: 46px 40px 42px;
  transition: background 0.3s ease;
}
.jw-door:hover { background: var(--parchment); }
@media (max-width: 767px) { .jw-door { padding: 36px 26px; } }

.jw-door__image {
  display: block;
  margin: 0 0 28px;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 2px;
}
.jw-door__title { font-size: 27px; margin: 0 0 10px; }
.jw-door__title a { color: var(--ink); }
.jw-door__title a:hover { color: var(--olive); }
.jw-door__meta { margin-bottom: 16px; }
.jw-door__summary { margin: 0 0 26px; color: var(--ink); }
.jw-door__foot { margin-top: auto; }

/* Single-program state: don't leave a lonely card in a three-up grid. */
.jw-doors--1 { border: 0; background: transparent; }
.jw-doors--1 .jw-door {
  border: 1px solid var(--mist);
  padding: 56px 52px;
  max-width: 760px;
}
@media (max-width: 767px) { .jw-doors--1 .jw-door { padding: 36px 26px; } }

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */

.jw-events { border-top: 1px solid var(--mist); }

.jw-event {
  display: grid;
  gap: 6px 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--mist);
}
@media (min-width: 768px) {
  .jw-event { grid-template-columns: 250px 1fr auto; align-items: baseline; }
}

.jw-event__when { color: var(--stone); }
.jw-event__title { font-size: 25px; margin: 0 0 6px; }
.jw-event__title a { color: var(--ink); }
.jw-event__title a:hover { color: var(--olive); }
.jw-event__program { color: var(--stone); }
.jw-event__go { justify-self: start; }
@media (min-width: 768px) { .jw-event__go { justify-self: end; } }

/* Past events sit lower and lighter — a record, not a second hero grid. */
.jw-events--past .jw-event { padding: 22px 0; }
.jw-events--past .jw-event__title { font-size: 20px; font-family: var(--font-body); font-weight: 500; }
.jw-events--past .jw-event__title a { color: var(--stone); }
.jw-events--past .jw-event__title a:hover { color: var(--olive); }

/* The zero-record state. Designed, not apologetic. */
.jw-quiet-note {
  border: 1px solid var(--mist);
  background: var(--parchment);
  padding: 46px 44px;
  max-width: 720px;
}
.jw-quiet-note p {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.5;
  color: var(--olive);
  margin: 0 0 20px;
}
.jw-quiet-note p:last-child { margin-bottom: 0; }
@media (max-width: 767px) { .jw-quiet-note { padding: 32px 26px; } }

/* A row of door links that needs to stay apart from its neighbours. */
.jw-links { display: flex; flex-wrap: wrap; gap: 16px 36px; margin: 0; }

/* --------------------------------------------------------------------------
   Writing
   -------------------------------------------------------------------------- */

.jw-writing-list { border-top: 1px solid var(--mist); }

.jw-writing-item { padding: 38px 0; border-bottom: 1px solid var(--mist); }
.jw-writing-item__title { font-size: 28px; margin: 10px 0 12px; max-width: 32ch; }
.jw-writing-item__title a { color: var(--ink); }
.jw-writing-item__title a:hover { color: var(--olive); }
.jw-writing-item__excerpt { margin: 0 0 20px; max-width: var(--measure); color: var(--stone); }

/* Plain-text type filter — no sidebar, no counts. */
.jw-filter { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 8px; padding: 0; list-style: none; }
.jw-filter a {
  font-size: 16px;
  color: var(--stone);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  display: inline-block;
}
.jw-filter a:hover { color: var(--olive); }
.jw-filter a.is-active { color: var(--ink); border-bottom-color: var(--dusty-gold); }

.jw-audio { width: 100%; margin: 26px 0; }

/* --------------------------------------------------------------------------
   Detail pages
   -------------------------------------------------------------------------- */

.jw-detail__title { font-size: clamp(32px, 4vw, 50px); margin: 0 0 20px; }

.jw-facts { border-top: 1px solid var(--mist); margin: 0; }
.jw-fact {
  display: grid;
  gap: 4px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--mist);
}
@media (min-width: 576px) { .jw-fact { grid-template-columns: 190px 1fr; } }
.jw-fact__label { color: var(--stone); }
.jw-fact__value { color: var(--ink); }

.jw-aside {
  background: var(--parchment);
  border: 1px solid var(--mist);
  padding: 38px 36px;
}
.jw-aside__title { font-size: 21px; margin: 0 0 14px; }
@media (max-width: 767px) { .jw-aside { padding: 28px 24px; } }

.jw-figure { margin: 0; }
.jw-figure img { width: 100%; height: auto; border-radius: 2px; display: block; }
.jw-figure figcaption { margin-top: 12px; font-size: 15px; color: var(--stone); }

.jw-back { display: inline-block; margin-top: 60px; }

/* --------------------------------------------------------------------------
   Terms row — the template four-circle pattern, restyled as plain marks
   -------------------------------------------------------------------------- */

.jw-terms { display: grid; gap: 40px; }
@media (min-width: 768px) { .jw-terms { grid-template-columns: repeat(2, 1fr); gap: 52px 60px; } }

/* The template puts a photo circle above each of the four items. There is no
   honest photograph for these, so the mark is a rule instead — same rhythm,
   nothing invented. */
.jw-term { padding-top: 26px; border-top: 1px solid var(--dusty-gold); }
.jw-term__title { font-size: 24px; margin: 0 0 12px; }
.jw-term p { margin: 0; color: var(--ink); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.jw-field { margin-bottom: 28px; }
.jw-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.jw-field .jw-help { display: block; font-size: 15px; color: var(--stone); font-weight: 400; margin-top: 4px; }

/* The one open question on the contact page carries the page, so it is set
   as a question rather than as a field label. */
.jw-field--prompt label {
  font-family: var(--font-heading);
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 20px;
}

.jw-field input[type="text"],
.jw-field input[type="email"],
.jw-field textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--mist);
  border-radius: 2px;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.jw-field input:hover,
.jw-field textarea:hover { border-color: var(--sage); }
.jw-field input:focus,
.jw-field textarea:focus { border-color: var(--olive); }
.jw-field textarea { min-height: 200px; resize: vertical; line-height: 1.65; }

.jw-field input::-webkit-input-placeholder,
.jw-field textarea::-webkit-input-placeholder { color: var(--stone); opacity: 0.75; }
.jw-field input::placeholder,
.jw-field textarea::placeholder { color: var(--stone); opacity: 0.75; }

/* Honeypot — visually gone, still reachable to nothing but bots. */
.jw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.jw-note { font-size: 16px; line-height: 1.7; color: var(--stone); max-width: 60ch; }

.jw-alert { border: 1px solid var(--mist); padding: 20px 24px; margin-bottom: 34px; border-radius: 2px; }
.jw-alert p { margin: 0; }
.jw-alert--ok { background: var(--parchment); border-color: var(--sage); }
.jw-alert--bad { background: var(--parchment); border-color: var(--terracotta); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.jw-footer { background: var(--ink); color: var(--cream); padding: 90px 0 0; }
.jw-footer h2, .jw-footer h3 { color: var(--cream); }
.jw-footer a { color: var(--cream); }
.jw-footer a:hover { color: var(--dusty-gold); }

.jw-footer__wordmark { font-family: var(--font-heading); font-size: 26px; color: var(--cream); display: inline-block; }
.jw-footer__wordmark span {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 4px;
}

.jw-footer__title { font-size: 22px; margin: 0 0 14px; }
.jw-footer__text { color: var(--mist); font-size: 16px; line-height: 1.7; max-width: 48ch; }

.jw-footer__links { list-style: none; margin: 0; padding: 0; }
.jw-footer__links li { margin-bottom: 12px; }
.jw-footer__links a { font-size: 17px; }

.jw-signup { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; max-width: 520px; }
.jw-signup input[type="email"] {
  flex: 1 1 220px;
  background: transparent;
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
}
.jw-signup input[type="email"]::-webkit-input-placeholder { color: var(--sage); }
.jw-signup input[type="email"]::placeholder { color: var(--sage); }
.jw-signup input[type="email"]:focus { border-color: var(--dusty-gold); }

.jw-footer__bottom {
  margin-top: 80px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline-on-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--sage);
}
.jw-footer__bottom a { color: var(--sage); }
.jw-footer__bottom a:hover { color: var(--dusty-gold); }
.jw-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */

.xb-backtotop .scroll {
  background: var(--parchment);
  border: 1px solid var(--mist);
  color: var(--olive);
}
.xb-backtotop .scroll:hover { background: var(--dusty-gold); color: var(--ink); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

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