:root {
  --ink: #181818;
  --muted: #5e5e5e;
  --surface: #f4f4f1;
  --surface-strong: #e8e8e3;
  --paper: #fcfcfa;
  --line: #c9c9c2;
  --focus: #1d4ed8;
  --page-gutter: clamp(1.125rem, 5vw, 2rem);
  --measure: 64ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell,
.header-inner,
.navigation-inner {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.menu-toggle {
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle:hover {
  background: var(--surface);
}

.ranch-navigation {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.navigation-inner {
  padding-block: 1rem 1.25rem;
}

.navigation-heading,
.card-room,
.status-note,
.section-heading {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.navigation-heading {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.room-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.4rem;
  list-style: none;
}

.room-link,
.room-preview {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.room-link {
  font-weight: 720;
}

.room-preview {
  color: var(--muted);
}

.status-note {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.arrival {
  padding-block: clamp(1.35rem, 5vw, 3.25rem) clamp(2.75rem, 8vw, 5.5rem);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-block: 0;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  max-width: 19ch;
  margin-bottom: clamp(1.75rem, 6vw, 3rem);
  font-size: clamp(1.65rem, 7vw, 2.25rem);
  font-weight: 720;
  letter-spacing: -0.025em;
}

.lead-card {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.lead-copy {
  padding-block: 1.1rem 1.4rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.7rem;
}

.card-room {
  color: var(--ink);
}

.story-card.lead-card h2 {
  max-width: 18ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 8vw, 3.65rem);
  letter-spacing: -0.035em;
}

.standfirst {
  max-width: var(--measure);
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 3.8vw, 1.14rem);
}

.editorial-spine {
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.editorial-section {
  padding-block: clamp(2.6rem, 8vw, 5.75rem);
  border-top: 1px solid var(--ink);
}

.section-heading {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--muted);
}

.story-grid,
.story-pair,
.mixed-run {
  display: grid;
}

.story-grid,
.story-pair {
  gap: clamp(1.75rem, 5vw, 3.5rem);
}

.mixed-run {
  gap: clamp(3.25rem, 9vw, 7rem);
  padding-block: clamp(0.75rem, 3vw, 2rem) clamp(4.5rem, 11vw, 8rem);
}

.story-card {
  min-width: 0;
  padding-top: 0.9rem;
  border-top: 3px solid var(--surface-strong);
  scroll-margin-top: 6.5rem;
}

.story-card h2,
.story-card h3 {
  max-width: 23ch;
  margin-bottom: 0.7rem;
  font-size: clamp(1.45rem, 5.8vw, 2.15rem);
  letter-spacing: -0.03em;
}

.story-card .standfirst {
  font-size: 1rem;
}

.story-card--compact h2,
.story-card--compact h3 {
  max-width: 26ch;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
}

.story-card--compact .standfirst {
  display: none;
}

.deep-cut {
  padding-top: clamp(4rem, 12vw, 9rem);
  border-top-width: 2px;
}

.deep-cut .section-heading {
  color: var(--ink);
}

.deep-cut .story-card {
  border-top-color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .page-shell {
  display: flex;
  min-height: 6rem;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-weight: 760;
}

[hidden] {
  display: none !important;
}

@media (min-width: 36rem) {
  .room-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-link,
  .room-preview {
    padding-right: 0.5rem;
  }
}

@media (min-width: 47.5rem) {
  .arrival-grid > h1 {
    max-width: 24ch;
  }

  .story-card.lead-card h2 {
    max-width: 17ch;
  }

  .new-around-grid,
  .story-pair,
  .deep-cut-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .new-around-grid .story-card:first-child {
    grid-column: 1 / span 9;
  }

  .new-around-grid .story-card:last-child {
    grid-column: 5 / -1;
  }

  .story-pair .story-card:first-child {
    grid-column: 1 / span 7;
  }

  .story-pair .story-card:last-child {
    grid-column: 8 / -1;
  }

  .story-pair--reverse .story-card:first-child {
    grid-column: 1 / span 5;
  }

  .story-pair--reverse .story-card:last-child {
    grid-column: 6 / -1;
  }

  .deep-cut-grid .story-card {
    grid-column: 3 / span 9;
  }
}

@media (min-width: 64rem) {
  .room-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .arrival-grid {
    display: grid;
    grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr);
    align-items: end;
    gap: clamp(3rem, 7vw, 6.5rem);
  }

  .arrival-grid > h1 {
    max-width: 17ch;
    margin-bottom: 0;
    font-size: clamp(2.25rem, 3.3vw, 3rem);
  }

  .story-card.lead-card h2 {
    font-size: clamp(3rem, 4.5vw, 4.15rem);
  }

  .new-around-grid .story-card:first-child {
    grid-column: 1 / span 7;
    grid-row: 1;
  }

  .new-around-grid .story-card:last-child {
    grid-column: 8 / -1;
    grid-row: 1;
  }

  .deep-cut {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1.75rem, 5vw, 3.5rem);
  }

  .deep-cut .section-heading {
    grid-column: 1 / span 3;
    margin-bottom: 0;
  }

  .deep-cut-grid {
    grid-column: 5 / -1;
  }

  .deep-cut-grid .story-card {
    grid-column: 1 / -1;
  }
}

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


/* CMI-002 / CMI-003 source-locked masthead and navigation */
@font-face {
  font-family: "RRR Open Ranch Slab";
  src: url("assets/fonts/RRR-Open-Ranch-Slab-Black.woff2") format("woff2");
  font-display: swap;
}

body.menu-is-open {
  overflow: hidden;
}

.site-header {
  --masthead-aspect: 1352 / 320;
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 0;
  aspect-ratio: var(--masthead-aspect);
  border-bottom: 0;
  background-color: #160805;
  background-image: url("assets/images/RRR_Masthead_Mobile_Portrait_FOUNDER_SELECTED_2026-09-04.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #fff;
}

.header-inner {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100%;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
}

.wordmark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  min-height: 0;
}

.menu-toggle {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(3.5rem, 12vw, 4.75rem);
  min-width: 3.5rem;
  min-height: 3.5rem;
  height: min(100%, 4.75rem);
  place-items: center;
  margin-right: max(0.25rem, env(safe-area-inset-right));
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle:hover {
  background: transparent;
}

.menu-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.menu-toggle::before,
.menu-toggle::after {
  position: absolute;
  width: 1.65rem;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  content: "";
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.menu-toggle::before {
  box-shadow: 0 -0.5rem 0 #fff, 0 0.5rem 0 #fff;
}

.menu-toggle::after {
  transform: scaleX(0);
}

.menu-toggle.is-open::before {
  box-shadow: none;
  transform: rotate(45deg);
}

.menu-toggle.is-open::after {
  transform: rotate(-45deg);
}

.ranch-navigation {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  border: 0;
  background: transparent;
  color: #fff;
}

.navigation-underlay {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.navigation-panel {
  grid-area: 1 / 1;
  min-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #180804;
  background-image: url("assets/images/RRR_Menu_Timber_Master_3000x5000_FOUNDER_SELECTED_2026-09-03.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.navigation-inner {
  display: flex;
  min-height: 100dvh;
  align-items: flex-start;
  padding-top: clamp(9rem, 25vh, 13rem);
  padding-bottom: 3rem;
}

.room-list {
  display: flex;
  width: min(100%, 30rem);
  flex-direction: column;
  margin: 0;
  padding: 0;
  gap: clamp(0.75rem, 2.5vh, 1.25rem);
  list-style: none;
}

.room-link {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  padding: 0.15rem 0;
  border: 0;
  color: #fff;
  font-family: "RRR Open Ranch Slab", serif;
  font-size: clamp(1.55rem, 7vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.08;
  text-decoration: none;
  text-transform: uppercase;
}

.room-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Founder-selected masthead family: full compositions, never cover-cropped. */
@media (orientation: landscape) and (max-height: 34rem) {
  .site-header {
    --masthead-aspect: 2915 / 320;
    background-image: url("assets/images/RRR_Masthead_Mobile_Landscape_FOUNDER_SELECTED_2026-09-04.png");
  }
}

@media (min-width: 47.5rem) and (orientation: portrait) {
  .site-header {
    --masthead-aspect: 2649 / 389;
    background-image: url("assets/images/RRR_Masthead_Tablet_Portrait_FOUNDER_SELECTED_2026-09-04.png");
  }
}

@media (min-width: 47.5rem) and (orientation: landscape) and (min-height: 34.0625rem) and (max-width: 74.9375rem) {
  .site-header {
    --masthead-aspect: 3529 / 389;
    background-image: url("assets/images/RRR_Masthead_Tablet_Landscape_FOUNDER_SELECTED_2026-09-04.png");
  }
}

@media (min-width: 75rem) {
  .site-header {
    --masthead-aspect: 8809 / 426;
    background-image: url("assets/images/RRR_Masthead_Desktop_FOUNDER_SELECTED_2026-09-04.png");
  }
}

/* Preserve the proven full-screen/drawer model while recognising phone landscape. */
@media (min-width: 47.5rem) and (min-height: 34.0625rem) {
  .ranch-navigation {
    grid-template-columns: 1fr minmax(20rem, 520px);
  }

  .navigation-underlay {
    background: rgb(0 0 0 / 0.56);
  }

  .navigation-panel {
    grid-column: 2;
    background-size: auto 100%;
  }

  .navigation-inner {
    min-height: 100dvh;
    padding-top: clamp(9rem, 19vh, 12rem);
    padding-inline: clamp(2rem, 4vw, 3.5rem);
  }

  .room-list {
    width: 100%;
    gap: clamp(0.9rem, 2.2vh, 1.3rem);
  }

  .room-link {
    min-height: 3.3rem;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle::before,
  .menu-toggle::after {
    transition: none;
  }
}

/* Story Family Responsive Proof 002 — source-locked implementation */
.story-card {
  --story-red: #8c1d1d;
  min-width: 0;
  padding: 0;
  border-top: 2px solid #201c19;
  background: #fff;
  color: #201c19;
}

.story-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.story-card-link:hover h2,
.story-card-link:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.11em;
}

.story-copy {
  min-width: 0;
}

.story-media {
  display: block;
  overflow: hidden;
  margin: 0;
  background: #ede7e2;
}

.story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-media figcaption {
  display: none;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.8rem;
}

.card-room,
.card-context {
  margin: 0;
  color: var(--story-red);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.card-context {
  color: #756b64;
}

.story-card h2,
.story-card h3 {
  max-width: none;
  margin: 0;
  font-family: "RRR Open Ranch Slab", Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

.story-card .standfirst {
  max-width: 41em;
  margin: 1rem 0 0;
  color: #504843;
  font-size: 0.95rem;
  line-height: 1.52;
}

.story-card--lead .story-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17.5rem, 0.9fr);
}

.story-card--lead .story-media {
  min-height: 31.875rem;
}

.story-card--lead .story-media img {
  object-position: 52% center;
}

.story-card--lead .story-copy {
  align-self: end;
  padding: 2.125rem 0 2.4rem 2.125rem;
}

.story-card--lead h2,
.story-card--lead h3 {
  font-size: clamp(2.125rem, 3.65vw, 3.625rem);
}

.story-card--standard .story-media {
  height: clamp(13.625rem, 22vw, 20.125rem);
}

.story-card--standard .story-copy {
  padding: 1.3rem 0 0.4rem;
}

.story-card--standard h2,
.story-card--standard h3 {
  font-size: clamp(1.7rem, 2.35vw, 2.5rem);
  line-height: 1.01;
}

.story-card--intentional_no_image {
  border-bottom: 1px solid #d8d0ca;
}

.story-card--standard.story-card--intentional_no_image .story-copy {
  max-width: 54.375rem;
  padding: 2.3rem 0 2.7rem;
}

.story-card--standard.story-card--intentional_no_image h2,
.story-card--standard.story-card--intentional_no_image h3 {
  font-size: clamp(1.95rem, 3.15vw, 3.25rem);
}

.story-card--compact {
  padding-top: 0.875rem;
  border-top-width: 1px;
}

.story-card--compact.story-card--approved_media .story-card-link {
  display: grid;
  grid-template-columns: 7.125rem minmax(0, 1fr);
  gap: 1rem;
}

.story-card--compact .story-media {
  height: 6.5rem;
}

.story-card--compact h2,
.story-card--compact h3 {
  font-size: 1.44rem;
  line-height: 1.04;
}

.story-card--compact .card-meta {
  margin-bottom: 0.5rem;
}

.story-card--compact .standfirst {
  display: none;
}

@media (max-width: 56.25rem) {
  .story-card--lead .story-media {
    min-height: 26.875rem;
  }

  .story-card--lead .story-copy {
    padding: 1.75rem 0 2rem 1.75rem;
  }

  .story-card--compact.story-card--approved_media .story-card-link {
    grid-template-columns: 10.625rem minmax(0, 1fr);
  }

  .story-card--compact .story-media {
    height: 8rem;
  }
}

@media (max-width: 35rem) {
  .story-card--lead .story-card-link {
    display: flex;
    flex-direction: column;
  }

  .story-card--lead .story-media {
    order: 0;
    min-height: 0;
    height: 15.9375rem;
  }

  .story-card--lead .story-copy {
    order: 1;
    padding: 1.375rem 0 0.6rem;
  }

  .story-card--lead h2,
  .story-card--lead h3 {
    font-size: 2.5rem;
  }

  .story-card--standard .story-media {
    height: 13.875rem;
  }

  .story-card--standard .story-copy {
    padding-top: 1.05rem;
  }

  .story-card--standard h2,
  .story-card--standard h3 {
    font-size: 2.05rem;
  }

  .story-card--standard.story-card--intentional_no_image .story-copy {
    padding: 1.8rem 0 2.05rem;
  }

  .story-card--standard.story-card--intentional_no_image h2,
  .story-card--standard.story-card--intentional_no_image h3 {
    font-size: 2.125rem;
  }

  .story-card--compact.story-card--approved_media .story-card-link {
    display: block;
  }

  .story-card--compact .story-media {
    display: none;
  }

  .story-card--compact h2,
  .story-card--compact h3 {
    font-size: 1.5rem;
  }
}



/* Front Gate Editorial Feed Proof 001 — founder amendment: full editorial cards */
.front-gate-feed {
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(4rem, 10vw, 8rem);
  background: #fff;
}

.front-gate-feed-list {
  display: grid;
  gap: clamp(2.75rem, 7vw, 6.5rem);
}

.front-gate-feed-list > .story-card--lead {
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
}

@media (min-width: 47.5rem) {
  .front-gate-feed-list {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3.5vw, 3.5rem);
    row-gap: clamp(3.5rem, 7vw, 7.5rem);
  }

  .front-gate-feed-list > .story-card--lead {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .front-gate-feed-list > :nth-child(2) {
    grid-column: 1 / span 6;
    grid-row: 2;
  }

  .front-gate-feed-list > :nth-child(3) {
    grid-column: 7 / -1;
    grid-row: 2;
  }

  .front-gate-feed-list > :nth-child(4) {
    grid-column: 1 / span 5;
    grid-row: 3;
  }

  .front-gate-feed-list > :nth-child(5) {
    grid-column: 6 / -1;
    grid-row: 3;
  }

  .front-gate-feed-list > :nth-child(6) {
    grid-column: 1 / span 5;
    grid-row: 4;
  }

  .front-gate-feed-list > :nth-child(7) {
    grid-column: 6 / -1;
    grid-row: 4;
  }

  .front-gate-feed-list > :nth-child(8) {
    grid-column: 2 / span 10;
    grid-row: 5;
  }
}

@media (min-width: 75rem) {
  .front-gate-feed {
    padding-top: clamp(2.25rem, 4vw, 4.5rem);
  }

  .front-gate-feed-list {
    row-gap: clamp(4.5rem, 8vw, 9rem);
  }

  .front-gate-feed-list > :nth-child(4) {
    grid-column: 1 / span 5;
  }

  .front-gate-feed-list > :nth-child(5) {
    grid-column: 7 / -1;
  }

  .front-gate-feed-list > :nth-child(6) {
    grid-column: 1 / span 4;
  }

  .front-gate-feed-list > :nth-child(7) {
    grid-column: 6 / -1;
  }

  .front-gate-feed-list > :nth-child(8) {
    grid-column: 3 / span 8;
  }
}

