:root {
  /* logo palette: brown #4A3232, coral #F07A55, cream #F0F0D8 */
  --plum: #4A3232;
  --plum-2: #6A4842;
  --rose: #B9482A;
  --blush: #FBE3D9;
  --champagne: #F0F0D8;
  --lilac: #EFDCD0;
  --gold: #F07A55;
  --gold-lt: #F79B7C;
  --gold-ink: #2A1A1A;
  --pine: #A3412A;
  --ink: #2B1E1E;
  --muted: #66524E;
  --paper: #EEEDEB;
  --tile: #E4E2DF;
  --tint: #F5F4F2;
  --line: #CFCBC6;
  --foot: #EEEDEB;
  --gutter: 16px;
  --max: 1240px;
  --font-head: "Tenor Sans", "Georgia", serif;
  --font-body: "Old Standard TT", "Georgia", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

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

a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 2px;
  background: var(--plum);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.86rem; }

/* ---------- Header: centred links, big centred logo, small CTA right, thick rule ---------- */
.site-head {
  position: static;
  background: var(--paper);
  border-bottom: 5px solid var(--plum);
}

.top-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 64px;
  padding: 16px var(--gutter) 4px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.top-nav a { color: var(--ink); text-decoration: none; padding: 6px 2px; }
.top-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.head-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 22px;
}
.head-row .brand { grid-column: 2; }
.head-row .brand img { height: 64px; width: auto; }
.head-cta { grid-column: 3; justify-self: end; }

/* ---------- Footer ---------- */
.site-foot { background: var(--foot); border-top: 5px solid var(--plum); }
.foot-in {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding-top: 44px;
  padding-bottom: 36px;
}
.site-foot .brand img { height: 40px; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.foot-nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 4px 0; }
.foot-nav a:hover { text-decoration: underline; }
.foot-note, .foot-copy { margin: 0; max-width: 62ch; font-size: 0.9rem; color: var(--muted); }

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .top-nav { gap: 4px 32px; padding-top: 12px; }
  .head-row { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding-bottom: 18px; }
  .head-row .brand, .head-cta { grid-column: 1; justify-self: center; }
  .head-row .brand img { height: 40px; max-width: 100%; }
  .btn-sm { min-height: 44px; padding: 0 20px; }
}

/* ---------- Page hero ---------- */
.page-hero { padding: 48px 0 36px; }
.page-hero .wrap { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.crumb { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); }
.crumb a { color: var(--plum); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 12px; max-width: 22ch; }
.page-lead { margin: 0; max-width: 62ch; font-size: 1.06rem; }
.page-date { margin: 16px 0 0; font-size: 0.88rem; color: var(--muted); }
.ic { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }

/* ---------- Content ---------- */
.page-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 64px;
  align-items: start;
}

.page-narrow { max-width: 820px; padding-top: 48px; padding-bottom: 64px; }

.toc {
  position: sticky;
  top: 24px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 20px 18px;
}

.toc-title { margin: 0 0 10px; font-family: var(--font-head); font-size: 1.05rem; }

.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 0.95rem; }

.toc a { color: var(--ink); text-decoration: none; }

.toc a:hover { color: var(--rose); text-decoration: underline; }

.prose { max-width: 72ch; }

.prose section { scroll-margin-top: 20px; padding-bottom: 8px; }

.prose h2 {
  font-size: 1.45rem;
  margin: 32px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.prose > h2:first-child, .prose section:first-child h2 { margin-top: 0; border-top: 0; padding-top: 0; }

.prose p, .prose li { margin: 0 0 14px; }

.prose ul { padding-left: 22px; margin: 0 0 14px; }

.muted { color: var(--muted); }

/* Contact */
.contact-top { padding-top: 40px; }

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 4px;
  background: var(--plum);
  color: #F4EADC;
}

.contact-card h2 { color: #FFFFFF; font-size: 1.3rem; margin-bottom: 6px; }

.contact-card p { margin: 0 0 8px; }

.contact-card a { color: var(--gold-lt); font-size: 1.1rem; overflow-wrap: anywhere; }

.contact-card .muted { color: #D8C6B8; font-size: 0.95rem; }

.ic-lg {
  flex: none;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cform { --cf-accent: var(--plum); --cf-on: #FFFFFF; }

.cform-inner h2 { font-size: 1.5rem; }


/* ---------- Contact form ---------- */
.cform {
  padding: 0 var(--gutter, 20px);
  margin: clamp(40px, 6vw, 72px) 0;
}

.cform-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-top: 4px solid var(--cf-accent);
  border-radius: 4px;
  background: color-mix(in srgb, currentColor 4%, transparent);
}

.cform-inner h2 {
  margin: 0 0 8px;
}

.cform-intro {
  margin: 0 0 24px;
  opacity: 0.85;
}

.cform-form {
  display: grid;
  gap: 18px;
}

.cform-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cform-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.cform input[type="text"],
.cform input[type="email"],
.cform select,
.cform textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 10px;
}

.cform textarea {
  resize: vertical;
  min-height: 150px;
}

.cform option {
  color: #111111;
  background: #FFFFFF;
}

.cform input:focus,
.cform select:focus,
.cform textarea:focus,
.cform-btn:focus-visible {
  outline: 3px solid var(--cf-accent);
  outline-offset: 2px;
}

.cform-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.cform-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cf-accent);
}

.cform-consent a {
  color: inherit;
  text-decoration: underline;
}

.cform-btn {
  justify-self: start;
  min-height: 50px;
  padding: 0 28px;
  font: inherit;
  font-weight: 700;
  color: var(--cf-on);
  background: var(--cf-accent);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.cform-btn:hover {
  filter: brightness(1.08);
}

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

.cform-status {
  display: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.cform-status:target {
  display: block;
}

.cform-ok {
  background: color-mix(in srgb, var(--cf-accent) 18%, transparent);
  border: 1px solid var(--cf-accent);
}

.cform-err {
  background: color-mix(in srgb, #C0392B 14%, transparent);
  border: 1px solid #C0392B;
}

@media (min-width: 720px) {
  .cform-form {
    grid-template-columns: 1fr 1fr;
  }

  .cform-wide,
  .cform-btn {
    grid-column: 1 / -1;
  }
}


@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .toc { position: static; }
}

@media (max-width: 700px) {
  .page-hero { padding: 32px 0 24px; }
  .contact-card { flex-direction: column; padding: 20px 18px; }
  .cform-btn { width: 100%; justify-self: stretch; }
}
