:root {
  color-scheme: light;
  --background: 42 35% 94%;
  --foreground: 30 17% 16%;
  --border: 35 17% 78%;
  --input: 35 17% 78%;
  --ring: 155 22% 30%;
  --card: 42 34% 96%;
  --card-foreground: 30 17% 16%;
  --popover: 42 34% 96%;
  --popover-foreground: 30 17% 16%;
  --primary: 154 23% 29%;
  --primary-foreground: 42 35% 95%;
  --secondary: 35 29% 86%;
  --secondary-foreground: 30 17% 19%;
  --muted: 40 20% 88%;
  --muted-foreground: 30 10% 42%;
  --accent: 8 34% 48%;
  --accent-foreground: 42 35% 96%;
  --destructive: 0 63% 42%;
  --destructive-foreground: 0 0% 98%;
  --app-font-sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --app-font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --app-font-mono: "SFMono-Regular", Consolas, monospace;
  --radius: 0.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  min-width: 320px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--app-font-sans);
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button { color: inherit; }
::selection { background: hsl(154 23% 29% / .18); }
:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 4px; }

.site-shell { min-height: 100dvh; overflow: clip; }
.topbar {
  position: relative;
  z-index: 5;
  width: min(100% - 72px, 1320px);
  margin: auto;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid hsl(var(--foreground) / .16);
}
.wordmark {
  text-decoration: none;
  color: inherit;
  font-family: var(--app-font-serif);
  font-size: 1.25rem;
  letter-spacing: -.035em;
}
.wordmark span { color: hsl(var(--accent)); }
.desktop-nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 62px); }
.nav-link, .notes-trigger {
  border: 0;
  background: none;
  color: hsl(var(--foreground));
  padding: 9px 0;
  font-size: .78rem;
  letter-spacing: .035em;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease;
}
.nav-link:hover, .notes-trigger:hover { color: hsl(var(--accent)); }
.notes-trigger {
  border-bottom: 1px solid hsl(var(--foreground) / .55);
  padding-bottom: 5px;
}
.menu-toggle { display: none; }

.hero {
  width: min(100% - 72px, 1320px);
  min-height: min(760px, calc(100dvh - 94px));
  margin: auto;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(46px, 8vw, 130px);
  padding: clamp(72px, 10vw, 150px) 0 clamp(78px, 11vw, 154px);
}
.hero-copy { position: relative; z-index: 1; padding: 0 0 20px 5.8%; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 29px;
  color: hsl(var(--primary));
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 35px; height: 1px; background: hsl(var(--accent)); }
.hero h1 {
  max-width: 630px;
  margin: 0;
  font-family: var(--app-font-serif);
  font-weight: 400;
  font-size: clamp(4.1rem, 8vw, 8.6rem);
  line-height: .87;
  letter-spacing: -.075em;
}
.hero h1 .suffix {
  display: block;
  padding-left: .26em;
  font-size: .67em;
  font-style: italic;
  letter-spacing: -.055em;
}
.hero-rule { width: 62px; height: 1px; background: hsl(var(--accent)); margin: 39px 0 20px; }
.hero-place {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-family: var(--app-font-serif);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  letter-spacing: -.015em;
}
.hero-image-wrap {
  position: relative;
  height: clamp(420px, 54vw, 650px);
  min-height: 390px;
  margin-right: 4.4%;
}
.hero-image-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 26px -24px -24px 26px;
  border: 1px solid hsl(var(--primary) / .38);
}
.hero-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(.77) contrast(.96);
}
.image-label {
  position: absolute;
  right: 0;
  bottom: -47px;
  color: hsl(var(--muted-foreground));
  font-family: var(--app-font-serif);
  font-size: .75rem;
  font-style: italic;
}
.practice-section {
  padding: clamp(80px, 10vw, 132px) 36px clamp(92px, 12vw, 155px);
  background: hsl(154 20% 24%);
  color: hsl(42 35% 93%);
}
.practice-inner { width: min(100%, 1120px); margin: auto; }
.practice-grid { border-top: 1px solid hsl(42 35% 93% / .28); }
.practice-item {
  display: grid;
  grid-template-columns: 98px 1fr 50px;
  align-items: center;
  min-height: 142px;
  border-bottom: 1px solid hsl(42 35% 93% / .28);
}
.practice-index {
  color: hsl(41 28% 73%);
  font-family: var(--app-font-mono);
  font-size: .7rem;
}
.practice-item h2 {
  margin: 0;
  font-family: var(--app-font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  letter-spacing: -.045em;
}
.practice-mark {
  color: hsl(41 28% 73%);
  font-family: var(--app-font-serif);
  font-size: 1.75rem;
  text-align: right;
}
.closing {
  position: relative;
  padding: 90px 36px 68px;
}
.closing-inner {
  width: min(100%, 1320px);
  min-height: 260px;
  margin: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.closing-title {
  margin: 0;
  max-width: 650px;
  color: hsl(var(--primary));
  font-family: var(--app-font-serif);
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .98;
}
.closing-note {
  margin: 8px 0 0;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid hsl(var(--foreground) / .55);
  background: transparent;
  font-size: .75rem;
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.closing-note:hover { color: hsl(var(--accent)); border-color: hsl(var(--accent)); }
.footer {
  width: min(100% - 72px, 1320px);
  min-height: 78px;
  margin: auto;
  border-top: 1px solid hsl(var(--foreground) / .2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: hsl(var(--muted-foreground));
  font-size: .68rem;
  letter-spacing: .025em;
}
.footer p { margin: 0; }
.demo-credit { color: hsl(var(--foreground)); }

.mobile-nav { display: none; }
.mobile-nav[hidden] { display: none; }
.dialog-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: hsl(30 17% 12% / .56);
  animation: veil-in .18s ease-out both;
}
.notes-dialog {
  width: min(100%, 590px);
  padding: clamp(25px, 5vw, 48px);
  background: hsl(var(--background));
  border: 1px solid hsl(var(--foreground) / .2);
  box-shadow: 0 24px 85px hsl(30 17% 10% / .2);
  animation: card-in .22s ease-out both;
}
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.dialog-head h2 {
  margin: 0;
  font-family: var(--app-font-serif);
  font-size: clamp(2.4rem, 7vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: 1;
}
.dialog-close {
  width: 42px;
  height: 42px;
  border: 1px solid hsl(var(--foreground) / .25);
  background: transparent;
  cursor: pointer;
  font-size: .76rem;
}
.dialog-close:hover { background: hsl(var(--secondary)); }
.dialog-notice {
  margin: 22px 0 16px;
  color: hsl(var(--primary));
  font-size: .78rem;
}
.note-input {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 16px;
  resize: vertical;
  border: 1px solid hsl(var(--border));
  border-radius: 0;
  background: hsl(42 35% 97% / .62);
  color: hsl(var(--foreground));
  line-height: 1.6;
}
.note-input::placeholder { color: hsl(var(--muted-foreground) / .8); }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; }
.dialog-actions .dialog-close { width: auto; min-width: 94px; padding: 0 18px; }
.clear-button {
  border: 0;
  border-bottom: 1px solid hsl(var(--foreground) / .5);
  padding: 9px 0;
  background: transparent;
  font-size: .76rem;
  cursor: pointer;
}
.clear-button:hover { color: hsl(var(--accent)); border-color: hsl(var(--accent)); }
.saved-state { min-height: 1em; margin: 12px 0 0; color: hsl(var(--muted-foreground)); font-size: .67rem; }

@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 760px) {
  .topbar { width: calc(100% - 40px); height: 76px; }
  .desktop-nav { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 10px 12px;
    border: 0;
    background: transparent;
    font-size: .74rem;
    cursor: pointer;
  }
  .menu-glyph { display: grid; gap: 5px; width: 20px; }
  .menu-glyph span { display: block; height: 1px; width: 100%; background: hsl(var(--foreground)); }
  .mobile-nav {
    position: absolute;
    top: 75px;
    left: -20px;
    right: -20px;
    display: grid;
    gap: 0;
    padding: 9px 20px 18px;
    border-bottom: 1px solid hsl(var(--foreground) / .18);
    background: hsl(var(--background));
  }
  .mobile-nav .nav-link, .mobile-nav .notes-trigger {
    display: block;
    width: 100%;
    padding: 16px 0;
    text-align: left;
    border-bottom: 1px solid hsl(var(--foreground) / .12);
  }
  .hero {
    width: calc(100% - 40px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 47px;
    padding: 80px 0 76px;
  }
  .hero-copy { padding: 0 0 0 3px; }
  .eyebrow { margin-bottom: 25px; }
  .hero h1 { font-size: clamp(4rem, 16vw, 7rem); }
  .hero-rule { margin-top: 30px; }
  .hero-image-wrap { height: clamp(330px, 83vw, 520px); min-height: 0; margin: 0 18px 0 0; }
  .hero-image-wrap::before { inset: 16px -16px -16px 16px; }
  .image-label { bottom: -35px; }
  .practice-section { padding: 75px 22px 82px; }
  .practice-item { grid-template-columns: 44px 1fr 30px; min-height: 108px; }
  .practice-item h2 { font-size: clamp(1.65rem, 7vw, 2.65rem); }
  .closing { padding: 74px 22px 62px; }
  .closing-inner { min-height: 240px; flex-direction: column; justify-content: flex-start; }
  .closing-note { margin-top: 5px; }
  .footer { width: calc(100% - 40px); min-height: 80px; align-items: flex-start; padding: 20px 0; flex-direction: column; gap: 9px; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 3.65rem; }
  .practice-item { grid-template-columns: 34px 1fr 24px; }
  .practice-item h2 { font-size: 1.55rem; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dialog-backdrop[hidden] { display: none !important; }
