/* ==========================================================================
   The Gift Horse, Holmfirth
   Brand gathered from their own pavement A-board (IG, 24 June 2026):
   a Victorian signwriter's board. Near-black charcoal, cream signwritten
   letters, a Didone wordmark, script flourishes, bold condensed categories.
   The board IS the signature system. Every section is a board.
   Colours sampled from their own photograph, not invented.
   ========================================================================== */

:root {
  /* sampled from the real A-board */
  --board: #17181c;
  --board-2: #202127;
  --board-3: #2b2c33;
  /* signwriter's cream */
  --cream: #f4f1ea;
  --cream-dim: #cbc7bd;
  /* gold, sampled from the gold star in their own photo */
  --gold: #c8993f;
  --gold-lt: #e3bd6b;
  /* warm paper for light sections */
  --paper: #f7f4ed;
  --paper-2: #efeade;
  --ink: #17181c;
  --ink-2: #4a4a52;

  --rule: rgba(244, 241, 234, 0.28);
  --rule-ink: rgba(23, 24, 28, 0.2);

  --shadow-board: 0 18px 50px rgba(0, 0, 0, 0.38);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-script: "Pinyon Script", "Playfair Display", cursive;
  --f-label: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - (var(--gutter) * 2), 760px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--board);
  padding: 0.75rem 1.25rem; font-family: var(--f-label);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

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

/* --------------------------------------------------------------------------
   Signature primitive: THE BOARD.
   Lifted from their real pavement sign: dark panel, inset double rule,
   cream signwritten type. Everything on this site sits on one of these.
   -------------------------------------------------------------------------- */
.board {
  background:
    radial-gradient(120% 90% at 50% 0%, var(--board-3) 0%, var(--board-2) 45%, var(--board) 100%);
  color: var(--cream);
  position: relative;
  isolation: isolate;
}
/* the signwriter's inset double keyline */
.board--framed::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px rgba(244, 241, 234, 0.14);
  pointer-events: none;
  z-index: 2;
}
/* faint chalk-dust grain so the dark panel is not a flat digital fill */
.board::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 34px 34px, 19px 19px;
  background-position: 0 0, 11px 7px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.board > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Signwriter's flourish rule. Their board separates every item with one.
   -------------------------------------------------------------------------- */
.flourish {
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem;
  color: var(--gold);
}
.flourish::before, .flourish::after {
  content: ""; height: 1px; flex: 1 1 auto;
  background: linear-gradient(90deg, transparent, currentColor 35%, currentColor 65%, transparent);
  opacity: 0.55;
}
.flourish__mark { font-size: 0.8rem; letter-spacing: 0.4em; line-height: 1; }
.flourish--tight { max-width: 240px; margin-inline: auto; }
.flourish--ink { color: var(--gold); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 1rem;
}
.script {
  font-family: var(--f-script);
  font-weight: 400;
  color: var(--gold-lt);
  text-transform: none;
  letter-spacing: 0;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.15rem; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--ink-2); }
.board .lede { color: var(--cream-dim); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* --------------------------------------------------------------------------
   The wordmark. Set to match their real board: a high-contrast Didone,
   cream on charcoal, with "The" small and raised, as the sign has it.
   -------------------------------------------------------------------------- */
.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--cream);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.wordmark__the {
  font-size: 0.42em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: -0.12em;
  color: var(--cream);
}
.wordmark__name { font-size: 1em; white-space: nowrap; }
.wordmark__place {
  font-family: var(--f-label);
  font-weight: 400;
  /* never let the em-scaled place line fall below a readable size */
  font-size: max(0.62rem, 0.13em);
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.7em;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--board);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 40;
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}
.site-header .wordmark { font-size: 1.75rem; align-items: flex-start; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--cream);
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}
.nav__list {
  display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.1rem);
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  font-family: var(--f-label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--cream);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold-lt); }

.nav__cta {
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--board);
  background: var(--gold);
  text-decoration: none;
  padding: 0.6rem 1.05rem;
  white-space: nowrap;
  transition: background 0.25s ease;
}
.nav__cta:hover { background: var(--gold-lt); }

/* --------------------------------------------------------------------------
   Anniversary ribbon. Live, dated, real: their own 40th, 17 to 19 July 2026.
   -------------------------------------------------------------------------- */
.ribbon {
  background: var(--gold);
  color: var(--board);
  text-align: center;
  padding: 0.6rem var(--gutter);
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}
.ribbon strong { font-weight: 600; }
.ribbon .script {
  color: var(--board);
  font-size: 1.5em;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: -0.12em;
  margin: 0 0.2em;
}

/* --------------------------------------------------------------------------
   HERO: their real A-board photographed, beside the board set in type.
   Asymmetric on purpose. No centred-hero-over-gradient.
   -------------------------------------------------------------------------- */
.hero { background: var(--board); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero__copy .wordmark {
  font-size: clamp(3rem, 7vw, 5.4rem);
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.hero__est {
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 1.5rem;
}
.hero__lede { color: var(--cream-dim); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 46ch; }
.hero__lede strong { color: var(--cream); font-weight: 700; }

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 35%;
  filter: saturate(1.02) contrast(1.03);
}
.hero__figure::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(244, 241, 234, 0.3);
  pointer-events: none;
}
.hero__caption {
  font-family: var(--f-label);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  margin-top: 0.9rem;
  opacity: 0.75;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.btn {
  display: inline-block;
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--gold { background: var(--gold); color: var(--board); }
.btn--gold:hover { background: var(--gold-lt); }
.btn--ghost { border: 1px solid var(--rule); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn--ink { background: var(--board); color: var(--cream); }
.btn--ink:hover { background: var(--board-3); }

/* --------------------------------------------------------------------------
   SIGNATURE SECTION: THE A-BOARD.
   Their real sign, rebuilt in type. This is lifted straight off the
   pavement outside 86-88 Huddersfield Road. It could not sit on any
   other shop's site.
   -------------------------------------------------------------------------- */
.aboard { padding: clamp(3rem, 7vw, 5rem) 0; }
.aboard__panel {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-board);
  text-align: center;
}
.aboard__head { margin-bottom: 1.5rem; }
.aboard__head .wordmark { font-size: clamp(2rem, 4.5vw, 2.9rem); }
.aboard__list { list-style: none; margin: 0; padding: 0; }
.aboard__item + .aboard__item { margin-top: 0.35rem; }
.aboard__term {
  font-family: var(--f-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  color: var(--cream);
  line-height: 1.25;
}
.aboard__item:nth-child(even) .aboard__term { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.02em; text-transform: none; }
.aboard__rule { margin: 0.45rem auto; max-width: 180px; }
.aboard__foot {
  margin-top: 1.75rem;
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--cream-dim);
}
.aboard__note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-2);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   SIGNATURE SECTION: FORTY. Oversized numeral, editorial.
   -------------------------------------------------------------------------- */
.forty { background: var(--paper-2); }
.forty__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.forty__num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(7rem, 20vw, 16rem);
  line-height: 0.78;
  color: var(--board);
  letter-spacing: -0.04em;
  position: relative;
}
.forty__num span { color: var(--gold); }
.forty__body h2 { margin-bottom: 1rem; }
.forty__body .script { color: var(--gold); font-size: 1.6em; line-height: 1; display: block; margin-bottom: 0.2rem; }

/* --------------------------------------------------------------------------
   Feature rows: alternating, asymmetric. Not a uniform 3-card grid.
   -------------------------------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 7vw, 5rem); }
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature__media::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(255,255,255,0.35); pointer-events: none;
}
.feature__body h2 { margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Brand roll: a signwritten marquee of what they actually stock.
   -------------------------------------------------------------------------- */
.roll { background: var(--board); padding: 0; overflow: hidden; border-block: 1px solid var(--rule); }
.roll__track {
  display: flex; gap: 3.5rem; align-items: center;
  padding: 1.4rem 0;
  width: max-content;
}
.js .roll__track { animation: roll 38s linear infinite; }
.roll:hover .roll__track, .roll:focus-within .roll__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .js .roll__track { animation: none; }
  .roll { overflow-x: auto; }
}
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.roll__item {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--cream);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3.5rem;
}
.roll__item::after { content: "\2726"; color: var(--gold); font-size: 0.6em; }

/* --------------------------------------------------------------------------
   Detail cards (rooms, visit facts). Boards, not default rounded cards.
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  padding: 2rem 1.6rem;
  border: 1px solid var(--rule-ink);
  background: #fff;
  position: relative;
}
.card::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule-ink); pointer-events: none; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--f-display); font-weight: 900; font-size: 2.4rem;
  color: var(--gold); line-height: 1; display: block; margin-bottom: 0.6rem;
}

/* hours table, set like the board */
.hours { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; }
.hours caption {
  text-align: left;
  font-family: var(--f-label);
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem;
  color: var(--gold); padding-bottom: 0.9rem;
}
.hours th, .hours td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.hours th { font-family: var(--f-label); font-weight: 400; letter-spacing: 0.06em; color: var(--cream); }
.hours td { color: var(--cream-dim); text-align: right; font-variant-numeric: tabular-nums; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.contact-list a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact-list a:hover { color: var(--gold-lt); }

/* --------------------------------------------------------------------------
   Reveal on scroll (IntersectionObserver, never whileInView-style)
   -------------------------------------------------------------------------- */
/* Content is hidden ONLY once JS has armed the reveal and proved it can
   un-hide it. If the observer never arms, nothing is ever hidden. A section
   must never be able to get stuck invisible. */
.js.reveals-armed .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js.reveals-armed .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js.reveals-armed .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Footer + demo ribbon
   -------------------------------------------------------------------------- */
.site-footer { background: var(--board); color: var(--cream-dim); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.site-footer h3 {
  font-family: var(--f-label); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.72rem; color: var(--gold); margin-bottom: 1rem;
}
.site-footer .wordmark { font-size: 1.9rem; align-items: flex-start; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--cream-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold-lt); }
.site-footer__base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem;
}

.demo-ribbon {
  background: var(--board-3);
  color: var(--cream-dim);
  text-align: center;
  font-size: 0.78rem;
  padding: 0.85rem var(--gutter);
  line-height: 1.5;
}
.demo-ribbon strong { color: var(--cream); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; max-width: 460px; }
  .feature, .feature--flip .feature__media { grid-template-columns: 1fr; order: 0; }
  .feature__media { max-width: 460px; }
  .forty__grid { grid-template-columns: 1fr; text-align: left; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__list {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--board-2);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav__list.is-open { display: flex; }
  .nav__list li { width: 100%; border-bottom: 1px solid var(--rule); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__link { display: block; padding: 0.9rem 0; font-size: 0.9rem; }
  .nav__cta { display: inline-block; margin-top: 0.9rem; }
  .site-header__bar { position: relative; }
  .no-js .nav__list { display: flex; flex-direction: row; flex-wrap: wrap; position: static; background: none; border: 0; padding: 0; gap: 1rem; }
  .no-js .nav__toggle { display: none; }
}
