/* Rook & River Plumbing Co. — mobile-first fiction demo */
:root {
  --rr-ink: #0f1824;
  --rr-ink-mid: #1a2838;
  --rr-river: #152433;
  --rr-ivory: #f4efe4;
  --rr-ivory-deep: #e8e0d2;
  --rr-panel: #ebe3d6;
  --rr-white: #faf7f2;
  --rr-copper: #b8734a;
  --rr-copper-light: #d4a574;
  --rr-teal: #3a8585;
  --rr-teal-soft: #5a9e9e;
  --rr-text: #1a222c;
  --rr-mute: #4a5560;
  --rr-rule: #c9bfb0;
  --rr-focus: #3a8585;
  --rr-max: 76rem;
  --rr-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --rr-sans: system-ui, "Segoe UI", sans-serif;
  --rr-radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--rr-ivory);
  color: var(--rr-text);
  font: 1.0625rem/1.65 var(--rr-sans);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rr-ink-mid); }

a:focus-visible, button:focus-visible, summary:focus-visible,
.rr-cta:focus-visible {
  outline: 3px solid var(--rr-focus);
  outline-offset: 3px;
}

.rr-skip {
  position: absolute; left: 1rem; top: 1rem;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.rr-skip:focus {
  width: auto; height: auto; clip: auto; z-index: 100;
  background: var(--rr-teal); color: var(--rr-ivory);
  padding: 0.75rem 1rem; min-height: 44px;
  display: inline-flex; align-items: center;
  font-weight: 700;
}

.rr-utility {
  background: var(--rr-ink);
  color: var(--rr-ivory);
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-align: center; padding: 0.55rem 1rem;
  margin: 0;
  border-bottom: 2px solid var(--rr-copper);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 11px,
    rgba(244, 239, 228, 0.06) 11px,
    rgba(244, 239, 228, 0.06) 12px
  );
}

.rr-masthead {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.25rem 0.9rem;
  background: var(--rr-ivory);
  border-bottom: 1px solid var(--rr-ink);
  max-width: var(--rr-max);
  margin: 0 auto;
  position: relative;
}
.rr-masthead::after {
  content: "";
  grid-column: 1 / -1;
  height: 6px;
  margin-top: 0.1rem;
  background:
    linear-gradient(90deg, var(--rr-copper) 0 18%, transparent 18% 22%, var(--rr-teal) 22% 24%, transparent 24%),
    repeating-linear-gradient(90deg, var(--rr-ink) 0 8px, transparent 8px 14px);
  opacity: 0.85;
}

.rr-brand {
  font-family: var(--rr-display);
  font-size: clamp(1.45rem, 4.8vw, 2.15rem);
  font-weight: 700;
  text-decoration: none;
  color: var(--rr-ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.rr-brand span {
  display: block;
  font-size: 0.46em;
  font-weight: 600;
  font-family: var(--rr-sans);
  color: var(--rr-copper);
  letter-spacing: 0.32em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.rr-nav-wrap { width: 100%; }

.rr-nav-mobile summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--rr-ink);
  background: var(--rr-river);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--rr-ivory);
}
.rr-nav-mobile summary::-webkit-details-marker { display: none; }
.rr-nav-mobile[open] summary { border-bottom: none; }

.rr-nav-mobile__bars {
  width: 1.35rem; height: 2px; background: var(--rr-copper-light);
  box-shadow: 0 6px 0 var(--rr-teal-soft), 0 -6px 0 var(--rr-ivory);
}

.rr-nav-mobile__close { display: none; }
.rr-nav-mobile[open] .rr-nav-mobile__open { display: none; }
.rr-nav-mobile[open] .rr-nav-mobile__close { display: inline; }

.rr-drawer {
  display: grid;
  gap: 0;
  border: 2px solid var(--rr-ink);
  border-top: none;
  background: var(--rr-white);
}
.rr-drawer a {
  text-decoration: none;
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--rr-rule);
  color: var(--rr-text);
}
.rr-drawer a:last-child { border-bottom: none; }
.rr-drawer a:hover { background: var(--rr-panel); }

.rr-desktop-nav { display: none; }

.rr-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--rr-copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.rr-page {
  max-width: var(--rr-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.rr-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rr-teal);
  margin: 0 0 0.5rem;
  font-family: var(--rr-sans);
}

.rr-pipe-rule {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.rr-pipe-rule span {
  display: block;
  height: 3px;
  flex: 1;
  background: var(--rr-ink);
  opacity: 0.35;
  position: relative;
}
.rr-pipe-rule span:nth-child(2) { flex: 0.6; background: var(--rr-copper); opacity: 0.7; }
.rr-pipe-rule span:nth-child(4) { flex: 0.45; background: var(--rr-teal); opacity: 0.65; }
.rr-pipe-rule span::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--rr-ink);
  border-radius: 50%;
  background: var(--rr-ivory);
}

.rr-lede {
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--rr-mute);
  max-width: 40rem;
}

h1, h2, h3 {
  font-family: var(--rr-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--rr-ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.05rem, 7vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.95rem); }
h3 { font-size: 1.05rem; font-family: var(--rr-sans); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rr-ink-mid); }

.rr-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.rr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  background: var(--rr-ink);
  color: var(--rr-ivory);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--rr-ink);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  font-family: var(--rr-sans);
}
.rr-cta--ghost {
  background: transparent;
  color: var(--rr-ink);
}
.rr-cta--copper {
  background: var(--rr-copper);
  border-color: var(--rr-copper);
  color: var(--rr-ivory);
}
.rr-cta--teal {
  background: var(--rr-teal);
  border-color: var(--rr-teal);
  color: var(--rr-ivory);
}

.rr-hero-home {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rr-rule);
}

.rr-hero-home__visual { position: relative; }

.rr-hero-home__figure {
  margin: 0;
  border: 1px solid var(--rr-ink);
  overflow: hidden;
  position: relative;
  transform: translateX(0.35rem);
}
.rr-hero-home__figure::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--rr-copper), var(--rr-teal));
  z-index: 2;
  pointer-events: none;
}
.rr-hero-home__figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 52% 42%;
}

.rr-hero-home__tick {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--rr-ink);
  color: var(--rr-ivory);
  font-size: 0.95rem;
  max-width: 26rem;
  border-left: 4px solid var(--rr-teal);
}

.rr-band {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rr-rule);
}

.rr-band--flow {
  background:
    linear-gradient(135deg, var(--rr-panel) 0%, var(--rr-ivory) 55%);
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 3px solid var(--rr-copper);
}

.rr-band--inset {
  padding: 1.35rem 1.2rem;
  background: var(--rr-white);
  border: 1px solid var(--rr-ink);
  box-shadow: 4px 4px 0 var(--rr-ivory-deep);
}

.rr-path-rail {
  display: grid;
  gap: 0;
  margin-top: 1.25rem;
  border: 1px solid var(--rr-ink);
}

.rr-path-card {
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--rr-white);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  display: block;
  border-bottom: 1px solid var(--rr-ink);
  position: relative;
  padding-left: 1.35rem;
}
.rr-path-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--rr-teal);
}
.rr-path-card:last-child { border-bottom: none; }
.rr-path-card:hover { background: var(--rr-panel); }
.rr-path-card h3 { margin-bottom: 0.35rem; }
.rr-path-card p { margin: 0; color: var(--rr-mute); font-size: 0.98rem; text-transform: none; font-weight: 400; font-family: var(--rr-sans); letter-spacing: 0; }

.rr-photo-card {
  margin: 0;
  border: 1px solid var(--rr-ink);
  overflow: hidden;
  background: var(--rr-ink);
}

.rr-crop { overflow: hidden; background: var(--rr-ink); }
.rr-crop img { width: 100%; object-fit: cover; }
.rr-crop--sink-tall img { aspect-ratio: 4 / 5; object-position: 48% 40%; }
.rr-crop--sink-wide img { aspect-ratio: 16 / 10; object-position: 50% 45%; }
.rr-crop--fixture-hero img { aspect-ratio: 3 / 4; object-position: 55% 35%; }
.rr-crop--fixture-wide img { aspect-ratio: 16 / 9; object-position: 50% 40%; }
.rr-crop--heater-tall img { aspect-ratio: 4 / 5; object-position: 52% 38%; }
.rr-crop--heater-wide img { aspect-ratio: 16 / 10; object-position: 48% 42%; }

.rr-split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.rr-editorial-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.rr-flow-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}
.rr-flow-list li {
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 1px solid var(--rr-rule);
  background: var(--rr-white);
  position: relative;
  color: var(--rr-mute);
}
.rr-flow-list li::before {
  content: attr(data-step);
  position: absolute;
  left: 0.85rem;
  top: 0.8rem;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--rr-copper);
  font-family: var(--rr-sans);
}

.rr-title-block {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rr-ink);
  margin-bottom: 0.5rem;
}

.rr-map-line {
  height: 1px;
  margin: 1.5rem 0;
  background:
    repeating-linear-gradient(90deg, var(--rr-ink) 0 6px, transparent 6px 12px),
    linear-gradient(90deg, transparent, var(--rr-teal) 40%, var(--rr-copper) 60%, transparent);
  opacity: 0.5;
}

.rr-faq {
  border: 1px solid var(--rr-ink);
  padding: 0.75rem 1rem;
  background: var(--rr-white);
  margin-top: 0.65rem;
}
.rr-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--rr-sans);
}
.rr-faq p { margin: 0.65rem 0 0; color: var(--rr-mute); }

.rr-footer {
  max-width: var(--rr-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 3px solid var(--rr-copper);
  background: var(--rr-ink);
  color: var(--rr-ivory);
}
.rr-disclosure {
  font-size: 0.92rem;
  color: var(--rr-ivory);
  margin: 0 0 1.25rem;
  font-weight: 700;
}
.rr-footer-nav__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rr-copper-light);
  margin: 0 0 0.5rem;
  font-weight: 800;
}
.rr-footer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.rr-footer-nav a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--rr-ivory);
  font-weight: 600;
}
.rr-footer-nav a:hover { color: var(--rr-teal-soft); }

.rr-colophon {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  color: rgba(244, 239, 228, 0.7);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-family: var(--rr-display);
}

@media (min-width: 720px) {
  .rr-nav-mobile { display: none; }
  .rr-desktop-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    align-items: center;
    justify-content: flex-end;
  }
  .rr-desktop-nav a {
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.45rem 0.05rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rr-text);
  }
  .rr-masthead {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .rr-path-rail--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-path-rail--quad .rr-path-card:nth-child(odd) { border-right: 1px solid var(--rr-ink); }
  .rr-split { grid-template-columns: 1fr 1fr; }
  .rr-editorial-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .rr-editorial-grid--flip > *:first-child { order: 2; }
  .rr-hero-home {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
    gap: 2.25rem;
  }
  .rr-hero-home__figure { transform: translateX(1rem); }
  .rr-hero-home__figure img { aspect-ratio: 4 / 5; }
  .rr-footer-nav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1rem; }
  .rr-band--flow {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .rr-page { padding: 2rem 2rem 3.5rem; }
  .rr-path-rail--quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rr-path-rail--quad .rr-path-card { border-bottom: none; }
  .rr-path-rail--quad .rr-path-card:not(:last-child) { border-right: 1px solid var(--rr-ink); }
}
