/* Base: reset, typography and the app shell.
   Phones: one 440px column, exactly like the prototype.
   Desktop (900px+): full-width page with a header and a centred 1180px content area (Rule 56). */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--stage);color:var(--ink);font-family:var(--f);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2.5px solid var(--brand);outline-offset:2px}
img{max-width:100%}
h1,h2,h3,h4{margin:0;letter-spacing:-.015em;text-wrap:balance}

/* App shell: the page scrolls; the bottom nav sticks to the bottom on phones */
.app{position:relative;width:100%;max-width:440px;min-height:100dvh;margin:0 auto;background:var(--bg);display:flex;flex-direction:column;box-shadow:0 0 50px rgba(31,26,18,.14)}
.scr{flex:1}
.pad{padding:16px var(--gutter) 24px;display:flex;flex-direction:column;gap:16px}
.wrap{width:100%}

@media (min-width:900px){
  body{background:var(--bg);font-size:15px}
  .app{max-width:none;box-shadow:none}
  .wrap{max-width:1180px;margin:0 auto;padding-left:32px;padding-right:32px}
  .pad.wrap{padding-top:28px;padding-bottom:56px;gap:28px}
}

/* Optional notice bar from the SITE_NOTICE setting (e.g. a preview server) */
.site-notice{background:var(--earth);color:var(--gold-soft);font-size:12px;font-weight:700;text-align:center;padding:6px var(--gutter)}

/* Inline SVG icons from the {% icon %} tag */
.i{width:1.2em;height:1.2em;vertical-align:-.22em;flex:none}

/* Illustrations and photos fill their box */
.ph{width:100%;height:100%;position:relative;overflow:hidden;background:var(--g4)}
.ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

/* Utilities */
.tnum{font-variant-numeric:tabular-nums}
.mut{color:var(--mut)}
.sm{font-size:12.5px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Form fields: a red edge while typing, an oxblood edge when the field has an error (with the message as text) */
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand)}
.field:has(.errorlist li) input,.field:has(.errorlist li) select,.field:has(.errorlist li) textarea{border-color:var(--danger)}
