:root {
  --cream: #f6efe4;
  --paper: #fbf7f0;
  --ink: #2a211b;
  --muted: #5e5248;
  --rust: #a4462a;
  --rust-dark: #7f3520;
  --olive: #5b5f3a;
  --line: #e2d6c4;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h2.small { font-size: 1.3rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: .5em 1em; z-index: 10; }

/* Buttons */
.btn {
  display: inline-block; background: var(--rust); color: #fff; text-decoration: none;
  font-weight: 600; padding: .8em 1.4em; border-radius: 999px; border: 0; font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--rust-dark); }
.btn-sm { padding: .5em 1.1em; font-size: .95rem; }
.btn-light { background: var(--paper); color: var(--rust-dark); }
.btn-light:hover { background: #fff; }
.link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(251,247,240,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: center; height: 68px; }
.brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav ul { display: flex; gap: 1.6rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav li a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 1rem; }
.nav li a:not(.btn):hover { color: var(--rust); }

/* Hero */
.hero { background: var(--cream); padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Placeholder device */
.hero-visual { display: flex; justify-content: center; }
.tablet {
  width: min(100%, 400px); aspect-ratio: 4 / 3; background: var(--ink);
  border-radius: 28px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(42,33,27,.45);
  transform: rotate(-4deg);
}
.screen {
  height: 100%; border-radius: 12px; background: var(--paper);
  display: grid; align-content: center; gap: 14px; padding: 0 12%;
}
.aa { font-family: var(--serif); font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; color: var(--ink); }
.bar { height: 12px; border-radius: 6px; background: var(--line); width: 100%; }
.bar.short { width: 60%; }
.toggle { width: 56px; height: 30px; border-radius: 15px; background: var(--olive); position: relative; justify-self: end; }
.toggle i { position: absolute; right: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; }

/* Sections */
.section { padding: 88px 0; }
.alt { background: var(--cream); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { font-size: 1.05rem; }
.for { color: var(--olive); font-style: italic; }
.meta { color: var(--muted); font-size: .95rem; margin-top: auto; }
.note { margin-top: 2rem; color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 1.5rem; }
.principles h3 { font-size: 1.15rem; }
.principles p { color: var(--muted); font-size: 1.05rem; }

.strip { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tags li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .9em; font-size: .98rem; }
.proof { display: flex; flex-wrap: wrap; gap: 2rem; list-style: none; padding: 0; margin: 0; font-weight: 600; color: var(--olive); }

.about { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; max-width: 900px; }
.avatar { width: 200px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 1.5rem; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.tile h3 { font-size: 1.15rem; }
.tile p { font-size: 1.02rem; color: var(--muted); }

/* Book */
.book { background: var(--rust); color: #fff; }
.book h2, .book a { color: #fff; }
.form { display: grid; gap: 16px; margin: 2rem 0 1.5rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 1rem; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 2px solid transparent;
  border-radius: 10px; padding: .7em .8em;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form button { justify-self: start; }
.book :focus-visible { outline-color: #fff; }
.fine { font-size: .98rem; opacity: .92; }

/* Footer */
.footer { background: var(--ink); color: #e9dfd2; padding: 36px 0; font-size: .98rem; }
.footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Mobile */
@media (max-width: 900px) {
  .hero-grid, .cards, .tiles { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; }
  .tablet { width: min(80%, 320px); }
}
@media (max-width: 640px) {
  .nav li:not(:last-child) { display: none; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .principles, .row { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .avatar { width: 140px; }
}
