/* The Local Fold holding page. Colours from docs/brand/v3-lock/brand-tokens-v3.json;
   spacing on v3.6's 4 / 8 / 16 / 24 scale, with 48 / 64 for the page's own margins. */

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display-italic.woff2") format("woff2");
}
@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/league-spartan-700.woff2") format("woff2");
}

:root {
  --navy: #00214E;
  --cream: #FAF8F1;   /* the mastheads' peeled corner is this exact colour */
  --gold: #C57F28;    /* rules only */
  --ink: #252B32;
  --bronze: #653B13;  /* every link */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 752px;
  margin: 0 auto;
  padding: 64px 16px 48px;
  text-align: center;
}

img { display: block; width: 100%; height: auto; }

.mast { margin: 0; }

.tagline {
  margin: 24px 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(24px, 4.2vw, 32px);
  line-height: 1.2;
  color: var(--navy);
}

.lede { margin: 0; font-size: 17px; }

.note {
  display: inline-block;
  margin: 24px 0 0;
  padding: 8px 16px;
  border: 1px solid rgba(197, 127, 40, 0.45);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.45;
}

.note span { display: inline-block; }

.tagline, .lede, .note span { text-wrap: balance; }

.rule {
  width: 48px;
  height: 2px;
  margin: 48px auto;
  border: 0;
  background: var(--gold);
}

.kicker {
  margin: 0 0 24px;
  font-family: "League Spartan", var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.towns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 760px) {
  .towns { grid-template-columns: 1fr 1fr; }
}

.towns a {
  display: block;
  color: var(--bronze);
  text-decoration: none;
  border-radius: 2px;
}

/* No shadow on hover: it would outline the cream corner and break the peel. */
.towns img { transition: transform 160ms ease; }
.towns a:hover img,
.towns a:focus-visible img { transform: translateY(-3px); }

.towns span {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a { color: var(--bronze); }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

.contact { margin: 0; }

footer {
  padding: 16px 16px 24px;
  text-align: center;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .towns img { transition: none; }
}
