* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  --paper: #f5f3ec;
  --surface: #fffdf8;
  --ink: #24312e;
  --muted: #5b6963;
  --line: #cfd5ca;
  --accent: #9b4b31;
  --accent-ink: #fffdf8;
  --art-a: #dbe7d9;
  --art-b: #a9c6b3;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.theme-kristin {
  --paper: #f3f0e9;
  --surface: #fffdf8;
  --ink: #292e2b;
  --muted: #626862;
  --line: #d7d3c9;
  --accent: #7d4d3b;
  --art-a: #dfd2bd;
  --art-b: #9f7465;
}

body.theme-family {
  --paper: #102631;
  --surface: #19343e;
  --ink: #f6f0e4;
  --muted: #c1cfc9;
  --line: #44616a;
  --accent: #ebc487;
  --accent-ink: #142b34;
  --art-a: #284b56;
  --art-b: #456870;
}

a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 10;
  padding: .6rem .9rem;
  color: var(--accent-ink);
  background: var(--accent);
}
.skip-link:focus { top: 1rem; }

.shell {
  width: min(1120px, calc(100% - 3rem));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.1rem 0 1.8rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .9rem;
  line-height: 1;
}

.top-note, .eyebrow, .micro {
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.top-note { color: var(--muted); text-align: right; }

main { flex: 1; display: grid; align-items: center; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}

.eyebrow { margin: 0 0 1.35rem; color: var(--accent); }

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.7vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.03;
}

.lead {
  max-width: 36rem;
  margin: 1.9rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.note {
  max-width: 36rem;
  margin-top: 2.7rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.note .micro { flex: 0 0 7.5rem; margin: .3rem 0 0; color: var(--accent); }
.note p { margin: 0; color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.4rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.visual {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(145deg, var(--art-a), var(--art-b));
  isolation: isolate;
}
.visual::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255,255,255,.55);
}
.visual::after {
  content: "";
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  right: -25%;
  top: -25%;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
}
.visual-word {
  position: absolute;
  left: 9%;
  bottom: 8%;
  z-index: 1;
  max-width: 80%;
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  letter-spacing: -.06em;
  line-height: 1;
}
.visual-label {
  position: absolute;
  top: 8%;
  left: 9%;
  z-index: 1;
  color: #fffdf8;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.theme-family .visual-word { color: #f6f0e4; }
.theme-family .visual-label { color: #f6f0e4; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 0 2.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.footer p { margin: 0; }

@media (max-width: 760px) {
  .shell { width: min(100% - 2rem, 640px); }
  .topbar { align-items: flex-start; padding: 1.4rem 0; }
  .top-note { max-width: 10rem; }
  .hero { grid-template-columns: 1fr; padding: 4rem 0 3rem; }
  .visual { min-height: 330px; }
  .note { display: block; }
  .note .micro { margin-bottom: .6rem; }
  .footer { align-items: flex-start; flex-direction: column; gap: .35rem; }
}

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