:root {
  --ink: #1c2430;
  --wisteria: #4c2e63;
  --mist: #f3f6f8;
  --paper: #ffffff;
  --line: #d5dee6;
  --muted: #4d5968;
  --btn: 11px;
  --photo: 22px;
  --max: 1080px;
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  --sans: Outfit, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

img { max-width: 100%; display: block; }

a { color: var(--wisteria); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--wisteria);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 6;
}

.skip:focus { top: 12px; }

.site-header {
  background: var(--paper);
  border-top: 6px solid var(--wisteria);
  position: relative;
  z-index: 4;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  max-width: 22rem;
}

.brand img { width: 44px; height: 44px; flex: none; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--btn);
  font: inherit;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a[aria-current="page"]:not(.btn) {
  box-shadow: inset 0 -2px 0 var(--wisteria);
}

.btn {
  display: inline-block;
  background: var(--wisteria);
  color: var(--paper);
  text-decoration: none;
  border: 0;
  border-radius: var(--btn);
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-links a.btn { color: var(--paper); }

.btn:hover, .btn:focus { background: #3a224c; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.hero { padding: 56px 0 28px; }

.hero-copy { max-width: 40rem; }

.kicker {
  margin: 0 0 12px;
  color: var(--wisteria);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 16px; }

.lede { font-size: 1.15rem; color: var(--ink); max-width: 38rem; }

.hero-photo {
  margin-top: 32px;
  width: 100%;
  height: auto;
  border-radius: var(--photo);
  border: 1px solid var(--line);
}

.band { padding: 28px 0 56px; }

.band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }

.section-intro { max-width: 42rem; color: var(--ink); }

.note-grid, .step-grid, .split, .glance, .footer-grid {
  display: grid;
  gap: 18px;
}

.note-grid { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }

.note, .step, .sheet, .service-copy, .contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--wisteria);
  border-radius: 0 var(--btn) var(--btn) 0;
  padding: 18px 16px 16px;
}

.idx {
  margin: 0 0 8px;
  color: var(--wisteria);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.step-grid { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }

.split { grid-template-columns: 1fr 1fr; margin-top: 22px; align-items: stretch; }

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--photo) var(--photo) 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.service-copy { border-radius: 0 0 var(--btn) var(--btn); }

.sheet { margin-top: 8px; padding: 28px 24px; }

.glance { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; }

.glance div { border-top: 1px solid var(--line); padding-top: 10px; }

.glance dt { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.glance dd { margin: 4px 0 0; }

.page-hero { padding: 42px 0 10px; }

.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }

.page-intro { max-width: 40rem; font-size: 1.12rem; }

.reading { padding-bottom: 64px; }

.reading h2 { font-size: 1.6rem; margin: 28px 0 8px; }

.reading img, .sheet > img {
  width: 100%;
  height: auto;
  border-radius: var(--photo);
  border: 1px solid var(--line);
  margin: 12px 0 18px;
}

.reading ul, .reading ol { padding-left: 1.2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding-bottom: 64px;
}

label { display: block; font-weight: 600; margin: 12px 0 6px; }

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--btn);
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

textarea { min-height: 140px; resize: vertical; }

.form-note { color: var(--muted); font-size: 0.95rem; }

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
}

.footer-facts p { margin: 0 0 6px; }

.footer-grid { grid-template-columns: repeat(3, 1fr); margin-top: 22px; }

.footer-grid h2 { font-size: 1.05rem; margin-bottom: 8px; }

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links a { text-decoration: none; }

.footer-links li { margin: 6px 0; }

.footer-copy { margin-top: 22px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(10px); }

.reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .note-grid, .step-grid, .split, .glance, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-card img { height: auto; }
}

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; }
  .nav-toggle { display: inline-block; }
  .site-nav { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 12px;
    min-width: 200px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nav-links.is-open { display: flex; }
}
