/* ==========================================================================
   August Cider — shared styles
   Palette derives from the original site's brand green (#17231F).
   No frameworks, no build step. Edit this file directly.
   ========================================================================== */

:root {
  --ground:  #121B18;  /* page background, a shade under the brand green */
  --brand:   #17231F;  /* original site theme colour */
  --raise:   #1C2A25;  /* raised surfaces, rules */
  --bone:    #EDE7DA;  /* primary text, warm off-white */
  --muted:   #8B9C92;  /* secondary text, desaturated green-grey */
  --gold:    #C8A24A;  /* cider gold, used sparingly */

  --measure: 34rem;    /* comfortable reading width */
  --gutter:  clamp(1.5rem, 5vw, 3rem);

  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype",
             Palatino, "Times New Roman", serif;
  --utility: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
             Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* The one flourish: a low, warm glow behind the page, like light through
   a bottle. Fixed so it does not travel while scrolling. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    58rem 34rem at 50% -8%,
    rgba(200, 162, 74, 0.13),
    transparent 68%
  );
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
}

/* ---------- Header ------------------------------------------------------ */

.masthead {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) 0;
  text-align: center;
}

.masthead__logo { display: inline-block; }

.masthead__logo img {
  display: block;
  width: clamp(11rem, 34vw, 15rem);
  height: auto;
}

/* Text fallback if the logo image is missing or still being sourced. */
.masthead__wordmark {
  display: block;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  line-height: 1.1;
}

.nav {
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 2.75rem);
  font-family: var(--utility);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible { color: var(--bone); border-bottom-color: var(--gold); }

.nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--raise); }

/* ---------- Main -------------------------------------------------------- */

main { padding-block: clamp(3.5rem, 11vw, 6.5rem); }

.lede {
  margin: 0;
  font-size: clamp(1.9rem, 1.35rem + 2.6vw, 3.05rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.lede em {
  font-style: italic;
  color: var(--gold);
}

.sub {
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Gold hairline used to separate the brand voice from the plain status note. */
.rule {
  width: 3.25rem;
  height: 1px;
  margin: clamp(2.5rem, 7vw, 3.75rem) 0;
  border: 0;
  background: var(--gold);
  opacity: 0.65;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--utility);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.prose p { margin: 0 0 1.35rem; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose .note { color: var(--muted); }

.title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
}

/* ---------- Links & the contact address --------------------------------- */

a { color: var(--bone); }

.prose a {
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.08em;
  transition: color 160ms ease;
}

.prose a:hover,
.prose a:focus-visible { color: var(--gold); }

.address {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.9rem);
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.12em;
  transition: color 160ms ease;
}

.address:hover,
.address:focus-visible { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Footer ------------------------------------------------------ */

.colophon {
  flex-shrink: 0;
  padding-block: clamp(2rem, 6vw, 3rem);
  border-top: 1px solid var(--raise);
  font-family: var(--utility);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.colophon p { margin: 0; }

/* ---------- Motion ------------------------------------------------------ */

@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: none; }
}

.masthead,
main { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.3, 1) both; }

main { animation-delay: 110ms; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
