:root {
  --bg: #f2efe9;
  --ink: #1a1a1a;
  --purple: #6b2076;
  --purple-dark: #521a5b;
  --orange: #e2551a;
  --green: #1b4020;
  --gold: #c4a05c;
  --muted: #6b655c;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--purple);
  color: var(--bg);
}

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

/* ---------- Header / Nav ---------- */

.site-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(196, 160, 92, 0.55);
}

.brand img {
  width: 52px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav a:hover {
  border-bottom-color: var(--gold);
}

nav a[aria-current="page"] {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

/* ---------- Layout ---------- */

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 28px 96px;
}

.prose {
  max-width: 680px;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
  margin: 84px 0;
}

/* ---------- Type ---------- */

p {
  margin: 0 0 26px;
}

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

strong {
  font-weight: 600;
}

.section {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 32px);
  line-height: 1.2;
  color: var(--purple);
  margin: 0 0 30px;
}

.item {
  margin-bottom: 30px;
}

/* ---------- Hero (home) ---------- */

.hero {
  padding: 24px 0 8px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(27px, 7vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}

.hero .l2 {
  display: block;
  margin: 0.55em 0 0;
  color: var(--purple);
  font-style: italic;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  max-width: 620px;
  margin-top: 40px;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  max-width: 680px;
}

.page-sub {
  font-size: 20px;
  line-height: 1.5;
  max-width: 620px;
  margin-top: 28px;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.btn {
  display: inline-block;
  background: var(--purple);
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 15px 30px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: var(--purple-dark);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  box-shadow: inset 0 0 0 2px var(--purple);
}

.btn-outline:hover {
  background: var(--purple);
  color: var(--bg);
}

.btn-disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-disabled:hover {
  background: transparent;
  color: var(--purple);
}

.tbd-note {
  align-self: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Contact page ---------- */

.contact-line {
  margin-top: 40px;
  font-family: var(--serif);
  font-size: clamp(19px, 4vw, 24px);
}

.big-email {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
  overflow-wrap: anywhere;
}

.big-email:hover {
  border-bottom-color: var(--orange);
}

.contact-line .dot {
  color: var(--gold);
  margin: 0 12px;
}

.phone-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.phone-link:hover {
  border-bottom-color: var(--ink);
}

/* ---------- Footnotes ---------- */

sup {
  font-size: 0.65em;
  line-height: 0;
}

sup a {
  color: var(--purple);
  text-decoration: none;
}

.footnotes {
  max-width: 680px;
  margin-top: 72px;
  border-top: 1px solid rgba(196, 160, 92, 0.55);
  padding-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.footnotes p {
  margin: 0 0 6px;
}

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

.site-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px;
  border-top: 1px solid rgba(196, 160, 92, 0.55);
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(196, 160, 92, 0.8);
  text-underline-offset: 3px;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 20px;
  }

  main {
    padding: 56px 24px 72px;
  }

  .rule {
    margin: 60px 0;
  }

  .hero .l1a,
  .hero .l1b {
    display: block;
  }

  .hero-sub,
  .page-sub {
    font-size: 18px;
  }

  .contact-line .dot {
    display: block;
    height: 10px;
    margin: 0;
    visibility: hidden;
  }
}
