:root {
  color-scheme: light dark;
  --paper: #f7f3f2;
  --ink: #211b25;
  --muted: #6d6470;
  --line: rgba(72, 52, 72, 0.14);
  --surface: rgba(255, 255, 255, 0.72);
  --berry: #a72f64;
  --coral: #df6b6a;
  --apricot: #efa46e;
  --lilac: #8d79d6;
  --teal: #327d7d;
  --shadow: 0 24px 72px rgba(71, 40, 67, 0.11);
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 4%, rgba(239, 164, 110, 0.20), transparent 28rem),
    radial-gradient(circle at 91% 16%, rgba(141, 121, 214, 0.17), transparent 31rem),
    radial-gradient(circle at 52% 92%, rgba(50, 125, 125, 0.09), transparent 30rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--berry);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid rgba(141, 121, 214, 0.42);
  outline-offset: 4px;
}

.shell {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
  padding: 1.25rem 0 5rem;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 2.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark {
  position: relative;
  width: 2.15rem;
  height: 1.55rem;
  flex: 0 0 auto;
}

.mark::before,
.mark::after {
  position: absolute;
  top: 0.07rem;
  width: 1.28rem;
  height: 1.28rem;
  border: 2px solid;
  border-radius: 50%;
  content: "";
}

.mark::before {
  left: 0.07rem;
  border-color: var(--coral);
}

.mark::after {
  right: 0.07rem;
  border-color: var(--lilac);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  font-size: 0.86rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    linear-gradient(125deg, rgba(223, 107, 106, 0.18), rgba(141, 121, 214, 0.13) 62%, rgba(50, 125, 125, 0.10));
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  top: -4.2rem;
  right: -3.4rem;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(141, 121, 214, 0.32);
  border-radius: 50%;
  box-shadow:
    -3.1rem 2.3rem 0 -1px rgba(0, 0, 0, 0),
    -3.1rem 2.3rem 0 0 rgba(223, 107, 106, 0.22);
  content: "";
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--berry);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", sans-serif;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.15rem, 8vw, 4.5rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lead {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
}

.meta {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.content {
  padding: clamp(1.25rem, 4.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(71, 40, 67, 0.06);
  backdrop-filter: blur(24px);
}

.content section + section {
  margin-top: 2.8rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p { margin: 0.75rem 0; }

ul {
  margin: 0.8rem 0;
  padding-left: 1.25rem;
}

li + li { margin-top: 0.42rem; }

.note {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--apricot);
  border-radius: 0 1rem 1rem 0;
  background: rgba(239, 164, 110, 0.10);
}

.contact-card {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid rgba(167, 47, 100, 0.18);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(223, 107, 106, 0.10), rgba(141, 121, 214, 0.09));
}

.contact-card strong { font-size: 1.05rem; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0c13;
    --ink: #f7f1f8;
    --muted: #bdb3c1;
    --line: rgba(239, 227, 240, 0.14);
    --surface: rgba(30, 24, 35, 0.78);
    --berry: #f28ab3;
    --coral: #f18b80;
    --apricot: #f3b27c;
    --lilac: #b7a6ff;
    --teal: #79c8c4;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  }

  body {
    background:
      radial-gradient(circle at 5% 2%, rgba(207, 91, 88, 0.17), transparent 26rem),
      radial-gradient(circle at 94% 15%, rgba(112, 92, 206, 0.18), transparent 30rem),
      radial-gradient(circle at 50% 100%, rgba(50, 125, 125, 0.08), transparent 31rem),
      var(--paper);
  }

  .hero {
    background:
      linear-gradient(135deg, rgba(46, 32, 46, 0.85), rgba(25, 21, 32, 0.72)),
      linear-gradient(125deg, rgba(223, 107, 106, 0.18), rgba(141, 121, 214, 0.16) 62%, rgba(50, 125, 125, 0.11));
  }

  .meta { background: rgba(255, 255, 255, 0.04); }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 1.15rem, 760px);
    padding-top: 0.7rem;
  }

  .masthead {
    align-items: flex-start;
    padding-inline: 0.25rem;
  }

  .nav {
    max-width: 9rem;
    gap: 0.45rem 0.8rem;
  }

  .hero, .content { border-radius: 1.5rem; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-contrast: more) {
  :root { --line: currentColor; }
  .hero, .content, .contact-card { box-shadow: none; }
}
