/* Monrreal Law - visual system
   Committed color: navy owns the opening and closing fields, warm paper is the
   reading field, gold is structural (rules, marks, active states), never confetti. */
:root {
  --navy:        oklch(32% 0.075 250);
  --navy-deep:   oklch(24% 0.070 250);
  --navy-ink:    oklch(19% 0.055 250);
  --navy-line:   oklch(44% 0.060 250);
  --navy-tint:   oklch(80% 0.030 250);
  --gold:        oklch(75% 0.105 85);
  --gold-deep:   oklch(52% 0.095 85);
  --ink:         oklch(28% 0.020 250);
  --ink-soft:    oklch(46% 0.020 250);
  --muted:       oklch(46% 0.024 85);
  --surface:     oklch(97.5% 0.005 85);
  --card:        oklch(100% 0 0);
  --line:        oklch(89% 0.008 85);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --measure: 68ch;
}

* { 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;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
}

/* the browser surfaces nobody draws still carry the design */
::selection { background: var(--gold); color: var(--navy-ink); }
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-navy :focus-visible, .foot :focus-visible,
.callout :focus-visible, #sitemenu :focus-visible { outline-color: var(--gold); }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
time, .num { font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-wrap: balance;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); margin-top: 0; }
h3 { font-size: 1.3rem; line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--gold-deep); }
.on-navy h1 em, .on-navy h2 em { color: var(--gold); }

p, li { text-wrap: pretty; }
p { margin: 0 0 1.15em; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 9px;
}
.wordmark { display: flex; text-decoration: none; }
.wordmark .logo { width: auto; height: 74px; margin-block: -10px; }

.nav { display: flex; gap: 28px; align-items: center; font-size: 0.98rem; font-weight: 500; }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold-deep); border-bottom-color: var(--gold); }
#sitemenu a[aria-current="page"] { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-call {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy); color: #fff !important; text-decoration: none;
  padding: 12px 20px; border-radius: 3px; font-weight: 600; min-height: 46px;
}
.btn-call:hover { background: var(--navy-deep); }
.btn-call svg { stroke: var(--gold); }
.langtoggle {
  display: inline-flex; align-items: center; min-height: 46px;
  border: 1.5px solid var(--navy); color: var(--navy);
  padding: 0 14px; border-radius: 3px; text-decoration: none;
  font-weight: 600; letter-spacing: 0.05em; font-size: 0.8rem;
}
.langtoggle:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.lang-short { display: none; }

.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: none; border: 1.5px solid var(--line);
  border-radius: 3px; color: var(--navy); cursor: pointer;
}
#sitemenu {
  border: none; border-radius: 4px; padding: 0; width: min(320px, 90vw);
  background: var(--navy-ink); color: #fff;
  box-shadow: 0 24px 70px oklch(15% 0.04 250 / 0.45);
}
#sitemenu::backdrop { background: oklch(15% 0.04 250 / 0.5); }
#sitemenu ul { list-style: none; margin: 0; padding: 4px 0 18px; }
#sitemenu li a {
  display: block; padding: 15px 26px; text-decoration: none; color: #fff;
  font-family: var(--serif); font-size: 1.2rem; min-height: 44px;
}
#sitemenu li a:hover { color: var(--gold); background: oklch(24% 0.06 250); }
.menu-close {
  display: block; margin-left: auto; background: none; border: 0;
  font-size: 2rem; line-height: 1; padding: 14px 20px; cursor: pointer;
  color: var(--navy-tint); min-height: 44px;
}
.menu-close:hover { color: var(--gold); }

/* ---------- home hero: navy field, photo breaking the boundary ---------- */
.hero-field { background: var(--navy); color: #fff; }
.hero-split {
  display: grid; grid-template-columns: minmax(0, 6.6fr) minmax(0, 4.8fr);
  gap: 56px; align-items: end; padding-block: 48px 0;
}
.hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-block: 16px 48px; align-self: center; }
.hero-copy h1 { color: #fff; margin: 0; max-width: 15ch; }
.hero-copy .lede { margin: 0; font-size: 1.16rem; line-height: 1.6; color: var(--navy-tint); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.cta-gold, .cta-line {
  display: inline-flex; align-items: center; min-height: 50px;
  padding: 0 32px; border-radius: 3px; font-weight: 600; text-decoration: none;
  font-size: 1.02rem;
}
.cta-gold { background: var(--gold); color: var(--navy-ink); }
.cta-gold:hover { background: oklch(82% 0.10 85); color: var(--navy-ink); }
.cta-line { border: 2px solid oklch(60% 0.05 250); color: #fff; }
.cta-line:hover { border-color: var(--gold); color: var(--gold); }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px;
  font-size: 0.86rem; color: var(--navy-tint);
}
.hero-proof strong { color: var(--gold); font-weight: 600; }
.hero-media { position: relative; align-self: end; }
.hero-media img {
  width: 100%; height: auto; border-radius: 4px 4px 0 0;
  aspect-ratio: 1 / 1.06; object-fit: cover; object-position: 50% 24%;
  display: block;
  box-shadow: 0 30px 80px oklch(15% 0.05 250 / 0.35);
}
.hero-media::after {
  content: ""; position: absolute; inset: -20px -20px 44px 20px;
  border: 1.5px solid var(--gold); border-radius: 4px;
  z-index: 0; opacity: 0.6; pointer-events: none;
}
.hero-after { padding-top: 96px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- gold urgent band ---------- */
.urgent-band { background: var(--gold); color: var(--navy-ink); }
.urgent-band .wrap {
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center;
  justify-content: space-between; padding-block: 26px;
}
.urgent-band .lead { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin: 0; }
.urgent-band .sub { font-size: 0.95rem; margin: 4px 0 0; color: oklch(30% 0.05 85); }
.urgent-links { display: flex; flex-wrap: wrap; gap: 10px; }
.urgent-links a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.urgent-links a.solid { background: var(--navy-ink); color: #fff; }
.urgent-links a.solid:hover { background: var(--navy); color: #fff; }
.urgent-links a.quiet { border: 1.5px solid oklch(45% 0.07 85); color: var(--navy-ink); }
.urgent-links a.quiet:hover { border-color: var(--navy-ink); }

/* ---------- editorial guide rows ---------- */
.section-head {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline;
  justify-content: space-between; margin-bottom: 36px;
}
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 600; text-decoration: none; white-space: nowrap; }

.guide-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.guide-feature a { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.guide-feature img {
  aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; width: 100%;
}
.guide-feature h3 { margin: 0; }
.guide-feature a:hover h3 { color: var(--gold-deep); }
.guide-feature p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.guide-feature .gmeta { font-size: 0.84rem; color: var(--muted); }

.guide-rows { display: grid; }
.guide-rows a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 32px;
  align-items: baseline; text-decoration: none; color: inherit;
  padding-block: 18px; border-top: 1px solid var(--line);
}
.guide-rows a:hover h3 { color: var(--gold-deep); }
.guide-rows h3 { margin: 0; font-size: 1.22rem; }
.guide-rows p { margin: 0; grid-column: 1; font-size: 0.93rem; color: var(--ink-soft); max-width: 75ch; }
.guide-rows time { color: var(--muted); font-size: 0.85rem; }

/* ---------- waiting list ---------- */
.waitlist { background: var(--card); border-block: 1px solid var(--line); }
.waitlist .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px; align-items: center; padding-block: 88px;
}
.waitlist img { border-radius: 4px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.waitlist .gold-rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 0 0 22px; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.team-grid figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.team-grid img { border-radius: 4px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.team-grid figcaption { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- article ---------- */
.article { background: var(--card); }
.article-head { padding: 64px 0 36px; }
.crumb { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.byline {
  display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center;
  font-size: 0.9rem; color: var(--ink-soft); margin-top: 20px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.byline a { font-weight: 600; }
.byline .topic { color: var(--muted); }

.article-body { max-width: var(--measure); font-size: 1.07rem; }
.article-body h2 { margin-top: 2em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.article-body h3 { margin-top: 1.8em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 1px solid var(--gold-deep); color: var(--ink-soft);
  font-family: var(--serif); font-size: 1.1em;
}
.article-body table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.article-body :is(th, td) { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--surface); }
.article-hero { margin: 30px 0 8px; border-radius: 4px; }

.callout {
  background: var(--navy); color: #fff; border-radius: 4px;
  padding: 34px 38px; margin: 56px 0;
}
.callout h2 { color: #fff; margin: 0 0 0.5em; border: 0; padding: 0; }
.callout p { color: var(--navy-tint); }
.callout a { color: var(--gold); }

/* ---------- page hero band (service pages) ---------- */
.page-hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 340px; background-size: cover; background-position: center;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(19% 0.055 250 / 0.94) 0%,
              oklch(19% 0.055 250 / 0.55) 45%, oklch(19% 0.055 250 / 0.15) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; padding-block: 44px; width: 100%; }
.page-hero .crumb { color: var(--gold); }
.page-hero h1 { color: #fff; margin: 8px 0 0; }

.urgent-note {
  background: var(--gold); color: var(--navy-ink);
  padding: 20px 26px; border-radius: 3px; margin: 26px 0;
}
.urgent-note a { color: var(--navy-ink); }

/* ---------- cards that remain are quiet ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 4px; padding: 26px; text-decoration: none; color: inherit;
}
.card:hover { border-color: var(--gold-deep); }
.card h2, .card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }
.card .meta { font-size: 0.82rem; color: var(--muted); margin-top: auto; }

/* ---------- footer ---------- */
.foot { background: var(--navy-ink); color: oklch(82% 0.02 250); margin-top: 96px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 48px 64px; padding-block: 60px; }
.foot .wrap > div { flex: 1 1 240px; min-width: 0; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot h4, .foot .foot-h {
  color: var(--gold); font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; font-weight: 500; margin: 0 0 14px; letter-spacing: 0;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.93rem; }

/* ---------- search ---------- */
#search .pagefind-ui__search-input {
  font-family: var(--sans); font-size: 1.02rem;
  padding: 15px 18px; border: 1.5px solid transparent; border-radius: 3px;
  width: 100%; background: var(--card); color: var(--ink);
}
#search .pagefind-ui__search-input::placeholder { color: oklch(46% 0.02 250); opacity: 1; }
#search .pagefind-ui__form::before { display: none; }
#search .pagefind-ui__search-clear { color: var(--navy); }
#search .pagefind-ui__search-input:focus { border-color: var(--navy); outline: none; }
#search .pagefind-ui__result-title { font-family: var(--serif); }
#search .pagefind-ui__result-link { color: var(--navy); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .call-label { display: none; }
  .btn-call { padding: 12px 15px; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .masthead .wrap { gap: 12px; padding-block: 10px; }
  .wordmark .logo { height: 62px; margin-block: -6px; }

  .hero-split { grid-template-columns: 1fr; gap: 0; padding-block: 44px 0; }
  .hero-copy { padding-bottom: 44px; }
  .hero-media img { aspect-ratio: 16 / 11; border-radius: 4px; margin-bottom: 44px; }
  .hero-media::after { display: none; }
  .hero-after { padding-top: 64px; }

  .guide-feature { grid-template-columns: 1fr; gap: 32px; }
  .waitlist .wrap { grid-template-columns: 1fr; gap: 36px; padding-block: 56px; }
  .foot .wrap { gap: 36px; }
}
