:root {
  --bg: #f3efe6;
  --bg-elevated: #faf8f3;
  --surface: #fffdf8;
  --ink: #141a17;
  --fg: #141a17;
  --muted: #5c635e;
  --subtle: #8a918c;
  --primary: #1c6b64;
  --primary-fg: #f3efe6;
  --border: #ddd6c8;
  --hero: #141a17;
  --hero-fg: #f3efe6;
  --danger: #8f2d2d;
  --font-sans: "Figtree", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", "Noto Serif SC", "Iowan Old Style", Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-xl: 24px;
  --shadow: 0 0 0 1px rgba(20, 26, 23, 0.06), 0 1px 2px -1px rgba(20, 26, 23, 0.06), 0 2px 4px 0 rgba(20, 26, 23, 0.04);
  --motion: 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
img { max-width: 100%; display: block; outline: 1px solid rgba(20, 26, 23, 0.1); outline-offset: -1px; }
a { color: inherit; text-decoration: none; }
button, [role="button"], summary { cursor: pointer; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; }
@media (min-width: 768px) { .wrap { width: min(72rem, calc(100% - 3rem)); } }

.site-header {
  position: sticky; top: 0; z-index: 40;
  transition: background-color 250ms cubic-bezier(0.22, 1, 0.36, 1), color 250ms cubic-bezier(0.22, 1, 0.36, 1);
  background: color-mix(in oklab, var(--bg) 95%, transparent);
  color: var(--fg);
  box-shadow: var(--shadow);
}
.site-header.is-overlay { background: transparent; color: var(--hero-fg); box-shadow: none; }
.site-header.is-overlay.is-scrolled,
.site-header:not(.is-overlay) { background: color-mix(in oklab, var(--bg) 95%, transparent); color: var(--fg); box-shadow: var(--shadow); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; min-height: 44px; font-family: var(--font-display); font-size: 1.125rem; }
.mark { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.brand-logo { width: auto; height: 1.75rem; max-width: 9rem; object-fit: contain; }
.site-header.is-overlay:not(.is-scrolled) .mark { color: var(--hero-fg); }
.nav.desktop { display: none; flex: 1; justify-content: center; gap: 1.5rem; }
.nav.desktop a { display: inline-flex; min-height: 44px; align-items: center; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.site-header.is-overlay:not(.is-scrolled) .nav.desktop a { color: color-mix(in oklab, var(--hero-fg) 80%, transparent); }
.nav.desktop a:hover { color: var(--fg); }
.site-header.is-overlay:not(.is-scrolled) .nav.desktop a:hover { color: var(--hero-fg); }
@media (min-width: 1024px) { .nav.desktop { display: flex; } .menu-mobile { display: none; } }
.tools { margin-left: auto; display: flex; align-items: center; gap: 0.15rem; }
.lang { display: inline-flex; min-height: 44px; align-items: center; padding: 0 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--subtle); }
.lang.is-on { color: var(--fg); }
.site-header.is-overlay:not(.is-scrolled) .lang { color: color-mix(in oklab, var(--hero-fg) 50%, transparent); }
.site-header.is-overlay:not(.is-scrolled) .lang.is-on { color: var(--hero-fg); }
.slash { color: var(--border); }
.translate-menu { position: relative; }
.translate-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 44px; padding: 0 0.5rem; font-size: 0.8125rem; font-weight: 500; color: var(--subtle);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.translate-menu summary::-webkit-details-marker { display: none; }
.site-header.is-overlay:not(.is-scrolled) .translate-menu summary { color: color-mix(in oklab, var(--hero-fg) 50%, transparent); }
.translate-label { display: none; text-shadow: inherit; }
@media (min-width: 480px) { .translate-label { display: inline; } }
.translate-panel {
  position: absolute; right: 0; top: 3.25rem; width: min(14rem, calc(100vw - 2rem));
  background: var(--bg); color: var(--fg); padding: 0.85rem; border-radius: var(--radius-md); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.125rem; z-index: 50;
}
.translate-item {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  min-height: 40px; display: flex; align-items: center; padding: 0 0.5rem;
  border-radius: var(--radius-sm); font-size: 0.9375rem; color: var(--muted);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.translate-item:hover { background: var(--bg-elevated); }
.translate-item.is-on { background: var(--bg-elevated); color: var(--fg); font-weight: 600; }
.menu-mobile summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.drawer {
  position: absolute; right: 1rem; top: 4.25rem; width: min(20rem, calc(100vw - 2rem));
  background: var(--bg); color: var(--fg); padding: 1.25rem; border-radius: var(--radius-md); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.drawer a { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.drawer-title { font-family: var(--font-display); margin: 0 0 0.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; border-radius: 999px; background: var(--bg-elevated); color: var(--muted); font-size: 0.875rem; }
.chip.is-on { background: var(--ink); color: var(--hero-fg); }

.hero { position: relative; min-height: 100dvh; margin-top: -4.5rem; background: var(--hero); color: var(--hero-fg); overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-wash {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--hero) 28%, transparent) 0%, color-mix(in oklab, var(--hero) 78%, transparent) 100%);
}
.hero-copy { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: 8rem 0 4rem; }
.kicker { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary); margin: 0; }
.hero .kicker { color: color-mix(in oklab, var(--hero-fg) 70%, transparent); }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.1; max-width: 46rem; margin: 1rem 0 0; }
.hero .lede { max-width: 36rem; margin: 1.25rem 0 0; font-size: 1.0625rem; color: color-mix(in oklab, var(--hero-fg) 80%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.25rem; border-radius: var(--radius-sm); border: 0;
  font-size: 0.875rem; font-weight: 500; background: var(--primary); color: var(--primary-fg);
  transition: opacity var(--motion);
}
.btn:hover { opacity: 0.9; }
.btn-ink { background: var(--ink); color: var(--hero-fg); }
.btn-hero { background: var(--hero-fg); color: var(--hero); }
.btn-hero-outline { background: transparent; color: var(--hero-fg); border: 1px solid color-mix(in oklab, var(--hero-fg) 40%, transparent); }
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-sm { min-height: 36px; padding: 0 0.75rem; }
.btn-danger { background: var(--danger); color: var(--hero-fg); }
.btn-full { width: 100%; }

.markets { border-bottom: 1px solid var(--border); background: var(--bg-elevated); overflow-x: auto; }
.markets-row { display: flex; align-items: center; gap: 0.25rem; min-height: 3.25rem; }
.markets .label { display: none; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-right: 0.75rem; }
@media (min-width: 640px) { .markets .label { display: inline; } }
.markets a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; font-size: 0.875rem; color: var(--subtle); white-space: nowrap; }
.markets a.is-on, .markets a:hover { color: var(--fg); }
.markets .code { font-weight: 500; letter-spacing: 0.04em; margin-right: 0.4rem; }
.markets .name { display: none; }
@media (min-width: 768px) { .markets .name { display: inline; } }

.block { border-bottom: 1px solid var(--border); padding: 5rem 0; scroll-margin-top: 6rem; }
.block h2 { font-size: clamp(1.875rem, 3vw, 2.25rem); margin: 0.75rem 0 0; }
.block .copy { max-width: 42rem; color: var(--muted); margin: 1.25rem 0 0; }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.postcard {
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface);
  border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.postcard .media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-elevated); }
.postcard .media img { width: 100%; height: 100%; object-fit: cover; }
.postcard .body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.postcard h3 { font-size: 1.25rem; margin: 0; }
.postcard p { color: var(--muted); font-size: 0.875rem; margin: 0.75rem 0 0; flex: 1; }

.enquire { background: var(--bg-elevated); padding: 5rem 0; scroll-margin-top: 6rem; }
.enquire-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .enquire-grid { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 1.5rem; }
@media (min-width: 768px) { .panel { padding: 2rem; } }
.field { display: grid; gap: 0.375rem; margin-top: 1rem; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--fg); padding: 0 0.75rem;
}
.field textarea { min-height: 7rem; padding: 0.5rem 0.75rem; resize: vertical; }
.field .error { color: var(--danger); font-size: 0.875rem; margin: 0; }
.notice { color: var(--primary); font-size: 0.875rem; margin: 0.75rem 0 0; }
.contact-list { margin-top: 2rem; }
.contact-list h3 { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin: 0 0 0.75rem; }
.contact-list ul, .site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.contact-list .label, .site-footer .label { font-weight: 500; margin: 0; }
.link-quiet { color: var(--muted); }
.link-quiet:hover { color: var(--primary); }

.site-footer { background: var(--ink); color: var(--hero-fg); }
.footer-grid { display: grid; gap: 2.5rem; padding: 4rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.brand.light .mark { color: var(--hero-fg); }
.site-footer .muted, .site-footer .link-dim { color: color-mix(in oklab, var(--hero-fg) 60%, transparent); }
.site-footer h3 { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in oklab, var(--hero-fg) 50%, transparent); font-family: var(--font-sans); }
.footer-base { border-top: 1px solid color-mix(in oklab, var(--hero-fg) 10%, transparent); }
.base-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding: 1.25rem 0; font-size: 0.75rem; color: color-mix(in oklab, var(--hero-fg) 50%, transparent); }

.admin-hero { padding: 2.5rem 0 0; }
.admin-hero h1 { font-size: 1.875rem; margin: 0.5rem 0 0; }
.admin-hero p { color: var(--muted); max-width: 36rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; background: var(--bg-elevated); padding: 0.25rem; border-radius: var(--radius-md); margin: 2rem 0; }
.tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.75rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.tabs a.is-on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.stack { display: grid; gap: 1.5rem; padding-bottom: 4rem; }
.card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 1.25rem; display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.thumb { aspect-ratio: 16/9; max-width: 28rem; overflow: hidden; border-radius: var(--radius-md); background: var(--bg-elevated); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-logo, .thumb-favicon { aspect-ratio: auto; max-width: 8rem; padding: 0.5rem; display: flex; align-items: center; justify-content: center; }
.thumb-logo img, .thumb-favicon img { width: auto; height: auto; max-width: 100%; max-height: 3rem; object-fit: contain; }
.checkbox { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); font-weight: 400; }
.checkbox input { width: auto; }
.row-actions { display: flex; gap: 0.25rem; }
.empty { text-align: center; padding: 4rem 1.5rem; }
.nested { background: var(--bg-elevated); border-radius: var(--radius-md); padding: 1rem; display: grid; gap: 0.75rem; }
.card-edit { display: grid; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--border); }
.block-edit { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.block-edit__head { padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.block-edit__toggle { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 0.15rem; }
.inner { display: grid; gap: 1.25rem; padding: 0 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.block-edit[data-open="0"] > .inner { display: none; }
.is-hidden { display: none !important; }

/* Google's Website Translator injects its own top banner + iframe and
   shifts <body> down with an inline style when active; keep our own layout
   intact since we drive translation from our own "Translation" dropdown. */
.goog-te-banner-frame, .skiptranslate > iframe { display: none !important; visibility: hidden !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.setup-steps {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  display: grid;
  gap: 1rem;
  color: var(--muted);
}
.setup-steps li { padding-left: 0.25rem; }
.setup-steps strong { color: var(--fg); font-weight: 600; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

/* Admin: post card forms */
.muted { color: var(--muted); font-size: 0.875rem; }
.form-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.save-status { font-size: 0.875rem; color: var(--muted); }
.save-status.is-ok { color: var(--primary); font-weight: 500; }
.save-status.is-err { color: var(--danger); font-weight: 500; }
.new-card > summary { list-style: none; width: fit-content; }
.new-card > summary::-webkit-details-marker { display: none; }
.new-card[open] > summary { margin-bottom: 0.75rem; }
.card-form.is-saving { opacity: 0.7; pointer-events: none; }
