/* ---------------------------------------------------------------------------
   Jess Russell | warm neutral palette, mobile first.
   Fonts are the system stack on purpose: no third-party request means no
   third party learns that someone visited this site.
   --------------------------------------------------------------------------- */

:root {
  --sand: #f7f2ec;
  --sand-deep: #efe7dd;
  --shell: #fffdfb;
  --ink: #2e2925;
  --ink-soft: #5d554d;
  --ink-faint: #6a6158;
  --line: #e3d8cb;
  --clay: #a35a40;
  --clay-deep: #874730;
  --clay-wash: #f6ece5;
  --sage: #6c7862;
  --sage-wash: #eef0e9;
  --exit: #b23f28;
  --exit-hover: #97331e;
  --bar: #2b2521;

  --wrap: 68rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(46, 41, 37, 0.05), 0 8px 24px rgba(46, 41, 37, 0.06);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
}
h2 {
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
}
h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.1em;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 200;
}
.skip:focus {
  left: 0;
}

/* --- Safety bar ---------------------------------------------------------- */

.safety-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--bar);
  color: #f3ece4;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 2px 10px rgba(43, 37, 33, 0.25);
}

.safety-bar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.safety-bar__note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #ded4c8;
}

.safety-bar__note kbd {
  font-family: var(--font);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

.safety-bar__long {
  display: none;
}

.exit-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--exit);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.6rem 1.05rem;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.exit-btn:hover,
.exit-btn:focus {
  background: var(--exit-hover);
  color: #fff;
}

.exit-btn__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Masthead ------------------------------------------------------------ */

.masthead {
  background: var(--shell);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand__role {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.15rem;
  max-width: 22rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  min-height: 44px;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}
.nav-toggle__bars {
  position: relative;
}
.nav-toggle__bars::before {
  position: absolute;
  top: -6px;
}
.nav-toggle__bars::after {
  position: absolute;
  top: 6px;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}

.nav a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.55rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--clay-deep);
  border-bottom-color: var(--clay);
}

body.has-nav-toggle .nav {
  display: none;
  width: 100%;
}

body.has-nav-toggle .nav.is-open {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}

body.has-nav-toggle .nav.is-open ul {
  flex-direction: column;
  gap: 0;
}

body.has-nav-toggle .nav.is-open a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

/* --- Sections ------------------------------------------------------------ */

main {
  display: block;
}

.section {
  padding: 3rem 0;
}

.section--tight {
  padding: 2rem 0;
}

.section--shell {
  background: var(--shell);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--wash {
  background: var(--sand-deep);
}

.section__head {
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.section__head p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin: 0 0 0.6rem;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background: linear-gradient(178deg, var(--shell) 0%, var(--sand) 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.75rem 0 3rem;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.hero h1 {
  max-width: 20ch;
}

.hero__rule {
  width: 3.5rem;
  height: 3px;
  background: var(--clay);
  border: 0;
  margin: 0 0 1.5rem;
  border-radius: 2px;
}

/* --- Buttons ------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--clay);
  color: #fff;
}
.btn--primary:hover {
  background: var(--clay-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
}

/* --- Cards --------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.card--accent {
  border-left: 4px solid var(--clay);
}

/* --- Prose --------------------------------------------------------------- */

.prose {
  max-width: 38rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose ul {
  padding-left: 1.15rem;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.placeholder {
  background: var(--clay-wash);
  border-left: 3px solid var(--clay);
  padding: 0.75rem 0.9rem;
  border-radius: 0 8px 8px 0;
}

/* --- About --------------------------------------------------------------- */

.about-layout {
  display: grid;
  gap: 2rem;
}

.portrait {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact-list li {
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  background: var(--clay);
  border-radius: 50%;
}

.fact-list li:last-child {
  border-bottom: 0;
}

/* --- Support ------------------------------------------------------------- */

.emergency {
  background: var(--clay-wash);
  border: 1px solid #e6cfc2;
  border-left: 5px solid var(--exit);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.emergency h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.emergency p {
  margin-bottom: 0;
  color: var(--ink);
}

.service {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.service__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.service__run {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service__contact {
  display: inline-block;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--clay-deep);
  text-decoration: none;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.service__detail {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.service__link {
  font-size: 0.9rem;
}

/* --- Topics -------------------------------------------------------------- */

.topic {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
}

.topic:first-child {
  border-top: 0;
}

.topic h3 {
  margin-bottom: 0.35rem;
}

.topic p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 44rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill {
  background: var(--sage-wash);
  border: 1px solid #dfe3d8;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pill strong {
  color: var(--ink);
}

.note-box {
  background: var(--sage-wash);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.25rem;
  color: var(--ink-soft);
}

.note-box p:last-child {
  margin-bottom: 0;
}

/* --- Quotes -------------------------------------------------------------- */

.quote {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0;
}

.quote blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.5;
}

.quote figcaption {
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* --- Engagements --------------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  gap: 0.15rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline__year {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
}

.timeline__title {
  font-weight: 600;
}

.timeline__detail {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --- Forms --------------------------------------------------------------- */

.form {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.1rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
  min-height: 48px;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--clay);
  background: var(--shell);
}

.field--error input,
.field--error textarea {
  border-color: var(--exit);
  background: #fdf4f1;
}

.field__error {
  display: block;
  color: var(--exit-hover);
  font-size: 0.88rem;
  margin-top: 0.35rem;
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  font-size: 0.98rem;
}

.alert p:last-child {
  margin-bottom: 0;
}

.alert--error {
  background: #fdf1ed;
  border-color: #eccdc2;
  color: #7c3421;
}

.alert--ok {
  background: var(--sage-wash);
  border-color: #d5dccd;
}

/* --- Footer -------------------------------------------------------------- */

.footer {
  background: var(--bar);
  color: #d8cec3;
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
  font-size: 0.95rem;
}

.footer a {
  color: #f0e6da;
}

.footer__inner {
  display: grid;
  gap: 1.75rem;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fdf8f2;
  margin: 0 0 0.2rem;
}

.footer__role,
.footer__meta {
  margin: 0 0 0.4rem;
  color: #b9aea2;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer__heading {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9c9186;
  margin: 0 0 0.6rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.4rem;
}

.footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9c9186;
}

.footer__base p {
  margin: 0;
}

/* --- Breakpoints --------------------------------------------------------- */

@media (min-width: 34rem) {
  .safety-bar__short {
    display: none;
  }
  .safety-bar__long {
    display: inline;
  }
  .safety-bar__inner {
    padding: 0.55rem 1.25rem;
  }
  .grid--2,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline li {
    grid-template-columns: 6rem 1fr;
  }
  .timeline__year {
    grid-row: span 2;
    padding-top: 0.2rem;
  }
}

@media (min-width: 52rem) {
  body {
    font-size: 1.09375rem;
  }
  /* Full horizontal navigation returns; the toggle is mobile only. */
  .nav-toggle {
    display: none;
  }
  body.has-nav-toggle .nav,
  body.has-nav-toggle .nav.is-open {
    display: block;
    width: auto;
    border-top: 0;
    padding-top: 0;
  }
  body.has-nav-toggle .nav.is-open ul {
    flex-direction: row;
    gap: 0.25rem 1.15rem;
  }
  body.has-nav-toggle .nav.is-open a {
    padding: 0.55rem 0;
    border-bottom: 2px solid transparent;
  }
  body.has-nav-toggle .nav.is-open a:hover,
  body.has-nav-toggle .nav.is-open a[aria-current="page"] {
    border-bottom-color: var(--clay);
  }
  .hero--split .hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem 3.5rem;
    align-items: end;
  }
  .hero--split .hero__main h1 {
    max-width: none;
    margin-bottom: 0;
  }
  .hero--split .hero__aside {
    padding-bottom: 0.4rem;
  }
  .hero--split .hero__lead {
    margin-bottom: 0;
  }
  .section {
    padding: 4rem 0;
  }
  .hero {
    padding: 4rem 0 4.5rem;
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--services {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-layout {
    grid-template-columns: 1fr 20rem;
    align-items: start;
    gap: 3rem;
  }
  .about-layout--reverse {
    grid-template-columns: 20rem 1fr;
  }
  /* No portrait set: do not reserve a column for one. */
  .about-layout--single {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1.4fr 1fr 1.3fr;
  }
  .contact-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .form {
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .safety-bar,
  .nav,
  .nav-toggle {
    display: none;
  }
}

/* Sidebar card stack (contact page). */
.card-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

@media (max-width: 51.99rem) {
  .card-stack {
    margin-top: 2rem;
  }
}

/* A hero that ends at the rule, with no lead paragraph under it. */
.hero--bare {
  padding-bottom: 2rem;
}

.hero--bare .hero__rule {
  margin-bottom: 0;
}
