/*
Theme Name: Harlow Falls Theme
Theme URI: https://katehollowayauthor.com
Author: Kate Holloway Publishing
Description: Official WordPress theme for the Harlow Falls website and the Vera Callaghan Mystery Series.
Version: 0.6.1
License: GPL-2.0-or-later
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: harlow-falls
*/

:root {
  --hf-parchment: #f4eddf;
  --hf-cream: #fffaf0;
  --hf-pine: #173b32;
  --hf-harbor: #244c5a;
  --hf-gold: #c89a3d;
  --hf-copper: #9f5f3f;
  --hf-granite: #5f625f;
  --hf-ink: #22241f;
  --hf-muted: #6d706a;
  --hf-border: rgba(23,59,50,.18);
  --hf-shadow: 0 16px 40px rgba(23,59,50,.12);
  --hf-radius: 18px;
  --hf-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--hf-ink);
  background: var(--hf-parchment);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
}
a { color: var(--hf-harbor); }
a:hover { color: var(--hf-copper); }
img { max-width: 100%; height: auto; }

.hf-wrap { width: min(calc(100% - 32px), var(--hf-max)); margin-inline: auto; }
.hf-section { padding: 72px 0; }
.hf-section--cream { background: var(--hf-cream); }
.hf-kicker { color: var(--hf-copper); font: 700 .82rem/1.2 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.hf-title { margin: .35rem 0 1rem; color: var(--hf-pine); font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .98; }
.hf-subtitle { max-width: 760px; color: var(--hf-muted); font-size: 1.2rem; }

.hf-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,250,240,.96); border-bottom: 1px solid var(--hf-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 5px 18px rgba(23,59,50,.06); }
.home .hf-site-header { position: relative; top: auto; }
.hf-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hf-brand { text-decoration: none; color: var(--hf-pine); }
.hf-brand strong { display: block; font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; }
.hf-brand span { display: block; color: var(--hf-copper); font: 600 .74rem/1.4 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.hf-nav ul { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.hf-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--hf-pine); font: 700 .92rem/1 Arial, sans-serif; text-decoration: none; transition: color .18s ease; }
.hf-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 7px; height: 2px; background: var(--hf-gold); transition: right .18s ease; }
.hf-nav a:hover, .hf-nav a:focus-visible { color: var(--hf-copper); }
.hf-nav a:hover::after, .hf-nav a:focus-visible::after { right: 0; }
.hf-menu-toggle { display: none; min-height: 44px; border: 1px solid var(--hf-border); background: var(--hf-cream); border-radius: 10px; padding: 10px 14px; color: var(--hf-pine); font-weight: 700; cursor: pointer; }

.hf-hero { min-height: 68vh; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, rgba(23,59,50,.86), rgba(36,76,90,.82)), radial-gradient(circle at 50% 20%, #d3a34d 0, #244c5a 52%, #173b32 100%); color: white; }
.hf-hero .hf-title { color: white; max-width: 900px; margin-inline: auto; }
.hf-hero .hf-subtitle { color: rgba(255,255,255,.86); margin-inline: auto; }
.hf-motto { margin-top: 26px; color: #f1d69b; font-style: italic; font-size: 1.15rem; }
.hf-actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.hf-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--hf-gold); color: #1f2a26; font: 800 .92rem/1 Arial, sans-serif; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.15); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.hf-button:hover { transform: translateY(-2px); color: #1f2a26; background: #d9ae59; box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.hf-button--secondary { background: rgba(255,250,240,.92); color: var(--hf-pine); border-color: rgba(255,255,255,.96); text-shadow: none; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.hf-button--secondary:hover, .hf-button--secondary:focus-visible { color: var(--hf-pine); background: #fffaf0; border-color: #fffaf0; }

.hf-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 34px; }
.hf-card { background: var(--hf-cream); border: 1px solid var(--hf-border); border-radius: var(--hf-radius); padding: 26px; box-shadow: var(--hf-shadow); }
.hf-card h3 { margin: 0 0 10px; color: var(--hf-pine); font-size: 1.45rem; }
.hf-card p { margin: 0; color: var(--hf-muted); }
.hf-swatch { height: 110px; border-radius: 14px; margin-bottom: 14px; border: 1px solid rgba(0,0,0,.08); }
.hf-swatch-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.hf-swatch-item { background: var(--hf-cream); padding: 12px; border: 1px solid var(--hf-border); border-radius: 14px; }
.hf-swatch-item small { display: block; margin-top: 8px; font-family: Arial, sans-serif; color: var(--hf-muted); }

.hf-footer { background: var(--hf-pine); color: rgba(255,255,255,.82); padding: 46px 0; text-align: center; }
.hf-footer strong { color: white; }
.hf-footer .hf-signoff { color: #f1d69b; font-style: italic; }

@media (max-width: 860px) {
  .hf-grid { grid-template-columns: 1fr; }
  .hf-swatch-list { grid-template-columns: repeat(2,1fr); }
  .hf-menu-toggle { display: inline-flex; }
  .hf-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; background: var(--hf-cream); border: 1px solid var(--hf-border); border-radius: 16px; padding: 16px; box-shadow: var(--hf-shadow); }
  .hf-nav.is-open { display: block; }
  .hf-nav ul { flex-direction: column; align-items: flex-start; }
}


/* Module 002 — Arrival */
.hf-site-header { background: rgba(255,250,240,.93); }
.hf-brand strong { text-transform: none; letter-spacing: .035em; font-size: 1.45rem; }
.hf-brand span { letter-spacing: .095em; }

.hf-arrival {
  position: relative;
  min-height: min(820px, calc(100vh - 82px));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: white;
  isolation: isolate;
}
.hf-arrival-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--hf-pine);
}
.hf-arrival-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  animation: hf-arrival-settle 1.6s ease-out both;
}
.hf-arrival-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16,37,31,.10) 0%, rgba(16,37,31,.05) 36%, rgba(16,37,31,.22) 66%, rgba(16,37,31,.52) 100%),
    linear-gradient(0deg, rgba(12,29,25,.88) 0%, rgba(12,29,25,.38) 42%, rgba(12,29,25,.05) 75%);
}
.hf-arrival-marker {
  position: absolute;
  z-index: 1;
  top: clamp(42px, 8vh, 72px);
  left: 50%;
  width: calc(100% - 32px);
  margin: 0;
  transform: translateX(-50%);
  color: #f4d58c;
  font: 800 1.55rem/1.2 Arial, sans-serif;
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0,0,0,.62);
}
.hf-arrival-content {
  width: min(calc(100% - 32px), var(--hf-max));
  padding-top: 270px;
  padding-bottom: 100px;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
  animation: hf-arrival-copy 1s .2s ease-out both;
}
.hf-arrival-title {
  margin: .45rem 0 1rem;
  max-width: 860px;
  color: white;
  font-size: clamp(2.55rem, 5.8vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.025em;
}
.hf-arrival-copy { max-width: 720px; margin: 0; color: rgba(255,255,255,.93); font-size: clamp(1.05rem, 1.65vw, 1.28rem); }
.hf-arrival .hf-motto { margin-top: 18px; font-size: 1.08rem; }
.hf-arrival .hf-actions { justify-content: flex-start; margin-top: 25px; }
.hf-arrival .hf-button { min-height: 54px; padding-inline: 27px; }
.hf-intro-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr); gap: clamp(30px,7vw,110px); align-items: start; }
.hf-intro .hf-title { max-width: 650px; }
.hf-lede { margin-top: 9px; color: var(--hf-pine); font-size: 1.28rem; }
.hf-card-label { color: var(--hf-copper)!important; font: 700 .76rem/1.2 Arial,sans-serif; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 12px!important; }
.hf-card a { display: inline-block; margin-top: 18px; color: var(--hf-copper); font: 800 .82rem/1 Arial,sans-serif; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.hf-coming { text-align: center; }
.hf-coming .hf-subtitle { margin-inline: auto; }
.hf-visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

@keyframes hf-arrival-settle { from { opacity: .25; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }
@keyframes hf-arrival-copy { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hf-arrival-media img, .hf-arrival-content { animation: none; }
}

@media (max-width: 860px) {
  .hf-arrival { min-height: 760px; }
  .hf-arrival-marker { top: 48px; font-size: 1.3rem; letter-spacing: .14em; }
  .hf-arrival-media img { object-position: 44% center; }
  .hf-arrival-shade { background: linear-gradient(0deg, rgba(12,29,25,.93) 0%, rgba(12,29,25,.56) 52%, rgba(12,29,25,.06) 100%); }
  .hf-arrival-content { padding-top: 360px; padding-bottom: 95px; }
  .hf-arrival-title { max-width: 720px; }
  .hf-intro-grid { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .hf-header-inner { min-height: 72px; }
  .hf-brand strong { font-size: 1.22rem; }
  .hf-brand span { font-size: .62rem; }
  .hf-nav { top: 68px; }
  .hf-arrival { min-height: 760px; }
  .hf-arrival-media { background: #173b32; }
  .hf-arrival-media img { height: 49%; object-fit: cover; object-position: center top; }
  .hf-arrival-shade { background: linear-gradient(0deg, rgba(12,29,25,.98) 0%, rgba(12,29,25,.87) 52%, rgba(12,29,25,.08) 78%); }
  .hf-arrival-content { padding-top: 390px; padding-bottom: 60px; }
  .hf-arrival-title { font-size: clamp(2.25rem, 12vw, 3.45rem); }
  .hf-arrival-copy { font-size: 1rem; }
  .hf-arrival .hf-actions { display: grid; justify-content: stretch; }
  .hf-arrival .hf-button { width: 100%; }
}


/* Module 002 final polish */
:where(a, button):focus-visible {
  outline: 3px solid var(--hf-gold);
  outline-offset: 3px;
}
section[id] { scroll-margin-top: 96px; }
body.hf-menu-open { overflow: hidden; }

@media (max-width: 860px) {
  .hf-nav { max-height: calc(100vh - 96px); overflow-y: auto; }
  .hf-nav a { width: 100%; min-height: 46px; }
  .hf-nav a::after { bottom: 3px; }
}


/* Module 002 — Release Candidate 3 */
@media (max-width: 560px) {
  .hf-header-inner {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
    align-items: flex-start;
  }
  .hf-brand {
    min-width: 0;
    flex: 1 1 auto;
    padding-top: 1px;
  }
  .hf-brand strong {
    font-size: clamp(1.08rem, 6.2vw, 1.32rem);
    line-height: 1.05;
    white-space: nowrap;
  }
  .hf-brand span {
    max-width: 180px;
    margin-top: 4px;
    font-size: .59rem;
    line-height: 1.25;
    letter-spacing: .09em;
    white-space: normal;
  }
  .hf-menu-toggle {
    flex: 0 0 auto;
    margin-top: 1px;
    padding-inline: 13px;
  }
  .hf-nav { top: 70px; }

  .hf-arrival {
    min-height: 700px;
    align-items: flex-end;
  }
  .hf-arrival-marker {
    top: 30px;
    font-size: clamp(.88rem, 4vw, 1.05rem);
    letter-spacing: .12em;
  }
  .hf-arrival-media img {
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
  }
  .hf-arrival-shade {
    background:
      linear-gradient(90deg, rgba(12,29,25,.46) 0%, rgba(12,29,25,.20) 70%, rgba(12,29,25,.12) 100%),
      linear-gradient(0deg, rgba(12,29,25,.96) 0%, rgba(12,29,25,.72) 54%, rgba(12,29,25,.18) 100%);
  }
  .hf-arrival-content {
    padding-top: 180px;
    padding-bottom: 48px;
  }
  .hf-arrival-title {
    max-width: 12ch;
    font-size: clamp(2.15rem, 11.2vw, 3rem);
    line-height: .94;
  }
  .hf-arrival-copy {
    max-width: 31ch;
    font-size: .98rem;
    line-height: 1.55;
  }
  .hf-arrival .hf-motto { font-size: 1rem; }
  .hf-arrival .hf-actions { gap: 12px; }
}

@media (max-width: 350px) {
  .hf-wrap { width: min(calc(100% - 24px), var(--hf-max)); }
  .hf-brand strong { font-size: 1.02rem; }
  .hf-brand span { max-width: 155px; font-size: .55rem; }
  .hf-menu-toggle { min-height: 42px; padding: 8px 11px; }
  .hf-arrival-title { font-size: 2.05rem; }
}

/* Module 003 — Walk the Town */
.hf-section-heading { max-width: 780px; }
.hf-town-hub { background: var(--hf-parchment); }
.hf-destination-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 42px; }
.hf-destination { position: relative; min-height: 500px; display: flex; flex-direction: column; overflow: hidden; padding: 32px; border: 1px solid var(--hf-border); border-radius: 22px; background: var(--hf-cream); box-shadow: var(--hf-shadow); }
.hf-destination::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; background: var(--hf-gold); }
.hf-destination--harbor::before { background: var(--hf-harbor); }
.hf-destination--bridge::before { background: var(--hf-copper); }
.hf-destination-number { position: absolute; top: 18px; right: 25px; color: rgba(23,59,50,.10); font-size: 4.6rem; font-weight: 700; line-height: 1; }
.hf-destination h3 { position: relative; margin: 8px 0 14px; color: var(--hf-pine); font-size: clamp(1.8rem,3vw,2.45rem); line-height: 1.02; }
.hf-destination > p:not(.hf-card-label) { position: relative; margin: 0; color: var(--hf-muted); font-size: 1.05rem; }
.hf-destination blockquote { margin: auto 0 22px; padding-top: 32px; color: var(--hf-pine); font-style: italic; font-size: 1.02rem; border: 0; }
.hf-text-link, .hf-coming-label { position: relative; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: var(--hf-copper); font: 800 .82rem/1 Arial,sans-serif; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.hf-text-link:hover { color: var(--hf-pine); }
.hf-coming-label { color: var(--hf-muted); }
.hf-preview-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: clamp(40px,8vw,120px); align-items: center; }
.hf-mystery-preview .hf-title { max-width: 680px; }

/* Destination page — Vera's Library */
.hf-place-hero { position: relative; min-height: 540px; display: flex; align-items: flex-end; overflow: hidden; color: white; background: linear-gradient(125deg,#173b32,#244c5a); }
.hf-place-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 72% 28%,rgba(200,154,61,.32),transparent 38%), linear-gradient(0deg,rgba(8,26,21,.92),rgba(23,59,50,.28)); }
.hf-place-hero::after { content: '1911'; position: absolute; right: 5vw; bottom: -3rem; color: rgba(255,255,255,.07); font-size: clamp(8rem,22vw,20rem); font-weight: 700; line-height: 1; }
.hf-place-hero-inner { position: relative; z-index: 1; padding-top: 150px; padding-bottom: 70px; }
.hf-place-hero .hf-kicker { color: #f4d58c; }
.hf-place-title { max-width: 900px; margin: .4rem 0 .65rem; font-size: clamp(3.4rem,8vw,7rem); line-height: .9; letter-spacing: -.035em; }
.hf-place-deck { max-width: 660px; margin: 0 0 30px; color: rgba(255,255,255,.88); font-size: clamp(1.15rem,2vw,1.45rem); }
.hf-back-link { color: #f4d58c; font: 700 .84rem/1 Arial,sans-serif; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.hf-back-link:hover { color: white; }
.hf-library-intro { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr); gap: clamp(36px,8vw,120px); }
.hf-room-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 36px; }
.hf-room-card { min-height: 290px; padding: 28px; border: 1px solid var(--hf-border); border-radius: 20px; background: var(--hf-cream); }
.hf-room-index { color: var(--hf-copper); font: 700 .76rem/1 Arial,sans-serif; letter-spacing: .15em; }
.hf-room-card h3 { margin: 45px 0 12px; color: var(--hf-pine); font-size: 1.6rem; }
.hf-room-card p { color: var(--hf-muted); }
.hf-listen-inner { max-width: 900px; text-align: center; }
.hf-listen blockquote { margin: 16px auto 24px; color: var(--hf-pine); font-size: clamp(1.8rem,4vw,3.4rem); line-height: 1.1; font-style: italic; }
.hf-listen p:last-child { color: var(--hf-muted); }
.hf-next-stop { background: var(--hf-pine); color: white; }
.hf-next-stop-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hf-next-stop .hf-title { color: white; max-width: 750px; }
.hf-next-stop .hf-subtitle { color: rgba(255,255,255,.72); }

/* Inherited desktop arrival polish agreed before Module 003 */
@media (min-width: 861px) {
  .hf-arrival { min-height: clamp(620px,72vh,720px); }
  .hf-arrival-media img { object-position: 58% center; transform: scale(1.07); }
  .hf-arrival-content { padding-top: 170px; padding-bottom: 48px; }
  .hf-arrival-title { max-width: 800px; font-size: clamp(3.6rem,5.1vw,5rem); }
}

@media (max-width: 860px) {
  .hf-destination-grid, .hf-room-grid { grid-template-columns: 1fr; }
  .hf-destination { min-height: 390px; }
  .hf-preview-grid, .hf-library-intro { grid-template-columns: 1fr; gap: 16px; }
  .hf-next-stop-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .hf-section { padding: 56px 0; }
  .hf-destination { min-height: 0; padding: 28px 26px; }
  .hf-destination blockquote { margin-top: 34px; }
  .hf-place-hero { min-height: 480px; }
  .hf-place-hero-inner { padding-top: 130px; padding-bottom: 52px; }
  .hf-place-title { font-size: clamp(3rem,16vw,4.25rem); }
  .hf-room-card { min-height: 0; }
  .hf-room-card h3 { margin-top: 28px; }
}
