/* Rangreza London: "Occasion Edit" */
:root {
  --bg: #eef1f0;
  --surface: #ffffff;
  --ink: #1b2430;
  --muted: #56606b;
  --accent: #1f5f5b;
  --accent-deep: #174845;
  --gold: #b8862f;
  --gold-text: #87611d;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; }
.muted { color: var(--muted); }

.wrap { width: min(100% - 2 * var(--gutter), 80rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--surface); padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  background: var(--accent); color: var(--surface);
  font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 2px;
}
.btn:hover { background: var(--accent-deep); color: var(--surface); }
.btn--small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.9375rem; }
.textlink { font-weight: 600; }

/* Masthead */
.masthead { padding-block: 1rem; border-bottom: 1px solid #d5dbd9; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark {
  display: inline-grid; justify-items: center; color: var(--ink); text-decoration: none; line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.wordmark__name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.75rem; }
.wordmark__orn { width: 5.2rem; height: auto; margin-top: 0.2rem; }
.wordmark__city { font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.32em; margin-right: -0.32em; color: var(--accent); margin-top: 0.15rem; }
.masthead__nav { display: none; }
@media (min-width: 48rem) {
  .masthead__nav { display: flex; gap: 2rem; margin-left: auto; }
  .masthead__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
  .masthead__nav a:hover { color: var(--accent); text-decoration: underline; }
  .wordmark__name { font-size: 2rem; }
}

/* Frames: clean white borders, no effects */
.frame { background: var(--surface); padding: 0.5rem; }
@media (min-width: 48rem) { .frame { padding: 0.75rem; } }
.frame img { width: 100%; }

.pull {
  font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.4;
  color: var(--ink); margin-top: 0.9rem; max-width: 26ch;
}
.pull::before {
  content: ""; display: block; width: 2.5rem; height: 2px; background: var(--gold); margin-bottom: 0.6rem;
}

/* Cover */
.cover { padding-top: clamp(2rem, 6vw, 4.5rem); }
.cover__issue {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: baseline;
  color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.25rem;
}
.cover__issue em { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-text); }
.cover h1 {
  font-style: italic; font-weight: 400;
  font-size: clamp(2.35rem, 8.4vw, 7rem);
  line-height: 1.02; letter-spacing: -0.015em;
  max-width: 15ch;
}
.cover h1 span { display: inline; }
@media (min-width: 60rem) { .cover h1 span { display: block; } .cover h1 { max-width: none; } }

.cover__grid {
  display: grid; gap: 2rem;
  width: min(100% - 2 * var(--gutter), 80rem); margin: 2rem auto 0;
}
.lede { font-size: 1.1875rem; line-height: 1.5; max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin: 1.5rem 0; }
.cover__hours { color: var(--muted); font-size: 0.9375rem; max-width: 30ch; }
.cover__spread { margin: 0; position: relative; }
.cover__spread img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%; }
.pull--cover { max-width: 30ch; }

@media (min-width: 60rem) {
  .cover__grid {
    width: auto; margin-top: 3rem;
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [intro-start] minmax(0, 22rem) [intro-end] 4rem
      [spread-start] minmax(0, 54rem) [content-end] minmax(var(--gutter), 1fr) [full-end];
    gap: 0;
  }
  .cover__intro { grid-column: intro; padding-top: 1rem; }
  .cover__spread { grid-column: spread-start / full-end; }
  .frame--bleed { padding-right: 0; }
  .cover__spread img { aspect-ratio: 4 / 3; height: auto; }
  .pull--cover {
    position: absolute; left: -4rem; bottom: -2.5rem; margin: 0;
    background: var(--surface); padding: 1.25rem 1.5rem; font-size: 1.25rem;
    max-width: 22rem;
  }
}

/* Page-load: the cover headline sets line by line, the spread follows */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
  @keyframes unveil { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
  @media (min-width: 60rem) {
    .cover h1 span { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
    .cover h1 span:nth-child(2) { animation-delay: 0.12s; }
    .cover h1 span:nth-child(3) { animation-delay: 0.24s; }
    .cover__spread .frame { animation: unveil 1.1s 0.35s cubic-bezier(.6,0,.2,1) both; }
  }
}

/* The edit */
.edit { padding-block: clamp(5rem, 10vw, 9rem) clamp(3rem, 6vw, 5rem); }
.edit__intro { display: grid; gap: 0.75rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.edit__intro h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-style: italic; font-weight: 400; }
.edit__intro p { color: var(--muted); max-width: 44ch; }
@media (min-width: 60rem) {
  .edit__intro { grid-template-columns: 5fr 7fr; align-items: end; }
}

.feature { display: grid; gap: 1.75rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
.feature__text { max-width: 34rem; position: relative; }
.feature__text p:not(.numeral) { max-width: 40ch; }
.numeral {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(6rem, 20vw, 12rem); line-height: 0.8;
  color: var(--gold); margin: 0 0 -0.12em -0.04em;
  font-variant-numeric: lining-nums;
}
.feature h3 {
  font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; font-weight: 500;
  margin-bottom: 1rem; position: relative;
}
.feature__fig { margin: 0; }
.feature__fig--shop .frame { max-width: 20rem; }

.crop-earrings { position: relative; aspect-ratio: 5 / 3; overflow: hidden; }
.crop-earrings img { position: absolute; max-width: none; width: 153.5%; left: 0; top: -37.5%; }
.crop-tall img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 0% 50%; }

@media (min-width: 60rem) {
  .feature { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }

  .feature--one .feature__text { grid-column: 1 / 7; padding-top: 2rem; }
  .feature--one .feature__fig { grid-column: 8 / 12; position: relative; }
  .feature__fig--shop .frame { max-width: 22rem; }
  .feature__fig--shop .pull {
    position: absolute; left: -6rem; bottom: 3rem; margin: 0;
    background: var(--surface); padding: 1rem 1.25rem; max-width: 15rem;
  }

  .feature--two .feature__fig { grid-column: 1 / 8; grid-row: 1; position: relative; margin-right: -4rem; z-index: 0; }
  .feature--two .feature__text { grid-column: 8 / 13; grid-row: 1; padding-top: 4rem; padding-left: 4rem; z-index: 1; }
  .feature--two .numeral { margin-left: -5rem; }
  .feature__fig--detail .pull { margin-left: 4rem; }

  .feature--three .feature__text { grid-column: 2 / 7; padding-top: 6rem; }
  .feature--three .feature__fig { grid-column: 7 / 12; position: relative; }
  .feature__fig--tall .pull {
    position: absolute; left: -4rem; bottom: -2rem; margin: 0;
    background: var(--surface); padding: 1rem 1.25rem;
  }
}

/* Together */
.together { background: var(--surface); padding-block: clamp(4rem, 9vw, 8rem); margin-top: clamp(2rem, 5vw, 4rem); }
.together__grid { display: grid; gap: 2rem; }
.together h2 {
  font-style: italic; font-weight: 400; font-size: clamp(2.25rem, 6vw, 4.75rem); line-height: 1.04;
  max-width: 12ch; color: var(--accent);
}
.notes { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.75rem; }
.notes li { border-top: 2px solid var(--gold); padding-top: 1rem; }
.notes h3 { font-size: 1.375rem; margin-bottom: 0.35rem; }
.notes p { color: var(--muted); }
@media (min-width: 48rem) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
@media (min-width: 60rem) { .together__grid { grid-template-columns: 5fr 7fr; column-gap: 4rem; } }

/* Visit: back-page listing */
.visit { padding-block: clamp(4rem, 9vw, 8rem); }
.visit__grid { display: grid; gap: 3rem; }
.visit h2 { font-style: italic; font-weight: 400; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; margin-bottom: 1rem; }
.visit__head p { max-width: 36ch; margin-bottom: 1.5rem; }
.listing { margin: 0; }
.listing__row { padding-block: 0.85rem; border-bottom: 1px solid #d5dbd9; }
.listing__row:first-child { border-top: 2px solid var(--ink); }
.listing dt { font-family: var(--serif); font-style: italic; font-size: 1.1875rem; }
.listing dd { margin: 0.15rem 0 0; }
.listing__row--wide dt { font-style: normal; font-weight: 600; font-size: 1.375rem; }
@media (min-width: 40rem) {
  .listing__row { display: flex; align-items: baseline; gap: 0.75rem; }
  .listing dt { flex: none; display: flex; }
  .listing__row:not(.listing__row--wide) dt::after {
    content: ""; flex: 1; border-bottom: 2px dotted #9aa3a8; margin-left: 0.75rem; min-width: 2rem;
    transform: translateY(-0.3em);
  }
  .listing__row:not(.listing__row--wide) dt { flex: 1; }
  .listing__row:not(.listing__row--wide) dd { text-align: right; }
  .listing__row--wide { display: block; }
}
@media (min-width: 60rem) { .visit__grid { grid-template-columns: 5fr 7fr; column-gap: 4rem; align-items: start; } }

/* Footer */
.footer { background: var(--ink); color: #d9dfdd; padding-block: 2.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.footer strong { color: var(--surface); font-weight: 600; }
.footer .muted { color: #b5bec0; margin-left: auto; }
.footer p { margin: 0; }
