/* Morrow & Relic — mobile-first fiction demo */
:root {
  --mr-ivory: #f3ece0;
  --mr-paper: #faf6ee;
  --mr-panel: #ffffff;
  --mr-ink: #1a1420;
  --mr-walnut: #3d2a3e;
  --mr-stone: #8a8578;
  --mr-mute: #4a443c;
  --mr-terracotta: #b8943a;
  --mr-sage: #5c6348;
  --mr-linen: #ebe3d4;
  --mr-rule: #d5cbc0;
  --mr-focus: #b8943a;
  --mr-max: 76rem;
  --mr-serif: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mr-sans: system-ui, "Segoe UI", sans-serif;
}

*, *::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(--mr-ivory);
  color: var(--mr-ink);
  font: 1.0625rem/1.7 var(--mr-sans);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--mr-walnut); }

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

.mr-skip {
  position: absolute; left: 1rem; top: 1rem;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.mr-skip:focus {
  width: auto; height: auto; clip: auto; z-index: 100;
  background: #fff; padding: 0.75rem 1rem; min-height: 44px;
  display: inline-flex; align-items: center;
}

.mr-utility {
  background: var(--mr-walnut);
  color: var(--mr-linen);
  font-size: 0.6875rem; font-weight: 650;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; padding: 0.55rem 1rem;
  margin: 0;
}

.mr-masthead {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.85rem;
  background: var(--mr-paper);
  border-bottom: 1px solid var(--mr-rule);
  max-width: var(--mr-max);
  margin: 0 auto;
}

.mr-brand {
  font-family: var(--mr-serif);
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--mr-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.mr-brand span {
  display: block;
  font-size: 0.72em;
  font-weight: 500;
  color: var(--mr-stone);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

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

.mr-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: 1px solid var(--mr-rule);
  background: var(--mr-panel);
  font-weight: 600;
  color: var(--mr-ink);
}
.mr-nav-mobile summary::-webkit-details-marker { display: none; }
.mr-nav-mobile[open] summary { border-bottom-color: transparent; }

.mr-nav-mobile__bars {
  width: 1.25rem; height: 2px; background: var(--mr-ink);
  box-shadow: 0 6px 0 var(--mr-ink), 0 -6px 0 var(--mr-ink);
}

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

.mr-drawer {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 0.85rem 1rem;
  border: 1px solid var(--mr-rule);
  border-top: none;
  background: var(--mr-panel);
}
.mr-drawer a {
  text-decoration: none;
  padding: 0.65rem 0.25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 550;
  border-bottom: 1px solid var(--mr-rule);
}
.mr-drawer a:last-child { border-bottom: none; }

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

.mr-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--mr-terracotta);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.32em;
}

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

.mr-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mr-terracotta);
  margin: 0 0 0.5rem;
}

.mr-lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--mr-mute);
  max-width: 38rem;
}

h1, h2, h3 {
  font-family: var(--mr-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--mr-ink);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 4.5vw, 2.15rem); }
h3 { font-size: 1.2rem; }

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

.mr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  background: var(--mr-terracotta);
  color: var(--mr-paper);
  font-weight: 650;
  text-decoration: none;
  border: 2px solid var(--mr-terracotta);
}
.mr-cta--ghost {
  background: transparent;
  color: var(--mr-walnut);
  border-color: var(--mr-walnut);
}

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

.mr-hero-home__visual {
  position: relative;
  border-left: 6px solid var(--mr-terracotta);
  padding-left: 1rem;
}

.mr-hero-home__figure {
  margin: 0;
  background: var(--mr-panel);
  box-shadow: 0 24px 48px rgba(28, 24, 20, 0.08);
  overflow: hidden;
}
.mr-hero-home__figure img {
  display: block;
  width: 100%;
  height: auto;
}
.mr-hero-home__figure--photo img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 46%;
}

.mr-hero-home__aside {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--mr-walnut);
  color: var(--mr-linen);
  font-size: 0.98rem;
  max-width: 22rem;
}

.mr-material-rule {
  margin: 1.5rem 0 0;
  opacity: 0.95;
}

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

.mr-band--inset {
  padding: 1.5rem 1.25rem;
  background: var(--mr-paper);
  border: 1px solid var(--mr-rule);
  border-top: 4px solid var(--mr-sage);
}

.mr-path-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.mr-path-card {
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--mr-panel);
  border: 1px solid var(--mr-rule);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  display: block;
  transition: border-color 0.15s ease;
}
.mr-path-card:hover { border-color: var(--mr-terracotta); }
.mr-path-card h3 { margin-bottom: 0.35rem; color: var(--mr-walnut); }
.mr-path-card p { margin: 0; color: var(--mr-mute); font-size: 0.98rem; }

.mr-room-strip {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.mr-room-card {
  margin: 0;
  background: var(--mr-panel);
  border: 1px solid var(--mr-rule);
}
.mr-room-card img { width: 100%; }
.mr-room-card figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.95rem;
  color: var(--mr-mute);
  border-top: 1px solid var(--mr-rule);
}

.mr-notice {
  font-size: 0.92rem;
  color: var(--mr-stone);
  border-left: 3px solid var(--mr-sage);
  padding-left: 0.85rem;
  margin: 1rem 0 0;
}

.mr-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.mr-swatch {
  padding: 0.85rem;
  border: 1px solid var(--mr-rule);
  background: var(--mr-panel);
  min-height: 44px;
}
.mr-swatch strong { display: block; font-family: var(--mr-serif); color: var(--mr-walnut); }
.mr-swatch span { font-size: 0.9rem; color: var(--mr-mute); }

.mr-steps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}

.mr-steps li {
  padding: 1rem 1rem 1rem 3.25rem;
  position: relative;
  background: var(--mr-paper);
  border: 1px solid var(--mr-rule);
}
.mr-steps li::before {
  content: attr(data-step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-family: var(--mr-serif);
  font-weight: 700;
  color: var(--mr-terracotta);
}

.mr-faq details {
  border: 1px solid var(--mr-rule);
  background: var(--mr-panel);
  margin-top: 0.65rem;
}
.mr-faq summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  min-height: 44px;
  font-weight: 600;
  list-style: none;
}
.mr-faq summary::-webkit-details-marker { display: none; }
.mr-faq details[open] summary { border-bottom: 1px solid var(--mr-rule); }
.mr-faq details p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--mr-mute);
}

.mr-page-title-bar {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--mr-rule);
}

.mr-photo-ref {
  margin: 1.25rem 0 0;
  border: 1px solid var(--mr-rule);
  background: var(--mr-panel);
  overflow: hidden;
}
.mr-photo-ref img {
  display: block;
  width: 100%;
  height: auto;
}
.mr-photo-ref--living-crop img {
  aspect-ratio: 16 / 10;
  max-height: min(72vh, 520px);
  object-fit: cover;
  object-position: 72% 38%;
}
.mr-photo-ref figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--mr-stone);
  border-top: 1px solid var(--mr-rule);
}

.mr-demo-form {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px dashed var(--mr-stone);
  background: var(--mr-paper);
  opacity: 0.92;
}
.mr-demo-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.mr-demo-form input,
.mr-demo-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--mr-rule);
  background: #eee8e0;
  color: var(--mr-stone);
  font: inherit;
}
.mr-demo-form textarea { min-height: 120px; resize: vertical; }
.mr-demo-form button {
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--mr-stone);
  background: var(--mr-stone);
  color: var(--mr-paper);
  font-weight: 650;
  cursor: not-allowed;
  opacity: 0.75;
}

.mr-form-note {
  font-size: 0.92rem;
  color: var(--mr-mute);
  max-width: 36rem;
}

.mr-contact-fields {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.mr-contact-fields li {
  padding: 0.75rem 1rem;
  background: var(--mr-panel);
  border: 1px solid var(--mr-rule);
}

.mr-footer {
  max-width: var(--mr-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--mr-rule);
  background: var(--mr-walnut);
  color: var(--mr-linen);
}
.mr-footer a { color: var(--mr-linen); }

.mr-disclosure {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 42rem;
  color: #e8dfd4;
  margin: 0 0 1.25rem;
}

.mr-footer-nav__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #c9bfb3;
}

.mr-footer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.mr-footer-nav__list a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mr-colophon {
  margin: 0;
  font-size: 0.85rem;
  color: #c9bfb3;
}

.mr-two-col {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .mr-masthead {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 1.25rem 2rem 1rem;
  }

  .mr-nav-mobile { display: none; }

  .mr-desktop-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    justify-content: flex-end;
    align-items: center;
  }
  .mr-desktop-nav a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.5rem 0.15rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .mr-page { padding: 2rem 2rem 4rem; }

  .mr-hero-home {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }

  .mr-hero-home__visual { padding-left: 1.5rem; }

  .mr-path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mr-room-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mr-swatches {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mr-two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .mr-room-strip--gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mr-room-strip--gallery figure:nth-child(1) {
    grid-row: span 2;
  }
}

:root {
  --mr-ochre: #b8943a;
  --mr-aubergine: #3d2a3e;
}

.mr-cat-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.25rem;
}

.mr-cat-card {
  display: grid;
  gap: 0;
  background: var(--mr-panel);
  border: 1px solid var(--mr-rule);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.mr-cat-card:hover { border-color: var(--mr-ochre); }

.mr-cat-card__media {
  margin: 0;
  overflow: hidden;
  background: var(--mr-ecru);
}
.mr-cat-card__media img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.mr-cat-card__media--tall img { aspect-ratio: 4 / 5; object-position: 58% 35%; }
.mr-cat-card__media--wide img { aspect-ratio: 5 / 3; object-position: 48% 42%; }
.mr-cat-card__media--chair img { aspect-ratio: 3 / 4; object-position: 66% 30%; }

.mr-cat-card__body { padding: 1rem 1.1rem 1.15rem; }
.mr-cat-card__body h3 { color: var(--mr-aubergine); margin-bottom: 0.35rem; }
.mr-cat-card__body p { margin: 0; font-size: 0.98rem; color: var(--mr-mute); }

.mr-editorial-figure {
  margin: 1.5rem 0 0;
  border: 1px solid var(--mr-rule);
  background: var(--mr-panel);
  overflow: hidden;
}
.mr-editorial-figure img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.mr-editorial-figure--hero img {
  aspect-ratio: 3 / 2;
  object-position: 48% 40%;
  max-height: min(70vh, 560px);
}
.mr-editorial-figure--chair img {
  aspect-ratio: 4 / 3;
  object-position: 64% 28%;
}
.mr-editorial-figure--table img {
  aspect-ratio: 16 / 11;
  object-position: 52% 48%;
}
.mr-editorial-figure--offset {
  border-left: 6px solid var(--mr-olive);
  padding-left: 0.75rem;
  margin-left: 0.5rem;
}
.mr-editorial-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--mr-stone);
  border-top: 1px solid var(--mr-rule);
}

.mr-ink-band {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem;
  background: var(--mr-aubergine);
  color: #ebe3d4;
}
.mr-ink-band h2, .mr-ink-band h3 { color: #faf6ee; }
.mr-ink-band p { color: #d8cfc2; max-width: 40rem; }
.mr-ink-band a { color: #e8d9a8; }

.mr-prose-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--mr-mute);
}
.mr-prose-list li { margin-bottom: 0.5rem; }

.mr-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.mr-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--mr-rule);
  background: var(--mr-ecru);
  color: var(--mr-aubergine);
}

@media (min-width: 720px) {
  .mr-cat-grid--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mr-cat-grid--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .mr-editorial-split {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
    align-items: start;
  }
}
