/* base.css — reset, typography, buttons, utilities. Mobile first. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
  margin: 0; min-width: 320px;
  background: var(--cream); color: var(--charcoal);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 17px; } }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text-link); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: var(--heading-weight, 500); line-height: 1.15; color: var(--charcoal); margin: 0 0 .5em; }
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
@media (min-width: 900px) { h1 { font-size: 56px; } h2 { font-size: 40px; } h3 { font-size: 28px; } }
p { margin: 0 0 1em; }
small, .small { font-size: 13px; }

.script { font-family: var(--font-script); font-style: var(--script-style); font-size: clamp(36px, 6vw, 56px); line-height: 1.1; color: var(--text-link); margin: 0 0 .1em; font-weight: 400; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--text-muted); }
.rule { width: 48px; height: 1px; background: var(--gold); margin: 18px auto 24px; }
.prose { max-width: 68ch; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--text-muted); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.section + .section { border-top: 1px solid var(--gold-pale); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ivory); color: var(--charcoal); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 24px; border: 1px solid var(--gold); border-radius: var(--radius-sm);
  background: var(--gold); color: var(--on-gold); cursor: pointer;
  font: 500 13px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--on-gold-deep); transform: translateY(-1px); }
.btn:focus-visible { box-shadow: var(--focus); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-outline { background: transparent; color: var(--text-link); }
.btn-outline:hover { background: var(--gold); color: var(--on-gold); }
/* The light button sits over photos: the over-photo white, and the photo shade's dark for its words on hover */
.btn-light { background: transparent; border-color: var(--on-photo); color: var(--on-photo); }
.btn-light:hover { background: var(--on-photo); color: #3B3835; border-color: var(--on-photo); }
.btn-ghost { background: none; border-color: transparent; color: var(--text-link); padding-inline: 4px; text-decoration: underline; text-underline-offset: 5px; }
.btn-ghost:hover { background: none; color: var(--charcoal); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 9px 16px; font-size: 12px; }
.btn-block { width: 100%; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--ivory); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon { display: inline-block; vertical-align: middle; }

/* 404 + maintenance */
.notfound-photo { margin: 0 auto 24px; border-radius: var(--radius); }
body.maintenance { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.maintenance-card { text-align: center; max-width: 520px; }
.maintenance-card img { margin: 0 auto 12px; width: min(280px, 80vw); }
/* Optional coming-soon background picture (Brand → Site options, 2.3.11): darkened so the logo and words stay readable */
body.maintenance.has-bg { background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), var(--maintenance-bg) center / cover no-repeat, #000; }
body.maintenance.has-bg .maintenance-card { color: #F5F1EA; text-shadow: 0 1px 10px rgba(0,0,0,.7); }

/* "Powered by" line (PLAN D17): footer, gallery, maintenance and 18+ screens */
.powered-by { font-size: 12px; letter-spacing: .04em; color: var(--text-muted); }
.powered-by a { color: inherit; text-decoration: none; }
.powered-by a:hover { text-decoration: underline; }
.maintenance-card .powered-by { margin-top: 40px; }
