/* William Tell House
   Colors and type come from two real things: the William Tell House logo
   (navy, pale blue arrows, wide geometric capitals) and the Good Luck Fund
   horseshoe patch (cream, rose). See docs/williamtell.md before changing them. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #253746;        /* William Tell House logo */
  --navy-deep: #1b2935;   /* footer */
  --mist: #b9c6cb;        /* logo arrows, darkened so thin lines show on cream */
  --cream: #fbf7f4;       /* Good Luck Fund cream */
  --rose: #9e525c;        /* Good Luck Fund rose, dark enough to read as text */
  --rose-light: #e3a7ae;  /* rose on navy */
  --soft: #556570;        /* captions and small print */

  --caps: "Jost", "Century Gothic", "Avenir Next", Avenir, sans-serif;
  --prose: "Newsreader", "Iowan Old Style", Georgia, serif;

  --wrap: 1180px;
  --gutter: 32px;
  --section: clamp(72px, 10vw, 136px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--prose);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
[id] { scroll-margin-top: 28px; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}
a:hover { color: var(--rose); }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--navy); color: var(--cream);
  font: 500 0.875rem var(--caps); text-decoration: none;
}
.skip:focus { top: 16px; color: var(--cream); }

/* ---------- Type ---------- */

h1, h2, h3, dt, .btn, .site-nav, .fund-tag__text, .timeline__year, .stories__meta {
  font-family: var(--caps);
  font-weight: 500;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0.035em;
}
h1 span { display: block; }

h2 {
  margin: 0 0 0.9em;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
}

h3 {
  margin: 0 0 1.6em;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--soft);
}

.statement {
  font-size: clamp(1.5rem, 2.7vw, 2.125rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 0.8em;
}

.caption, figcaption, .fine {
  font-family: var(--caps);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--soft);
}
figcaption, .caption { margin-top: 12px; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid var(--rose);
  background: var(--rose);
  color: var(--cream);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn:active { transform: translateY(1px); }

.btn--quiet { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--quiet:hover { background: var(--navy); color: var(--cream); }

.btn--light { background: var(--cream); border-color: var(--cream); color: var(--navy-deep); }
.btn--light:hover { background: var(--rose-light); border-color: var(--rose-light); color: var(--navy-deep); }

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

.site-header__row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-block: 22px;
}
.brand { flex: none; text-decoration: none; }
.brand img { width: auto; height: 56px; }

.site-nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
}
.site-nav a { text-decoration: none; padding-block: 6px; }
.site-nav a:hover { color: var(--rose); }

.fund-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 34px;
  border-left: 1px solid var(--mist);
  text-decoration: none;
}
/* The horseshoe file is cream. Used as a mask, it takes whatever color we give it. */
.fund-tag__mark {
  flex: none;
  width: 34px;
  height: 37px;
  background: var(--navy);
  -webkit-mask: url("images/good-luck-fund-mark.png") center / contain no-repeat;
          mask: url("images/good-luck-fund-mark.png") center / contain no-repeat;
  transition: background-color 0.15s ease;
}
.fund-tag:hover .fund-tag__mark { background: var(--rose); }
.fund-tag__text {
  white-space: nowrap;
  font-size: 0.6875rem;
  line-height: 1.35;
  letter-spacing: 0.14em;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 88px);
}
.hero__lede {
  max-width: 30ch;
  margin: 26px 0 0;
  font-size: clamp(1.25rem, 1.8vw, 1.4375rem);
  line-height: 1.45;
}
.hero__photo img { width: 100%; }

/* The arrow from the logo, used once as a rule under the hero. */
.arrow { display: flex; align-items: center; color: var(--mist); }
.arrow svg { flex: none; display: block; }
.arrow__shaft { flex: 1; height: 0; border-top: 1.5px solid currentColor; }

/* ---------- What's happening ---------- */

.now {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  padding-block: var(--section);
}
.now__copy > p:not(.statement) { max-width: 54ch; }
.now__fund { font-size: 1rem; line-height: 1.5; }
.now__fund img { width: 168px; margin-bottom: 22px; transform: rotate(-5deg); }
.now__fund p { margin-bottom: 0.5em; }
.now__fund a { font: 500 0.8125rem var(--caps); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- History ---------- */

.history {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: var(--section);
}
.history__intro { align-self: start; position: sticky; top: 40px; }
.history__intro p { max-width: 36ch; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding-bottom: 1.5em;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline__year {
  font-size: 1.375rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--rose);
}
.timeline p { max-width: 48ch; }
.timeline__photo { margin: 20px 0 14px; }
.timeline__photo img { width: 100%; }
.timeline__photo--small { max-width: 397px; }

/* ---------- The building ---------- */

.building { padding-bottom: var(--section); }
.building__intro { max-width: 56ch; margin-bottom: 44px; }

.rooms {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.rooms img { width: 100%; height: 100%; object-fit: cover; }
.rooms__dining { grid-column: 1 / span 8; aspect-ratio: 16 / 9; }
.rooms__hall   { grid-column: 9 / span 4; }
.rooms__suite  { grid-column: 1 / span 5; }
.rooms__guest  { grid-column: 6 / span 7; aspect-ratio: 16 / 9; }

/* ---------- Operators ---------- */

.operators {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 8vw, 120px);
  padding-bottom: var(--section);
}
.operators::before {
  content: "";
  grid-column: 1 / -1;
  border-top: 2px solid var(--navy);
  margin-bottom: clamp(8px, 2vw, 24px);
}
.operators__ask > p:not(.statement):not(.fine) { max-width: 46ch; }
.fine { margin-top: 18px; }

.principles { margin: 0; }
.principles div { margin-bottom: 1.35em; }
.principles div:last-child { margin-bottom: 0; }
.principles dt { font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 0.15em; }
.principles dd { margin: 0; font-size: 1.0625rem; line-height: 1.5; max-width: 40ch; }

/* ---------- Landscape band ---------- */

.band img {
  width: 100%;
  height: clamp(200px, 32vw, 460px);
  object-fit: cover;
  object-position: 50% 42%;
}

/* ---------- Visit ---------- */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-block: var(--section);
}
.visit address { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.25; margin-bottom: 0.9em; }
.visit p { max-width: 40ch; }
.notice { font: 500 0.875rem/1.5 var(--caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); }
.link-out { font: 500 0.875rem var(--caps); letter-spacing: 0.14em; text-transform: uppercase; }

.visit__map { background: #e7ebeb; }
.visit__map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 340px;
  border: 0;
  filter: grayscale(0.85) contrast(1.04);
}

/* ---------- News ---------- */

.news { padding-bottom: var(--section); }
.stories { list-style: none; margin: 0; padding: 0; }
.stories li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(16px, 6vw, 96px);
  align-items: baseline;
  padding-block: 1.1em;
  border-top: 1px solid var(--mist);
}
.stories__meta { margin: 0; font-size: 0.8125rem; letter-spacing: 0.12em; line-height: 1.5; }
.stories__meta span { display: block; color: var(--soft); }
.stories__title { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; }
.stories__title a { text-decoration-color: transparent; }
.stories__title a:hover { text-decoration-color: var(--rose); }

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

.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding-block: clamp(56px, 8vw, 96px) 36px;
  font-size: 1.0625rem;
}
.site-footer a { text-decoration-color: var(--rose-light); }
.site-footer a:hover { color: var(--rose-light); }
.site-footer h2 { font-size: 0.875rem; letter-spacing: 0.16em; margin-bottom: 1.4em; color: var(--rose-light); }

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(32px, 6vw, 88px);
}
.site-footer__fund img { width: 104px; margin-bottom: 26px; }
.site-footer__fund p { max-width: 26ch; font-size: 1.375rem; line-height: 1.35; }
.site-footer__plain { font: 400 0.9375rem var(--caps); letter-spacing: 0.04em; opacity: 0.8; margin-top: 14px; }
.site-footer__links { list-style: none; margin: 0 0 1.6em; padding: 0; }
.site-footer__links li { margin-bottom: 0.55em; }
.site-footer__post { font: 400 0.9375rem/1.55 var(--caps); letter-spacing: 0.02em; opacity: 0.8; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 28px;
  border-top: 1px solid rgba(251, 247, 244, 0.2);
  font: 400 0.8125rem var(--caps);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer__base img { width: auto; height: 40px; }
.site-footer__base p { margin: 0; opacity: 0.8; }
.site-footer__base p:last-child { margin-left: auto; }

/* ---------- Tablet and phone ---------- */

@media (max-width: 1040px) {
  .fund-tag { padding-left: 0; border-left: 0; }
  .fund-tag__text { display: none; }
  .site-header__row { gap: 28px; }
  .site-nav { gap: 26px; }
}

@media (max-width: 860px) {
  :root { --gutter: 22px; }
  body { font-size: 1.125rem; }

  .site-header__row { flex-wrap: wrap; gap: 14px 20px; padding-block: 16px 0; }
  .brand img { height: 46px; }
  .fund-tag { margin-left: auto; }
  .site-nav {
    order: 3;
    width: 100%;
    margin: 0;
    padding-block: 10px;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--mist);
    border-bottom: 1px solid var(--mist);
    font-size: 0.75rem;
  }

  .hero, .now, .history, .operators, .visit, .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(1.9rem, 9.6vw, 3.5rem); }
  .hero { gap: 34px; padding-top: 36px; }
  .hero__lede { max-width: 34ch; }

  .now { gap: 44px; }
  .now__fund { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 22px; align-items: center; }
  .now__fund img { width: 112px; margin: 0; grid-row: span 2; }

  .history { gap: 28px; }
  .history__intro { position: static; }
  .timeline li { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 14px; }
  .timeline__year { font-size: 1.1875rem; }
  /* Photos use the full width of the phone, not just the text column. */
  .timeline__photo { margin-left: calc(-4.25rem - 14px); }
  .timeline__photo--small { max-width: none; }

  .building__intro { margin-bottom: 30px; }
  .rooms { gap: 10px; }
  .rooms__dining, .rooms__guest { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .rooms__hall, .rooms__suite { grid-column: span 6; aspect-ratio: 1; }

  .operators { gap: 48px; }
  .stories li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .stories__meta span { display: inline; margin-left: 0.6em; }

  .site-footer__grid { gap: 44px; }
  .site-footer__base p:last-child { margin-left: 0; }
}

@media (max-width: 420px) {
  .actions .btn { flex: 1 1 100%; }
  .site-nav { letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-nav, .actions, .visit__map, .band { display: none; }
  body { background: #fff; }
}
