:root {
  color-scheme: light;
  --night: #07172c;
  --ink: #152438;
  --paper: #f3ead8;
  --paper-dark: #e7dcc7;
  --red: #a92f26;
  --rule: #aa9d89;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.masthead {
  min-height: clamp(275px, 27vw, 380px);
  position: relative;
  display: grid;
  place-items: center;
  padding: 42px 7vw 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 12, 24, .35), rgba(4, 12, 24, .55)), url("assets/hamilton-downtown-hero.jpg") center 52% / cover no-repeat, var(--night);
}
.top-nav {
  position: absolute;
  z-index: 2;
  top: 25px;
  right: max(7vw, calc((100vw - var(--max)) / 2));
  display: flex;
  gap: 34px;
  font-size: 16px;
  letter-spacing: .02em;
}
.top-nav a {
  color: #f3ead8;
  padding: 0 0 7px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.top-nav a:hover, .top-nav a:focus-visible { border-color: var(--red); }
.brand { display: block; width: min(620px, 78vw); }
.brand img { display: block; width: 100%; height: auto; }

.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 24px 26px;
  text-align: center;
}
.intro h1 {
  margin: 0;
  font-size: clamp(39px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.intro p {
  max-width: 650px;
  margin: 13px auto 0;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.45;
}

.storefronts { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.storefront-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.storefront-link { display: block; text-decoration: none; }
.storefront-photo {
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: #d5c9b5;
  border: 7px solid #e8ddca;
  box-shadow: 0 12px 28px rgba(40, 31, 19, .13);
}
.storefront-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: sepia(.11) contrast(.95);
  transition: transform .55s ease, filter .55s ease;
}
.storefront-link:hover .storefront-photo img,
.storefront-link:focus-visible .storefront-photo img {
  transform: scale(1.025);
  filter: sepia(.04) contrast(1);
}
.storefront-caption {
  margin: 0;
  padding: 14px 4px 0;
  text-transform: uppercase;
  font-size: clamp(23px, 2.2vw, 30px);
  letter-spacing: .02em;
}
.growing-archive {
  width: min(var(--max), calc(100% - 48px));
  margin: 48px auto 42px;
  display: flex;
  align-items: center;
  gap: 25px;
  color: #5f5b53;
  font-size: 17px;
  font-style: italic;
  letter-spacing: .06em;
  text-align: center;
}
.growing-archive p { margin: 0; white-space: nowrap; }
.rule { height: 1px; flex: 1; background: var(--rule); }
.site-footer {
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px max(7vw, calc((100vw - var(--max)) / 2));
  color: #eee4d2;
  background: var(--night);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-footer span:last-child { color: #bcb5a8; letter-spacing: .04em; text-transform: none; }

/* WERH entry page */
.werh-page { max-width: var(--max); width: calc(100% - 48px); margin: 0 auto; padding: 34px 0 58px; }
.back-link { display: inline-block; color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 16px; }
.werh-heading { padding: 30px 0 24px; text-align: center; }
.werh-heading h1 { margin: 0; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(42px, 6vw, 72px); }
.werh-heading p { max-width: 650px; margin: 12px auto 0; font-size: 20px; line-height: 1.5; }
.werh-hero-photo { margin: 0; padding: 10px; background: var(--paper-dark); box-shadow: 0 12px 28px rgba(40, 31, 19, .13); }
.werh-hero-photo img { display: block; width: 100%; max-height: 600px; aspect-ratio: 1.62 / 1; object-fit: cover; object-position: center 56%; filter: sepia(.11) contrast(.95); }
.werh-hero-photo figcaption { padding: 9px 2px 1px; color: #6f6658; font: italic 13px/1.4 Georgia, serif; }
.station-history { display: grid; grid-template-columns: minmax(180px, .7fr) 2fr; gap: 42px; padding: 42px 0; border-bottom: 1px solid var(--rule); }
.history-date { border-right: 1px solid var(--rule); }
.history-label { color: var(--red); text-transform: uppercase; letter-spacing: .15em; font: 12px Arial, sans-serif; }
.history-date p { font-size: 18px; line-height: 1.55; }
.history-date strong { font-size: 22px; }
.history-copy h2, .inside-station h2 { margin: 0 0 13px; font-size: clamp(27px, 3vw, 38px); }
.history-copy p, .inside-station p { max-width: 700px; margin: 0; color: #403f3a; font-size: 18px; line-height: 1.65; }
.inside-station { padding: 38px 0; }
.inside-station p { margin-bottom: 22px; }
.photo-placeholder { min-height: 160px; display: grid; place-items: center; border: 1px dashed #a99e8d; color: #716858; background: rgba(231, 220, 199, .45); font: italic 16px Georgia, serif; }
.return-link { display: inline-block; margin-top: 8px; padding: 14px 20px; color: #fff6e8; background: var(--red); text-decoration: none; font-weight: 700; }

@media (max-width: 650px) {
  .masthead { min-height: 265px; padding: 58px 16px 22px; }
  .top-nav { top: 17px; right: 22px; gap: 22px; font-size: 14px; }
  .brand { width: min(540px, 92vw); }
  .intro { padding: 32px 22px 22px; }
  .intro h1 { font-size: clamp(37px, 10vw, 52px); }
  .intro p { margin-top: 10px; font-size: 18px; }
  .storefronts, .growing-archive { width: calc(100% - 28px); }
  .storefront-grid { grid-template-columns: 1fr; gap: 24px; }
  .storefront-photo { border-width: 5px; }
  .storefront-caption { padding: 12px 2px 0; font-size: 24px; }
  .growing-archive { margin: 35px auto 32px; gap: 13px; font-size: 14px; }
  .site-footer { min-height: 84px; padding: 20px 22px; align-items: flex-start; flex-direction: column; gap: 9px; font-size: 11px; }
  .werh-page { width: calc(100% - 28px); padding-top: 23px; }
  .werh-heading { padding: 24px 0 19px; }
  .werh-heading p { font-size: 17px; }
  .werh-hero-photo { padding: 6px; }
  .werh-hero-photo img { aspect-ratio: 1.08 / 1; }
  .station-history { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .history-date { border-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
  .history-date p { margin-bottom: 0; }
  .history-copy p, .inside-station p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
