/* Insta US — newsprint catalogue, cobalt rules, flag-red folio marks. */
:root {
  --ink: #0f1c2e;
  --ink-soft: #2a3a50;
  --paper: #f4f0e6;
  --card: #fffdf8;
  --cobalt: #1a46a0;
  --cobalt-bright: #2f6fed;
  --flag: #b22234;
  --flag-deep: #8d1c2b;
  --line: #d8d0c2;
  --mist: #e6eef8;
  --dock: #0f1c2e;
  --shadow: 0 18px 40px rgba(15, 28, 46, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Public Sans", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 68ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(47, 111, 237, 0.08), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 0.16em; }
a:hover { color: var(--flag-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); margin: 0 0 0.45em; }
h3 { font-size: 1.25rem; margin: 0 0 0.35em; }
p { margin: 0 0 0.9em; }
.skip {
  position: absolute; left: 0.6rem; top: -3rem; background: var(--ink); color: white; padding: 0.4rem 0.7rem; z-index: 9;
}
.skip:focus { top: 0.6rem; }
.wrap { width: min(1180px, calc(100% - 2.4rem)); margin-inline: auto; }
.wrap-wide { width: min(1360px, calc(100% - 2rem)); margin-inline: auto; }

/* Masthead: centered lockup, not a side rail */
.mast {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 240, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mast-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
  padding: 0.7rem 1.2rem 0.35rem;
}
.kicker, .mast-mail {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  color: var(--ink-soft);
}
.mast-mail { text-align: right; }
.brand img { height: 68px; width: auto; }
.nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.15rem;
  padding: 0.35rem 1rem 0.7rem;
  border-top: 1px solid var(--line);
}
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  border-bottom: 2px solid transparent; padding: 0.2rem 0;
}
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--flag); color: var(--flag-deep); }

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 0;
  align-items: stretch;
  margin: 1.2rem auto 0;
  width: min(1360px, calc(100% - 2rem));
}
.hero-media {
  position: relative; min-height: 520px; overflow: clip; background: var(--ink);
}
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.hero-media video { display: none; }
.hero-copy {
  background: var(--card);
  padding: 2rem 1.6rem 1.6rem;
  border: 1px solid var(--line);
  border-left: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.hero-copy .folio {
  font-variant-numeric: tabular-nums;
  color: var(--flag);
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.weekboard {
  margin-top: -2.6rem;
  margin-left: 8%;
  background: var(--ink);
  color: #f4f7fb;
  padding: 1rem 1.1rem 0.4rem;
  width: min(420px, 92%);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.weekboard h2 { color: white; font-size: 1.45rem; }
.weekboard a { color: #d7e4ff; }
.weekboard ol { margin: 0; padding-left: 1.1rem; }
.weekboard li { margin: 0 0 0.45rem; }

.section { padding: 3.2rem 0; }
.section-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: end;
  border-top: 3px solid var(--ink); padding-top: 0.7rem; margin-bottom: 1.3rem;
}
.section-head p { margin: 0; max-width: 42ch; color: var(--ink-soft); }
.rule-flag { border-top-color: var(--flag); }

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 0.8rem;
}
.tile {
  position: relative; overflow: clip; background: var(--ink); color: white;
  display: block; text-decoration: none; min-height: 180px;
}
.tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0.88; }
.tile span {
  position: absolute; left: 0.8rem; bottom: 0.7rem; right: 0.8rem;
  font-family: var(--serif); font-size: 1.45rem; text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.tile:first-child { grid-row: span 2; }
.tile:nth-child(6) { grid-column: span 2; }

.rows { display: flex; flex-direction: column; gap: 1.4rem; }
.row {
  display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 1.2rem; align-items: center;
  background: var(--card); border: 1px solid var(--line);
}
.row:nth-child(even) { grid-template-columns: 1.2fr 0.9fr; }
.row:nth-child(even) .row-photo { order: 2; }
.row-photo { min-height: 240px; overflow: clip; }
.row-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.row-copy { padding: 1.1rem 1.2rem 1.2rem; }
.row-copy h3 { font-size: 1.7rem; }

.yard-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
.yard {
  display: grid; grid-template-columns: 140px 1fr; gap: 0.8rem; align-items: center;
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); padding-bottom: 0.8rem;
}
.yard img { width: 140px; height: 96px; object-fit: cover; }
.yard strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; display: block; }
.yard em { font-style: normal; color: var(--flag-deep); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

.dual-band {
  display: grid; grid-template-columns: 1.1fr 0.9fr; background: var(--card); border: 1px solid var(--line);
}
.dual-band figure { margin: 0; padding: 1.4rem; background:
  linear-gradient(180deg, #fff 0 48%, #0f1c2e 48% 100%);
  display: flex; align-items: center; justify-content: center;
}
.dual-band img { width: min(640px, 100%); height: auto; }
.dual-band .copy { padding: 1.6rem 1.5rem; }

.dockband {
  background: var(--dock); color: #f4f7fb; padding: 2.4rem 0 2.6rem;
}
.dockband .split { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: center; }
.dockband a { color: #d5e3ff; }
.dockband h2 { color: white; }

.card-grid {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; min-width: 0;
}
.card img { width: 100%; height: 190px; object-fit: cover; aspect-ratio: 16/10; }
.card .pad { padding: 0.85rem 0.9rem 1rem; }
.card h3 { font-size: 1.25rem; }
@container (max-width: 520px) {
  .card img { height: 160px; }
}

.leaf-hero {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 0; align-items: stretch;
  margin-top: 1rem;
}
.leaf-hero .media { position: relative; min-height: 380px; background: #d5dbe3; overflow: clip; }
.leaf-hero .media img, .leaf-hero .media video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.leaf-hero .media video { display: none; }
.spec {
  background: var(--card);
  border: 1px solid var(--line);
  margin-left: -3.2rem;
  margin-top: 2.2rem;
  margin-bottom: 1.4rem;
  padding: 1.1rem 1.15rem 0.4rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}
.spec dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flag-deep); }
.spec dd { margin: 0 0 0.7rem; font-family: var(--serif); font-size: 1.2rem; }
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin: 1rem 0 0.4rem; }
.crumbs a { color: var(--ink-soft); }
.prose { width: min(var(--measure), 100%); }
.prose h2 { margin-top: 1.4em; }
.check { padding-left: 1.1rem; }
.check li { margin: 0 0 0.35rem; }
.related { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0; list-style: none; }
.related a { font-weight: 700; }
.btn {
  display: inline-block; background: var(--flag); color: white; text-decoration: none;
  padding: 0.7rem 1rem; font-weight: 700; letter-spacing: 0.02em;
}
.btn:hover { background: var(--flag-deep); color: white; }
.btn.ink { background: var(--ink); }
.btn.ink:hover { background: var(--cobalt); }

.story-index { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1.4rem; }
.story-feature { display: grid; gap: 1rem; }
.feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0.8rem; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line);
}
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.feature div { padding: 0.9rem; }
.side-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.side-list a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.side-list span { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--flag-deep); }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.person { display: grid; grid-template-columns: 160px 1fr; gap: 0.8rem; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.person img { width: 160px; height: 200px; object-fit: cover; }
.person div { padding: 0.8rem 0.8rem 0.8rem 0; }

.site-footer {
  border-top: 3px solid var(--ink);
  padding: 2rem 1.2rem 7rem;
  background: #efeae0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; width: min(1180px, 100%); margin: 0 auto 1rem; }
.site-footer a { color: var(--ink); }
.fine { width: min(1180px, 100%); margin: 0 auto; }

.not-found { padding: 4rem 0 5rem; }

@media (max-width: 900px) {
  .mast-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .kicker, .mast-mail { text-align: center; margin-bottom: 0.2rem; }
  .brand img { height: 48px; }
  .hero, .leaf-hero, .dual-band, .story-index, .dockband .split, .team-grid, .yard-list, .foot-grid { grid-template-columns: 1fr; }
  .hero-copy { border-left: 1px solid var(--line); }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .tile:first-child, .tile:nth-child(6) { grid-row: auto; grid-column: auto; }
  .row, .row:nth-child(even) { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-photo { order: 0; }
  .spec { margin-left: 0; margin-top: -1.5rem; }
  .weekboard { margin-left: 4%; }
  .feature, .person, .yard { grid-template-columns: 1fr; }
  .person img, .yard img { width: 100%; height: 200px; }
  .hero-media { min-height: 320px; }
}
@media (max-width: 640px) {
  .mosaic, .card-grid { grid-template-columns: 1fr; }
}

@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  .hero-media video, .leaf-hero .media video { display: block; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 180ms ease both vt-out; }
  ::view-transition-new(root) { animation: 240ms ease both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-a { animation: rise both linear; animation-timeline: view(); animation-range: entry 0% entry 42%; }
    .reveal-b { animation: drift both linear; animation-timeline: view(); animation-range: entry 8% entry 58%; }
    .reveal-c { animation: soft both linear; animation-timeline: view(); animation-range: entry 0% entry 28%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes soft { from { opacity: 0; } to { opacity: 1; } }

.long-block { content-visibility: auto; contain-intrinsic-size: auto 480px; }

/* Homepage full-bleed hero override */
/* Homepage only: full-bleed hero. Old framed grid cannot win. */
body.home .mast {
  position: absolute !important;
  top: 0; left: 0; right: 0;
  z-index: 30 !important;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.78) 0%, rgba(8, 14, 24, 0.42) 72%, rgba(8, 14, 24, 0) 100%) !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
}
body.home .mast-top { padding: 0.45rem 1.1rem 0.15rem !important; align-items: center !important; }
body.home .kicker, body.home .mast-mail { color: #f4f0e6 !important; margin-bottom: 0.2rem !important; }
body.home .mast-mail a { color: #fff !important; }
body.home .brand {
  background: #f4f0e6 !important;
  display: inline-block !important;
  line-height: 0 !important;
  padding: 0.15rem 0.4rem !important;
}
body.home .brand img { height: 52px !important; width: auto !important; }
body.home .nav { border-top: 0 !important; padding: 0.15rem 0.8rem 0.45rem !important; }
body.home .nav a { color: #f7f4ee !important; text-shadow: 0 1px 2px rgba(0,0,0,0.45); }
body.home .nav a:hover, body.home .nav a[aria-current="page"] { color: #fff !important; border-bottom-color: #f0b4bc !important; }
body.home .hero {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  position: relative !important;
  border-radius: 0 !important;
  background: #0f1c2e !important;
}
body.home .hero-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
body.home .hero-media img, body.home .hero-media video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
body.home .hero-media::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(8,14,24,0.45) 0%, rgba(8,14,24,0.08) 28%, rgba(8,14,24,0.18) 58%, rgba(8,14,24,0.72) 100%),
    linear-gradient(90deg, rgba(8,14,24,0.78) 0%, rgba(8,14,24,0.5) 42%, rgba(8,14,24,0.12) 78%) !important;
}
body.home .hero-copy {
  position: relative !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  width: min(740px, calc(100% - 248px)) !important;
  max-width: calc(100% - 248px) !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #f7f4ee !important;
  padding: 6.2rem 1.15rem 6.4rem 1.35rem !important;
}
body.home .hero-copy .folio { color: #ffb3bc !important; margin: 0 0 0.35rem !important; }
body.home .hero-copy h1 {
  color: #fff !important;
  font-size: clamp(1.65rem, 2.7vw, 2.7rem) !important;
  line-height: 1.08 !important;
  margin: 0 0 0.28em !important;
  max-width: 18ch !important;
}
body.home .hero-copy .lede {
  color: #f3efe6 !important;
  font-size: 0.98rem !important;
  line-height: 1.35 !important;
  margin: 0 0 0.65rem !important;
  max-width: 54ch !important;
}
body.home .hero-copy p { margin-bottom: 0.55rem !important; }
body.home .hero-copy p:has(.btn) { margin: 0 0 0.85rem !important; position: relative !important; z-index: 4 !important; }
body.home .hero .btn { padding: 0.55rem 0.85rem !important; }
body.home .hero .btn.ink { background: #f4f0e6 !important; color: #0f1c2e !important; }
body.home .hero .btn.ink:hover { background: #fff !important; color: #0f1c2e !important; }
body.home .weekboard {
  margin: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 2 !important;
  padding: 0.7rem 0.9rem 0.45rem !important;
}
body.home .weekboard h2 { font-size: 1.2rem !important; margin: 0 0 0.3em !important; }
body.home .weekboard li { margin: 0 0 0.28rem !important; line-height: 1.35 !important; }
@media (max-height: 760px) {
  body.home .brand img { height: 44px !important; }
  body.home .mast-top { padding: 0.3rem 0.9rem 0.05rem !important; }
  body.home .kicker, body.home .mast-mail { font-size: 0.68rem !important; margin-bottom: 0.1rem !important; }
  body.home .nav { padding: 0.05rem 0.6rem 0.3rem !important; }
  body.home .nav a { font-size: 0.86rem !important; }
  body.home .hero-copy { padding: 5rem 1rem 6.15rem 1.15rem !important; }
  body.home .hero-copy h1 { font-size: 1.7rem !important; }
  body.home .hero-copy .lede { font-size: 0.9rem !important; margin-bottom: 0.4rem !important; }
  body.home .hero-copy p:has(.btn) { margin-bottom: 0.6rem !important; }
  body.home .weekboard { padding: 0.55rem 0.75rem 0.3rem !important; }
  body.home .weekboard h2 { font-size: 1.05rem !important; }
  body.home .weekboard li { font-size: 0.9rem !important; margin-bottom: 0.18rem !important; }
}
@media (max-height: 600px) {
  body.home .hero-copy { padding: 4.4rem 0.9rem 5.9rem 1rem !important; }
  body.home .hero-copy h1 { font-size: 1.45rem !important; max-width: 22ch !important; }
  body.home .hero-copy .lede { font-size: 0.82rem !important; line-height: 1.3 !important; margin-bottom: 0.3rem !important; }
  body.home .hero .btn { padding: 0.4rem 0.7rem !important; font-size: 0.9rem !important; }
  body.home .weekboard li { font-size: 0.82rem !important; }
  body.home .weekboard h2 { font-size: 0.98rem !important; }
}
@media (max-width: 900px) {
  body.home .hero { grid-template-columns: none !important; }
  body.home .hero-copy { border-left: 0 !important; width: min(740px, calc(100% - 248px)) !important; }
}
