/* =============================================================================
   MR — site styles
   Editorial Minimal + Chicago flag details (clean-1-chicago).
   Palette: newsprint ivory, ink, flag-blue for decoration only, Lake for links.
   No red. No saturated blue bands. Flag blue (#41B6E6) is never used as text
   on paper (it fails contrast).
   ============================================================================= */

/* ----- Fonts (self-hosted, SIL OFL — see assets/fonts/OFL.txt) ----- */
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ----- Tokens ----- */
:root {
  /*
    BRAND — practice mark is "MR".
    Swap --brand-name / --brand-descriptor with the JS BRAND object in js/main.js.
    Leave --brand-descriptor empty to hide the descriptor slot beside the logo.
    The visible mark is assets/logo.svg (letterforms are drawn, not live text).
  */
  --brand-name: "MR";
  --brand-descriptor: "";
  --brand-person: "Michael Rippe";

  --ivory: #F6F2EA;
  --navy: #111111;       /* ink, not a blue */
  --flag: #41B6E6;       /* decorative stripes and stars only. Never as text on paper. */
  --lake: #0A5F80;       /* AA links on ivory */
  --muted: #4E4A43;
  --line: #D9D2C6;
  --white: #FFFCF7;
  --nav-h: 73px;         /* 64px bar + 9px twin flag stripes */
  --display: "Playfair Display", "Times New Roman", serif;
  --body: "Newsreader", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--navy);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
a { color: var(--lake); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -120px;
  background: var(--navy);
  color: var(--ivory);
  padding: 8px 14px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus,
.skip:focus-visible { top: 12px; }

.wrap { width: min(1080px, calc(100% - 56px)); margin: 0 auto; }

/* ----- Header ----- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 234, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
  box-shadow: none;
}

/* Twin flag-blue hairlines under the nav (the flag’s two bars). */
header::after {
  content: "";
  display: block;
  height: 9px;
  background:
    linear-gradient(var(--flag), var(--flag)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--flag), var(--flag)) 0 100% / 100% 1px no-repeat;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-mark {
  height: 44px;
  width: auto;
  flex: 0 0 auto;
}
.brand-descriptor { display: none; }
.brand-descriptor:not([hidden]) {
  display: inline-block;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy);
  color: var(--navy);
  width: 44px;
  height: 44px;
  border-radius: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
header.is-open .nav-toggle .icon-menu { display: none; }
header.is-open .nav-toggle .icon-close { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links a { text-decoration: none; color: var(--navy); }
.nav-links a:hover { color: var(--lake); }
.nav-links a[aria-current="page"] { color: var(--lake); }
.nav-links a.btn { color: var(--ivory); }
.nav-links a.btn:hover { color: var(--ivory); background: #000; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: 0;
  padding: 12px 20px;
  min-height: 44px;
  font: 600 13px/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: #000; color: var(--ivory); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--ivory); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ----- Hero ----- */
.hero { padding: 88px 0 0; background: transparent; color: var(--navy); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 22px;
}
.star {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--flag);
}
.eyebrow .star { width: 10px; height: 10px; color: var(--flag); }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.08;
  color: var(--navy);
}
.hero .lede {
  margin-top: 28px;
  max-width: 36em;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  margin-bottom: 80px;
}

.skyline-wrap { overflow: hidden; width: 100%; }
.skyline {
  width: 100%;
  height: auto;
  color: var(--navy);
  opacity: 0.75;
  display: block;
}
.skyline-rule { display: none; }

/* ----- Sections ----- */
section { padding: 112px 0; }
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 14px;
  color: var(--navy);
}
.section-lede {
  color: var(--muted);
  max-width: 38em;
  margin-bottom: 40px;
  font-size: 18px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-kicker .star { color: var(--flag); }

/* Twin bars on the newsletter and footer edges. */
#newsletter,
footer {
  background-color: transparent;
  background-image:
    linear-gradient(var(--flag), var(--flag)),
    linear-gradient(var(--flag), var(--flag));
  background-size: 100% 1px, 100% 1px;
  background-position: 0 0, 0 8px;
  background-repeat: no-repeat;
}

/* Four Chicago stars as a small colophon. */
.chi-stars {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.chi-stars .star {
  width: 10px;
  height: 10px;
  color: var(--flag);
}
#newsletter .section-kicker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
#newsletter .section-kicker { color: var(--lake); }

/* ----- Services ----- */
.offers {
  list-style: none;
  border-top: 1px solid var(--navy);
}
.offer {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.offer-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--navy);
  padding-top: 6px;
}
.pillar + .pillar { margin-top: 56px; }
.pillar-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy);
}
.services-note { margin: -24px 0 40px; max-width: 38em; }
.offer h3, .offer h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.offer-sub {
  font-style: italic;
  margin-bottom: 8px;
  color: var(--muted);
}
.offer p { color: var(--muted); max-width: 46em; }
.offer-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 11rem;
}
.price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.25;
}
.price small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.price .sub {
  display: block;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-top: 2px;
}

.guide {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
  margin-top: 28px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 0;
}
.guide .section-kicker { margin-bottom: 0; }
.guide h3, .guide h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 4px 0 6px;
}
.guide .offer-sub { margin-bottom: 8px; }
.guide p { color: var(--muted); max-width: 42em; }
.guide-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.coming-soon {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.guide p.coming-soon { max-width: none; margin: 0; }

/* ----- About ----- */
.about-copy { max-width: 38em; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy a { font-weight: 500; }

/* ----- Newsletter ----- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.subscribe {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}
.subscribe label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.subscribe input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 13px 16px;
  min-height: 44px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font: 400 16px/1.3 var(--body);
}
.subscribe input::placeholder { color: var(--muted); }
.subscribe input:focus {
  border-color: var(--navy);
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.news-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.news-note a { color: var(--lake); }

/* ----- Book ----- */
.book-intro { max-width: 40em; margin-bottom: 16px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 48px;
  list-style: none;
}
.steps li { padding-top: 16px; border-top: 1px solid var(--navy); }
.steps h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.steps p { font-size: 15px; color: var(--muted); }

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.cal, .form-card {
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 0;
  padding: 28px;
}
.book-grid .form-card { border-left: none; margin-left: -1px; }
.cal-kicker,
.form-card .cal-kicker {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.cal h3, .form-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.cal > p, .form-card > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.cal-frame {
  border: 1px dashed #C9C3B8;
  border-radius: 0;
  background: var(--ivory);
  padding: 16px 16px 14px;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
}
.cal-nav { display: flex; gap: 6px; }
.cal-nav span {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-days span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--muted);
}
.cal-placeholder {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
}
#booking-live .btn {
  max-width: 100%;
  height: auto;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

form { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 5px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  font: 400 16px/1.4 var(--body);
  background: var(--ivory);
  color: var(--navy);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: transparent;
}
textarea { min-height: 88px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note, .form-thanks { font-size: 13px; color: var(--muted); }
.form-thanks {
  display: none;
  padding: 12px 14px;
  background: var(--ivory);
  border: 1px solid var(--line);
}
.form-thanks.is-visible { display: block; }

/* ----- Interior pages (privacy, 404) ----- */
.page { padding: 88px 0 112px; }
.page h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin-bottom: 28px;
}
.page-copy { max-width: 38em; color: var(--muted); }
.page-copy p, .page-copy ul { margin-bottom: 16px; }
.page-copy h2 {
  font-size: 1.35rem;
  max-width: none;
  margin: 32px 0 12px;
  color: var(--navy);
}
.page-copy ul { padding-left: 1.2em; }
.page-copy li { margin-bottom: 8px; }
.page-cta { margin-top: 36px; }

/* ----- Footer ----- */
footer {
  color: var(--muted);
  padding: 40px 0 44px;
  font-size: 14px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: end;
}
footer a { color: var(--lake); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--navy);
}
.foot-mark { height: 40px; width: auto; }
.foot-spellout {
  color: var(--navy);
  font-weight: 500;
}
.foot-tagline {
  margin-top: 4px;
  max-width: 28em;
}
.foot-meta { margin-top: 8px; }
.foot-links { margin-top: 10px; }
.foot-links a + a::before {
  content: " · ";
  color: var(--muted);
  text-decoration: none;
}
/* ----- Mobile ----- */
@media (max-width: 820px) {
  .wrap { width: min(100% - 32px, 1080px); }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ivory);
    padding: 8px 16px 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  header.is-open .nav-links {
    display: flex;
    /* Sit below header::after so the twin bars stay a clean pair. */
    top: 100%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-links a { padding: 12px 4px; min-height: 44px; display: flex; align-items: center; }
  .nav-links .btn { margin-top: 8px; width: 100%; }
  .hero { padding-top: 56px; }
  .hero-cta { margin-bottom: 48px; }
  section { padding: 80px 0; }
  .page { padding: 56px 0 80px; }
  .offer, .news-grid, .book-grid, .form-row, .guide, .steps {
    grid-template-columns: 1fr;
  }
  .offer { gap: 4px 0; }
  .offer-num { grid-column: 1; }
  .offer-side {
    grid-column: 1;
    text-align: left;
    align-items: flex-start;
    margin-top: 12px;
    min-width: 0;
  }
  .guide-side { align-items: flex-start; }
  .book-grid .form-card { border-left: 1px solid var(--navy); margin-left: 0; border-top: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 17px; }
  .brand-mark { height: 36px; }
}
