/* Merriden & Partners, family lawyers
   Ivory paper, navy ink, one sage accent. Type-led, phone first. */

:root {
  --ivory: #f6f1e6;
  --paper: #fbf8f1;
  --navy: #14233b;
  --ink-soft: #3d4b62;
  --sage: #8fa58d;
  --sage-deep: #456049;
  --sage-tint: #e2e9dc;
  --sage-mid: #d3dece;
  --rule: rgba(20, 35, 59, 0.2);
  --rule-strong: rgba(20, 35, 59, 0.55);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  padding-bottom: 84px; /* room for the phone call bar */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, address, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 3px; border-radius: 2px; }

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

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--navy); color: var(--ivory); padding: 14px 18px; font-size: 17px;
}
.skip:focus { top: 12px; }

.amp { font-family: var(--serif); font-style: italic; color: var(--sage-deep); }
.fine { color: var(--ink-soft); font-size: 17px; line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 12px 26px;
  font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center; white-space: nowrap;
  border: 1.5px solid var(--navy); border-radius: 3px;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--navy); color: var(--ivory); }
.btn-solid:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--sage-tint); }
.btn-quiet { font-weight: 400; color: var(--ink-soft); }
.btn-small { min-height: 48px; padding: 10px 20px; font-size: 17px; }

.text-link {
  display: inline-block; padding: 10px 0; font-weight: 600; font-size: 18px;
  text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--navy); }
.text-link::after { content: " \2193"; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; padding: 8px 0; }
.wm-name { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; }
.wm-sub { font-size: 17px; color: var(--ink-soft); white-space: nowrap; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 14px;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 3px;
  font-family: var(--sans); font-size: 17px; font-weight: 600; cursor: pointer;
}
.menu-btn:hover { background: var(--sage-tint); }
.menu-btn-bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory); border-bottom: 1px solid var(--rule-strong);
  padding: 8px var(--gutter) 24px;
}
.nav-open .site-nav { display: block; }
.site-nav li a {
  display: flex; align-items: center; min-height: 54px;
  font-size: 19px; text-decoration: none; border-bottom: 1px solid var(--rule);
}
.site-nav li a:hover { color: var(--sage-deep); }
.nav-actions { display: none; }

/* Hero */
.hero { padding: 40px 0 56px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--sage-deep); margin-bottom: 18px; }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 11.6vw, 56px); line-height: 1.05; letter-spacing: -0.018em;
}
.br-d { display: none; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: none; margin-top: 30px; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 17px; color: var(--ink-soft); padding-left: 16px; border-left: 3px solid var(--sage); }

.hero-aside { position: relative; }
.big-amp { display: none; }
.glance {
  position: relative; background: var(--paper);
  border: 1px solid var(--rule-strong); border-top: 4px solid var(--navy);
  padding: 24px 22px 18px;
}
.glance-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.glance-list > div { padding: 13px 0; border-top: 1px solid var(--rule); }
.glance-list dt { font-size: 17px; color: var(--ink-soft); }
.glance-list dd { font-size: 19px; font-weight: 500; line-height: 1.35; }
.glance .text-link { margin-top: 4px; }

/* Sections */
.section { padding: 64px 0; }
.section-ruled { border-top: 1px solid var(--rule); }
.sec-grid { display: grid; gap: 32px; }
.sec-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--sage-deep); margin-bottom: 10px; }
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 8.6vw, 44px); line-height: 1.1; letter-spacing: -0.012em; text-wrap: balance;
}
.sec-intro { margin-top: 16px; color: var(--ink-soft); max-width: 30em; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }

/* Help */
.help-grid { display: grid; gap: 0; }
.help-item { padding: 26px 0 28px; border-top: 1px solid var(--rule-strong); }
.help-item h3 { font-size: 28px; margin-bottom: 10px; }
.help-item p { color: var(--ink-soft); }
.asked { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--navy) !important; }
.asked span { font-family: var(--sans); font-style: normal; font-size: 17px; color: var(--sage-deep); display: block; }

/* Statements */
.statement { padding: 60px 0; }
.statement-sage { background: var(--sage-tint); }
.statement-navy { background: var(--navy); color: var(--ivory); }
.statement .sec-grid { gap: 14px; }
.statement-label { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--sage-deep); }
.statement-navy .statement-label { color: #b9cbb6; }
.statement-text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 7.6vw, 54px); line-height: 1.14; letter-spacing: -0.014em; text-wrap: balance;
  max-width: 19em;
}

/* Steps */
.steps { display: grid; gap: 0; }
.step { padding: 22px 0 26px; border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; }
.step-num { font-family: var(--serif); font-style: italic; font-size: 60px; line-height: .9; color: var(--sage-deep); grid-row: span 2; }
.step h3 { margin-bottom: 8px; padding-top: 6px; }
.step p { color: var(--ink-soft); grid-column: 2; }

.facts { margin-top: 12px; background: var(--paper); border: 1px solid var(--rule-strong); display: grid; }
.facts > div { padding: 18px 20px; border-top: 1px solid var(--rule); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-size: 17px; color: var(--ink-soft); }
.facts dd { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin-top: 2px; }

/* Fees */
.fee-list li { padding: 22px 0; border-top: 1px solid var(--rule-strong); display: grid; gap: 8px; }
.fee-list li:last-child { border-bottom: 1px solid var(--rule-strong); }
.fee-what p { color: var(--ink-soft); margin-top: 4px; }
.fee-price { font-family: var(--serif); font-size: 38px; line-height: 1.1; white-space: nowrap; }
.fee-unit { font-family: var(--sans); font-size: 17px; color: var(--ink-soft); }
.fee-notes { margin-top: 28px; display: grid; gap: 16px; }
.fee-notes p { color: var(--ink-soft); padding-left: 16px; border-left: 3px solid var(--sage); }
.fee-notes strong { color: var(--navy); font-weight: 600; }

/* People */
.people { display: grid; gap: 28px; }
.person { background: var(--paper); border: 1px solid var(--rule-strong); border-top: 4px solid var(--navy); padding: 24px 22px 22px; }
.monogram {
  display: flex; align-items: center; justify-content: center;
  width: 88px; height: 88px; margin-bottom: 18px;
  background: var(--sage-tint); color: var(--sage-deep);
  font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 1;
  border-radius: 50%;
}
.person h3 { font-size: 34px; font-weight: 400; }
.person-role { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--sage-deep); margin: 2px 0 14px; }
.person-text p { color: var(--ink-soft); }
.person-text .person-role { color: var(--sage-deep); }

/* Visit */
.visit-grid { display: grid; gap: 40px; }
.hours h3, .place h3 { margin-bottom: 12px; }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; font-weight: 400; vertical-align: top; display: block; }
.hours tr { display: block; padding: 13px 0; border-top: 1px solid var(--rule); }
.hours tr:last-child { border-bottom: 1px solid var(--rule); }
.hours th { color: var(--ink-soft); font-size: 17px; }
.hours td { font-weight: 500; }
.hours .fine { margin-top: 14px; }
.place address { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin-bottom: 14px; }
.place p { color: var(--ink-soft); margin-bottom: 12px; }
.map { width: 100%; height: auto; margin: 20px 0 12px; color: var(--navy); background: var(--paper); }

/* Contact */
.section-contact { background: var(--sage-tint); }
.contact-phone { margin-top: 22px; font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.contact-phone a { text-decoration-color: var(--sage); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact-phone a:hover { text-decoration-color: var(--navy); }
.form { display: grid; gap: 20px; background: var(--paper); border: 1px solid var(--rule-strong); padding: 24px 20px; }
.field label { display: block; font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 14px;
  font-family: var(--sans); font-size: 18px; color: var(--navy);
  background: #fff; border: 1.5px solid var(--rule-strong); border-radius: 3px;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.hint { margin-top: 6px; font-size: 17px; color: var(--ink-soft); }
.form-foot { display: grid; gap: 12px; }
.form-foot .btn { width: 100%; }

/* Footer */
.site-footer { background: var(--navy); color: var(--ivory); padding: 44px 0 40px; }
.footer-grid { display: grid; gap: 28px; }
.footer-name { font-family: var(--serif); font-size: 24px; line-height: 1.25; margin-bottom: 10px; }
.site-footer .amp { color: #b9cbb6; }
.site-footer p { font-size: 17px; }
.footer-notes p + p { margin-top: 8px; color: #c9d0da; }

/* Phone call bar */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: var(--ivory); border-top: 1px solid var(--rule-strong);
}
.call-bar .btn { padding: 10px 8px; font-size: 17px; min-height: 52px; white-space: nowrap; }

/* Small tablets */
@media (min-width: 640px) {
  :root { --gutter: 36px; }
  .help-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .facts { grid-template-columns: 1fr 1fr 1.6fr; }
  .facts > div { border-top: 0; border-left: 1px solid var(--rule); }
  .facts > div:first-child { border-left: 0; }
  .fee-list li { grid-template-columns: 1fr auto; align-items: baseline; column-gap: 32px; }
  .fee-price { text-align: right; }
  .people { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .hours tr { display: grid; grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr 1fr; padding: 32px; }
  .field-wide { grid-column: 1 / -1; }
  .form-foot { grid-template-columns: auto 1fr; align-items: center; column-gap: 20px; }
  .form-foot .btn { width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { display: flex; }
}

/* Desktop */
@media (min-width: 1080px) {
  :root { --gutter: 64px; --header-h: 84px; }
  body { padding-bottom: 0; font-size: 18px; }
  .call-bar { display: none; }

  .wm-name { font-size: 24px; }
  .menu-btn { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 24px;
    position: static; padding: 0; border: 0; background: none;
  }
  .site-nav ul { display: flex; gap: 20px; }
  .site-nav li a { min-height: 48px; font-size: 17px; border-bottom: 0; white-space: nowrap; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 7px; }
  .site-nav li a:hover { color: var(--navy); text-decoration-color: var(--sage); }
  .nav-actions { display: flex; align-items: center; gap: 16px; padding-left: 20px; border-left: 1px solid var(--rule); }
  .nav-phone { font-family: var(--serif); font-size: 22px; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 48px; }
  .nav-phone-label { display: none; font-family: var(--sans); font-size: 17px; color: var(--ink-soft); margin-right: 6px; }
  .nav-phone:hover { color: var(--sage-deep); }

  .hero { padding: 56px 0 84px; }
  .hero-grid { grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.2fr); column-gap: 64px; align-items: end; }
  .br-m { display: none; }
  .br-d { display: inline; }
  .kicker { font-size: 22px; margin-bottom: 22px; }
  h1 { font-size: clamp(56px, 5.15vw, 76px); line-height: 1.03; }
  .lead { font-size: 21px; margin-top: 28px; max-width: 30em; }
  .hero-actions { margin-top: 36px; }
  .hero-note { margin-top: 26px; }

  .hero-aside { padding-top: 196px; }
  .big-amp {
    display: block; position: absolute; right: -10px; top: -38px;
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: 380px; line-height: 1; color: var(--sage-mid);
    pointer-events: none; user-select: none;
  }
  .glance { padding: 30px 30px 22px; }
  .glance-title { font-size: 28px; }

  .section { padding: 104px 0; }
  .sec-grid { grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); column-gap: 72px; }
  h2 { font-size: 46px; }
  .sec-num { font-size: 24px; margin-bottom: 14px; }

  .help-grid { column-gap: 56px; }
  .help-item { padding: 30px 0 40px; }
  .help-item h3 { font-size: 32px; }

  .statement { padding: 96px 0; }
  .statement .sec-grid { column-gap: 72px; align-items: baseline; }
  .statement-label { font-size: 24px; }
  .statement-text { font-size: 54px; }

  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
  .step { display: block; padding: 26px 0 0; }
  .step-num { display: block; font-size: 84px; margin-bottom: 18px; }
  .step h3 { font-size: 28px; padding-top: 0; }
  .facts { margin-top: 48px; }
  .facts > div { padding: 24px 28px; }
  .facts dd { font-size: 30px; }

  .fee-list li { padding: 26px 0; }
  .fee-price { font-size: 44px; }
  .fee-notes { grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 36px; }

  .people { column-gap: 40px; }
  .person { padding: 34px 32px 30px; }

  .visit-grid { column-gap: 56px; }
  .hours tr { grid-template-columns: 1.2fr 1fr; column-gap: 16px; }
  .hours th { font-size: 18px; }

  .form { padding: 40px; column-gap: 28px; row-gap: 24px; }
  .site-footer { padding: 64px 0 56px; }
  .footer-grid { grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); column-gap: 72px; }
  .footer-notes { max-width: 34em; }
}

/* Wide desktop: wordmark on one line */
@media (min-width: 1360px) {
  .wordmark { flex-direction: row; align-items: baseline; gap: 8px; }
  .nav-phone-label { display: inline; }
}
