/* Basis Advisors: fixed espresso side rail, sand ground, one ochre accent
   used for structure only. Sans only: Bricolage Grotesque + Instrument Sans. */

:root {
  --espresso: #231B16;
  --ochre: #C9892B;
  --umber: #8A5410;
  --sand: #F4EEE6;
  --clay: #EBE2D6;
  --ink: #231B16;
  --muted: #6B5D52;
  --rule: #D9CBB9;
  --on-dark: #F4EEE6;
  --on-dark-muted: #BFAF9F;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rail: 300px;
  --gutter: 16px;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--umber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--ochre); color: var(--espresso); padding: .75rem 1rem; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

/* Each h2 stands on a small baseline, echoing the hero bar. */
.based::after {
  content: "";
  display: block;
  width: 3rem;
  height: 6px;
  margin-top: .75rem;
  background: var(--ochre);
}

/* ---------- rail ---------- */

.rail {
  background: var(--espresso);
  color: var(--on-dark);
  position: sticky;
  top: 0;
  z-index: 20;
}
.rail-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem var(--gutter);
  min-height: 64px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--on-dark); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1;
  letter-spacing: -0.01em;
  min-height: 44px;
}
.wordmark span br { display: none; }
.wordmark:hover { color: var(--on-dark); }
.mark { width: 34px; height: 34px; flex: none; color: var(--on-dark); }

.menu-btn {
  font: 600 .95rem var(--body);
  color: var(--on-dark);
  background: transparent;
  border: 1px solid var(--on-dark-muted);
  border-radius: 999px;
  padding: 0 1.1rem;
  min-height: 44px;
  cursor: pointer;
}

.rail-nav { display: none; padding: 0 var(--gutter) 1rem; }
.rail.open .rail-nav { display: block; }
.rail-nav ul { list-style: none; margin: 0; padding: 0; }
.rail-nav a {
  display: flex; align-items: center;
  min-height: 46px;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(244, 238, 230, .12);
}
.rail-nav a:hover { color: var(--ochre); }
.rail-nav a[aria-current="page"] { color: var(--ochre); }
.rail-nav a[aria-current="page"]::before {
  content: ""; width: 14px; height: 4px; background: var(--ochre); margin-right: .6rem;
}

.city-line {
  display: none;
  margin: 0; padding: 0 var(--gutter) 1rem;
  font-size: .85rem; color: var(--on-dark-muted);
}
.rail.open .city-line { display: block; }
.local-time { font-variant-numeric: tabular-nums; color: var(--on-dark); }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .rail {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    padding: 2.2rem 2rem 2rem;
  }
  .rail-top { padding: 0; min-height: 0; }
  .wordmark { font-size: 1.55rem; align-items: flex-end; }
  .wordmark span br { display: inline; }
  .mark { width: 44px; height: 44px; }
  .menu-btn { display: none; }
  .rail-nav { display: block; padding: 3.5rem 0 0; }
  .rail-nav a { border-bottom: 0; min-height: 44px; font-size: 1.02rem; }
  .city-line { display: block; margin-top: auto; padding: 1.2rem 0 0; border-top: 1px solid rgba(244, 238, 230, .16); }
}

/* ---------- content pane ---------- */

.pane { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
main:focus { outline: none; }

.band { padding: 3.5rem var(--gutter); border-bottom: 1px solid var(--rule); }
.band:last-child { border-bottom: 0; }
.band.clay { background: var(--clay); }
.band.dark { background: var(--espresso); color: var(--on-dark); border-bottom: 0; }
.band.dark a { color: var(--ochre); }
.band.dark .muted { color: var(--on-dark-muted); }
.inner { max-width: 62rem; }
.measure { max-width: var(--measure); }

@media (min-width: 720px) {
  .band { padding: 5rem 3rem; }
}
@media (min-width: 1200px) {
  .band { padding: 6rem 5rem; }
}

.kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--umber); margin-bottom: .8rem;
}
.band.dark .kicker { color: var(--ochre); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; max-width: var(--measure); }
.muted { color: var(--muted); }

/* ---------- hero: the baseline ---------- */

.hero { padding: 3.5rem 0 3rem var(--gutter); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero .lede, .hero h1 { padding-right: var(--gutter); }
.hero h1 { max-width: 18ch; }
.baseline { margin: 2.5rem 0 1.5rem; }
.baseline-word {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(6rem, 24vw, 17rem);
  line-height: .78;
  letter-spacing: -0.05em;
  color: var(--espresso);
}
.baseline-bar { display: block; height: clamp(12px, 1.6vw, 20px); background: var(--ochre); }
.baseline-note { font-size: .92rem; color: var(--muted); margin-top: .8rem; padding-right: var(--gutter); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; padding-right: var(--gutter); }

@media (min-width: 720px) {
  .hero { padding: 5rem 0 4rem 3rem; }
}
@media (min-width: 1200px) {
  .hero { padding: 6rem 0 5rem 5rem; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  font: 600 1rem var(--body);
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--espresso);
  cursor: pointer;
}
.btn-dark { background: var(--espresso); color: var(--on-dark); }
.btn-dark:hover { background: #3a2e26; color: var(--on-dark); }
.btn-line { background: transparent; color: var(--espresso); }
.btn-line:hover { background: var(--clay); color: var(--espresso); }
.band.dark .btn-line { color: var(--on-dark); border-color: var(--on-dark-muted); }
.band.dark .btn-line:hover { background: #3a2e26; }

/* ---------- blocks ---------- */

.cols { display: grid; gap: 2rem; }
@media (min-width: 720px) {
  .cols.two { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
  .cols.three { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.cols h3 { margin-bottom: .5rem; }
.cols p { margin: 0; }

.card { background: var(--sand); border-top: 6px solid var(--ochre); padding: 1.5rem; }
.band.clay .card { background: var(--sand); }

/* Steps set as words on a vertical line, never numbers. */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 46rem; }
.steps li {
  position: relative;
  padding: 0 0 2.2rem 2rem;
  border-left: 2px solid var(--rule);
}
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps li::before {
  content: ""; position: absolute; left: -9px; top: .35rem;
  width: 16px; height: 16px; background: var(--ochre);
}
.steps h3 { margin-bottom: .3rem; }
.steps .when { display: block; font-size: .88rem; font-weight: 600; color: var(--umber); margin-bottom: .4rem; }
.steps p { margin: 0; }

.plain-list { margin: 0; padding-left: 1.2rem; }
.plain-list li { margin-bottom: .5rem; }

/* Kinds of names, set as a typeset specimen. */
.specimen { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.specimen li {
  display: grid; gap: .3rem 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.specimen .shape {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere;
}
.specimen .shape em { font-style: normal; color: var(--umber); }
.specimen p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .specimen li { grid-template-columns: 22rem 1fr; align-items: baseline; }
}

/* Questions */
.qa { max-width: 46rem; border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  min-height: 56px; padding: .8rem 0;
  font-weight: 600; font-size: 1.08rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 3px solid var(--ochre); border-bottom: 3px solid var(--ochre);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.qa details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.qa details > div { padding: 0 0 1.3rem; }
.qa details > div p:last-child { margin-bottom: 0; }

/* Portrait */
.person { display: grid; gap: 2rem; align-items: start; }
.person figure { margin: 0; max-width: 360px; }
.person img { width: 100%; border-bottom: 10px solid var(--ochre); }
.person figcaption { font-size: .9rem; color: var(--muted); margin-top: .7rem; }
@media (min-width: 820px) {
  .person { grid-template-columns: 300px 1fr; gap: 3.5rem; }
}
.person.small { grid-template-columns: 96px 1fr; gap: 1.2rem; align-items: center; }
.person.small img { width: 96px; height: 96px; border-bottom-width: 5px; }

.facts { display: grid; gap: .2rem 1.5rem; margin: 1.5rem 0 0; }
.facts dt { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--umber); }
.facts dd { margin: 0 0 .8rem; }
@media (min-width: 620px) { .facts { grid-template-columns: 9rem 1fr; } .facts dd { margin: 0 0 .6rem; } }

/* Name lookup and enquiry form */
.lookup { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; max-width: 34rem; }
.lookup input { flex: 1 1 14rem; }

label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%;
  font: 1rem var(--body);
  color: var(--ink);
  background: #FBF8F3;
  border: 1.5px solid #B9A994;
  border-radius: 6px;
  padding: .7rem .8rem;
  min-height: 48px;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--espresso); }
.form { display: grid; gap: 1.2rem; max-width: 40rem; }
@media (min-width: 720px) { .form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; } }
.form .pair > div + div { margin-top: 1.2rem; }
@media (min-width: 720px) { .form .pair > div + div { margin-top: 0; } }
.status { min-height: 1.5rem; margin: 0; font-weight: 500; }
.status.ok { color: #3F5B1E; }
.status.err { color: #9B2B12; }
.cf-turnstile { min-height: 65px; }

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 18rem; } }
.aside-box { background: var(--clay); padding: 1.5rem; border-top: 6px solid var(--ochre); }
.aside-box address { font-style: normal; }

/* Legal pages */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }

/* 404 */
.lost-word { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 20vw, 12rem); line-height: .8; letter-spacing: -0.05em; margin: 0; }

/* ---------- footer ---------- */

.foot { background: var(--espresso); color: var(--on-dark-muted); padding: 3rem var(--gutter) 2rem; font-size: .95rem; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: var(--ochre); }
.foot-inner { display: grid; gap: 2rem; max-width: 62rem; }
.foot-firm { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--on-dark); margin-bottom: .5rem; }
.foot-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); margin-bottom: .6rem; }
.foot address { font-style: normal; line-height: 1.9; }
.foot ul { list-style: none; margin: 0; padding: 0; line-height: 2.2; }
.foot-base { margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(244, 238, 230, .14); font-size: .85rem; }
@media (min-width: 720px) {
  .foot { padding: 3.5rem 3rem 2rem; }
  .foot-inner { grid-template-columns: 1.4fr 1fr .8fr; }
}
@media (min-width: 1200px) { .foot { padding: 4rem 5rem 2rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
