/* Packhorse Centre
   Charcoal, gold and white come straight from the logo. The interlocking squares are the one decorative shape,
   and small tracked capitals echo the PACKHORSE wordmark. */
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #212121;
  --coal: #161616;
  --gold: #d3af75;
  --gold-soft: #e6cfa5;
  --gold-deep: #7d5f26;
  --paper: #fbf9f4;
  --stone: #f2ede3;
  --line: #e0d7c6;
  --slate: #5b564c;
  --green: #7fd6a4;
  --display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--gold-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.06; margin: 0 0 0.5em; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.45rem; margin-top: 1.5em; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; margin-bottom: 1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.small { font-size: 0.94rem; color: var(--slate); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
/* Small tracked capitals, as in the wordmark */
.label, .band__eyebrow, .facts__k, .item__when, .shop__meta, .crumb, .nav a, .btn, .finder button, .more, .menu-btn, .chips a, .chips button, .site-footer h2, .facts-list dt, .topline, .form label, .market__when span {
  font-family: var(--body); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 500;
}

/* Emblem */
.emblem { display: block; fill: none; stroke: var(--gold); stroke-width: 2.4; pointer-events: none; }

/* Header */
.notice-bar { margin: 0; padding: 9px var(--gutter); background: var(--gold); color: var(--ink); text-align: center; font-weight: 500; }
.site-header { background: var(--ink); color: #fff; position: relative; z-index: 10; }
.site-header a { color: #fff; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 9px; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.topline__links { margin: 0; display: flex; gap: 22px; }
.topline__links a { text-decoration: none; color: var(--gold-soft); }
.topline__links a:hover { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 9px; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #c9897f; }
.status.is-open .status__dot { background: var(--green); box-shadow: 0 0 0 4px rgb(127 214 164 / 0.22); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { width: 176px; height: auto; }
.nav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; justify-content: flex-end; }
.nav a { display: block; padding: 12px 12px; text-decoration: none; border-bottom: 1px solid transparent; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--gold); border-bottom-color: var(--gold); }
.menu-btn { display: none; color: var(--ink); background: var(--gold); border: 0; border-radius: var(--r); padding: 12px 18px; cursor: pointer; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--coal); padding: 4px var(--gutter) 22px; border-top: 1px solid rgb(255 255 255 / 0.12); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 16px 2px; border-bottom: 1px solid rgb(255 255 255 / 0.12); font-size: 0.9rem; }
  .brand img { width: 138px; }
  .topline__links a:not(:first-child) { display: none; }
}

/* Hero: the live opening status is the headline */
.hero { position: relative; background: var(--ink); color: #fff; overflow: clip; padding-bottom: 1px; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(44px, 8vw, 96px) clamp(96px, 12vw, 140px); }
/* Photo window, framed by two gold squares that interlock with it, as in the logo */
.hero__photo { position: relative; margin: 0; padding: 7%; }
.hero__photo::before, .hero__photo::after { content: ""; position: absolute; width: 64%; height: 64%; border: 2px solid var(--gold); pointer-events: none; }
.hero__photo::before { top: 0; right: 0; }
.hero__photo::after { left: 0; bottom: 0; }
.hero__frame { position: relative; z-index: 1; aspect-ratio: 1; overflow: hidden; background: var(--coal); box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); }
.hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__frame img.is-on { opacity: 1; }
.hero__caption, .hero__pause { position: absolute; z-index: 2; bottom: calc(7% + 14px); font-size: 0.82rem; padding: 7px 13px; border-radius: var(--r); letter-spacing: 0.06em; }
.hero__caption { left: calc(7% + 14px); background: var(--ink); color: var(--gold); max-width: calc(86% - 120px); font-weight: 500; }
.hero__pause { right: calc(7% + 14px); font-family: inherit; color: #fff; background: rgb(22 22 22 / 0.72); border: 1px solid rgb(211 175 117 / 0.55); cursor: pointer; }
.hero__pause:hover { background: var(--ink); color: var(--gold); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { width: min(100%, 440px); justify-self: center; }
}
.hero__eyebrow { color: var(--gold); margin-bottom: 18px; }
.hero__title { font-size: clamp(3.4rem, 11vw, 8rem); font-weight: 500; line-height: 0.92; margin: 0 0 0.3em; max-width: 9em; }
.hero__title span { display: block; }
.hero__title [data-ph-hero-a] { padding-bottom: 0.22em; }
.hero__title [data-ph-hero-b] { font-style: italic; font-weight: 400; color: var(--gold); font-size: 0.6em; line-height: 1; }
.hero__lede { font-size: clamp(1.08rem, 2vw, 1.25rem); max-width: 33em; margin-bottom: 1.6em; color: #e9e4da; }
.finder { display: flex; max-width: 540px; background: #fff; border-radius: var(--r); padding: 5px; }
.finder input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: 12px 16px; color: var(--ink); }
.finder input:focus-visible { outline-offset: -2px; }
.finder button, .btn { color: var(--ink); background: var(--gold); border: 0; border-radius: var(--r); padding: 15px 24px; cursor: pointer; text-decoration: none; display: inline-block; font-weight: 600; }
.finder button:hover, .btn:hover { background: var(--ink); color: var(--gold); }
.finder button:hover { background: var(--coal); }
.btn--line { background: none; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.btn--line:hover { background: var(--gold); color: var(--ink); }

.facts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); color: var(--ink); margin-top: calc(clamp(96px, 12vw, 140px) * -0.55); border-top: 3px solid var(--gold); }
.facts li + li { border-left: 1px solid var(--line); }
.facts a { display: block; padding: 22px clamp(16px, 2.6vw, 30px) 24px; text-decoration: none; color: inherit; height: 100%; }
.facts a:hover .facts__s { text-decoration: underline; }
.facts__k, .facts__v, .facts__s { display: block; }
.facts__k { color: var(--slate); }
.facts__v { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.15; margin-block: 2px; }
.facts__s { color: var(--gold-deep); font-size: 0.95rem; }
.facts__v span { display: block; }
.facts__v--lines { font-size: clamp(1.2rem, 2.1vw, 1.55rem); line-height: 1.25; margin-block: 4px 6px; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .facts a { padding-block: 16px; }
}

/* Bands */
.band { padding-block: clamp(48px, 7vw, 92px); }
.band--stone { background: var(--stone); }
.band--dark { background: var(--ink); color: #f1ece2; position: relative; overflow: clip; }
.band--dark h2 { color: #fff; }
.band--dark a:not(.btn) { color: var(--gold); }
.band__eyebrow { color: var(--gold-deep); margin-bottom: 10px; }
.band--dark .band__eyebrow { color: var(--gold); }
.band__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.band__head h2 { margin: 0; }
.more { color: var(--gold-deep); font-weight: 600; }
.section { padding-block: clamp(32px, 5vw, 60px) clamp(52px, 7vw, 92px); }
.section--narrow { max-width: calc(760px + var(--gutter) * 2); }

/* Shop tiles: the logo does the talking */
.shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 16px; }
.shop[hidden] { display: none; }
.shop__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.shop__logo { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); margin-bottom: 11px; overflow: hidden; transition: border-color 0.15s; }
.shop__logo img { width: 100%; height: 100%; object-fit: cover; }
.shop__link:hover .shop__logo { border-color: var(--gold-deep); }
.shop__link:hover .shop__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.shop__logo--none { background: var(--ink); color: var(--gold); padding: 12%; outline: 1px solid rgb(211 175 117 / 0.5); outline-offset: -10px; }
.shop__wordmark { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.1; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.shop--big .shop__wordmark { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.shop__name { font-family: var(--display); font-weight: 600; font-size: 1.22rem; line-height: 1.15; }
.shop__meta { color: var(--slate); font-size: 0.7rem; margin-top: 4px; }
.shops--featured { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shop--big .shop__name { font-size: 1.5rem; }
@media (max-width: 860px) { .shops--featured { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 420px) { .shops { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips a, .chips button { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: none; color: var(--ink); text-decoration: none; cursor: pointer; }
.chips a span { color: var(--slate); }
.chips a:hover, .chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.band--dark .chips a { border-color: rgb(211 175 117 / 0.45); color: #fff; }
.band--dark .chips a:hover { border-color: var(--gold); color: var(--gold); }

.directory__tools input { width: 100%; max-width: 480px; font: inherit; padding: 14px 16px; border: 1px solid var(--slate); border-radius: var(--r); color: var(--ink); background: #fff; }
.directory__tools input:focus { border-color: var(--ink); outline: 2px solid var(--gold); outline-offset: 1px; }
.chips--filter { margin-top: 16px; }
.directory__count { color: var(--slate); margin: 22px 0 14px; min-height: 1.5em; }
.directory__empty, .empty { background: var(--stone); border-left: 3px solid var(--gold); padding: 20px 24px; max-width: 40em; }

/* Packhorse Kitchen and market bands */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 6vw, 80px); align-items: center; position: relative; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split__text p { max-width: 34em; }
.split__img img { width: 100%; max-width: 380px; margin-inline: auto; }
.kitchen__hours { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--gold); margin-bottom: 0.8em; }
.market { display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 5vw, 56px); align-items: center; }
.market__when { border: 1px solid var(--gold-deep); padding: 18px 26px 20px; text-align: center; min-width: 9.5em; }
.market__when span { display: block; color: var(--slate); }
.market__when strong { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(3.2rem, 7vw, 4.6rem); line-height: 1; }
.market__when em { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--gold-deep); }
.market__dates { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 18px; color: var(--slate); }
@media (max-width: 640px) { .market { grid-template-columns: 1fr; } .market__when { justify-self: start; } }

/* News, events and offers */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.items + h2, .empty + h2 { margin-top: 1.6em; }
.item__link { display: block; text-decoration: none; color: var(--ink); }
.item__img { display: grid; place-items: center; aspect-ratio: 800 / 520; overflow: hidden; background: var(--ink); margin-bottom: 14px; }
.item__img img { width: 100%; height: 100%; object-fit: cover; }
.item__img .emblem { width: 34%; }
.item__when { display: block; color: var(--gold-deep); margin-bottom: 4px; }
.item__title { display: block; font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.12; }
.item__link:hover .item__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* Opening times */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours__row dd { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hours__row.is-today { font-weight: 600; }
.hours__row.is-today dt::after { content: " (today)"; font-weight: 400; color: var(--slate); }
.hours__date { color: var(--slate); font-weight: 400; margin-left: 6px; }
.hours + .small { margin-top: 12px; }
.callout { background: var(--stone); border-left: 3px solid var(--gold); padding: 22px 24px; margin-top: 28px; }
.callout h2, .callout h3 { margin-top: 0; font-size: 1.5rem; }
.callout p:last-child { margin-bottom: 0; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; border-top: 1px solid var(--line); }
.quick a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.quick strong { display: block; font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.quick span { color: var(--slate); font-size: 0.95rem; }
.quick a:hover strong { color: var(--gold-deep); }
@media (max-width: 480px) { .quick { grid-template-columns: 1fr; } }
.map { overflow: hidden; margin-bottom: 18px; background: var(--stone); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.tel { font-family: var(--display); font-weight: 600; font-size: 1.9rem; text-decoration: none; color: var(--ink); }
.units { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.units th, .units td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.units thead th { color: var(--slate); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; }
.units tbody th { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }

/* Inner page title band */
.pagehead { background: var(--ink); color: #fff; overflow: clip; }
.pagehead .wrap { position: relative; padding-block: clamp(34px, 6vw, 68px) clamp(36px, 6vw, 68px); }
.pagehead__emblem { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); width: 230px; opacity: 0.45; stroke-width: 1.4; }
.pagehead h1, .pagehead p { position: relative; max-width: 17em; }
.pagehead h1 { margin: 0; font-weight: 500; }
.pagehead__intro { font-size: 1.12rem; margin: 14px 0 0; max-width: 36em; color: #e9e4da; }
.pagehead .crumb { margin: 0 0 12px; }
.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { color: #fff; }
@media (max-width: 700px) { .pagehead__emblem { right: -70px; opacity: 0.22; } }

/* Shop page */
.shopdetail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.shopdetail__photo { margin-bottom: 24px; }
.shopdetail__photo img { width: 100%; }
.shopdetail__side { border: 1px solid var(--line); background: #fff; padding: 22px; }
.shopdetail__logo { margin: -22px -22px 6px; border-bottom: 1px solid var(--line); }
.shopdetail__logo img { width: 100%; }
.facts-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { color: var(--slate); }
.facts-list dd { font-weight: 500; overflow-wrap: anywhere; }
.shopdetail__side .btn { margin-top: 18px; text-align: center; display: block; }
.socials--dark { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
@media (max-width: 860px) { .shopdetail { grid-template-columns: 1fr; } .shopdetail__side { order: -1; max-width: 420px; } }

/* Long-form text */
.prose { max-width: 66ch; }
.prose--wide { max-width: 72ch; margin-block: 0 28px; }
.visit + .prose--wide { margin-top: 44px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.4em; font-size: 2rem; }
.prose ul, .prose ol { margin: 0 0 1em 1.2em; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--gold-deep); }
.prose img { margin-block: 1.2em; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.lead-img { margin-bottom: 28px; background: var(--ink); }
.lead-img img { width: 100%; max-height: 520px; object-fit: contain; }

/* Simple link lists (vacancies, child pages) */
.jobs { border-top: 1px solid var(--line); margin-top: 8px; }
.jobs a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.jobs a:hover .jobs__title { color: var(--gold-deep); }
.jobs__title { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.jobs__meta { color: var(--slate); }

/* Form */
.form p { margin-bottom: 18px; }
.form label { display: block; margin-bottom: 7px; color: var(--slate); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1px solid var(--slate); border-radius: var(--r); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: 2px solid var(--gold); outline-offset: 1px; }
.form__check label { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; color: var(--ink); display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.form__check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ink); }
.form__hp { position: absolute; left: -9999px; }
.form-note { padding: 14px 18px; border-left: 3px solid; font-weight: 500; }
.form-note--ok { background: #e6f4ec; border-color: #2c8a59; color: #14472d; }
.form-note--bad { background: #fbe9e7; border-color: #b3382c; color: #7a211a; }

/* Footer */
.site-footer { background: var(--coal); color: #d9d3c7; padding-top: clamp(44px, 6vw, 72px); font-size: 0.98rem; }
.site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.35); }
.site-footer a:hover { color: var(--gold); }
.site-footer h2 { color: var(--gold); margin-bottom: 16px; }
.site-footer__grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 0.7fr; gap: 36px; }
.site-footer li { margin-bottom: 8px; }
.site-footer .hours__row { border-color: rgb(255 255 255 / 0.13); padding: 7px 0; }
.site-footer .hours { margin-bottom: 14px; }
.site-footer__base { display: flex; align-items: center; gap: 14px; margin-top: 48px; padding-block: 20px; border-top: 1px solid rgb(255 255 255 / 0.13); font-size: 0.9rem; }
.site-footer__base .emblem { width: 26px; flex: none; stroke-width: 5; }
.site-footer__base p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shop__logo { transition: none; }
  .hero__frame img { transition: none; }
}
