:root {
  --ink: #1F2A44;
  --cream: #F4ECDD;
  --paper: #FAF6EE;
  --muted: #5B5F70;
  --line: #E2D6BE;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); }
img { max-width: 100%; display: block; }
a { color: inherit; }

.caps { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 140px; min-height: 48px; padding: 0 28px;
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: transparent; color: var(--cream); }
.btn-ghost-light { background: transparent; color: var(--cream); }
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #A8322D; outline-offset: 3px;
}

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #3E342B; }
.hero { background: #0B0B0B; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
}
.hero-copy { position: absolute; z-index: 1; left: 6vw; right: 6vw; top: 24vh; color: var(--cream); }
.hero h1 { margin: 0; font-weight: 500; font-size: clamp(50px, 7vw, 112px); line-height: 1; letter-spacing: 0.1em; }
.hero .byline { margin: 14px 0 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* About */
.about { padding: 48px 6vw 112px; }
.about-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6vw; align-items: center; }
.about img { width: 100%; height: auto; }
.about p { margin: 0 0 20px; max-width: 34em; font-size: 19px; line-height: 1.6; }
.about p:last-child { margin-bottom: 0; }

/* Work */
.work { padding: 96px 6vw 72px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; color: var(--muted); }
.grid { columns: 3 320px; column-gap: 16px; }
.grid img { width: 100%; height: auto; margin: 0 0 16px; break-inside: avoid; background: var(--line); }

.cta { padding: 24px 6vw 112px; text-align: center; }
.cta p { margin: 0 0 24px; }

footer { border-top: 1px solid var(--line); padding: 28px 6vw 40px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer em { font-style: italic; letter-spacing: 0; text-transform: none; font-size: 15px; }

/* Book page */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 6vw; border-bottom: 1px solid var(--line); }
.topbar .mark { font-size: 24px; letter-spacing: 0.1em; text-decoration: none; }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { text-decoration: none; }
.scrollbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  padding: 16px 6vw; background: rgba(250, 246, 238, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translateY(-100%); visibility: hidden;
  transition: transform 260ms ease, visibility 0s linear 260ms;
}
.scrollbar.is-visible { transform: none; visibility: visible; transition: transform 260ms ease; }
.scrollbar .mark { font-size: 20px; }
.scrollbar nav a { padding: 12px 0; }
html { scroll-behavior: smooth; }
#work, #about { scroll-margin-top: 64px; }

.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - 77px); }
.book-photo { position: relative; background: var(--line); }
.book-photo img { position: sticky; top: 0; width: 100%; height: 100vh; object-fit: cover; object-position: 50% 25%; }
.book-form { padding: 72px 6vw 96px; max-width: 720px; }
.book-form h1 { margin: 0; font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.book-form .lede { margin: 18px 0 40px; font-size: 18px; line-height: 1.55; color: var(--muted); }

form { display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: grid; gap: 8px; }
label span { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; font: 17px/1.4 var(--serif); color: var(--ink);
  background: #FFFDF8; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px;
}
textarea { min-height: 140px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #C9B999; }
.honey { position: absolute; left: -9999px; }
form .btn { justify-self: start; margin-top: 6px; }

.thanks { min-height: calc(100vh - 77px); display: grid; place-content: center; text-align: center; padding: 48px 6vw; gap: 18px; }
.thanks h1 { margin: 0; font-weight: 500; font-size: clamp(40px, 6vw, 72px); }
.thanks p { margin: 0 0 12px; font-size: 18px; color: var(--muted); }

@media (max-width: 820px) {
  .hero img { object-position: 62% 50%; }
  .hero::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0) 60%); }
  .hero-copy { top: auto; bottom: 6vh; text-align: center; }
  .hero .actions { justify-content: center; }
  .hero .byline { font-size: 11px; letter-spacing: 0.2em; }
  .hero .actions .btn { flex: 1; min-width: 0; }
  .book { grid-template-columns: 1fr; }
  .book-photo img { position: static; height: 46vh; }
  .book-form { padding: 48px 6vw 72px; }
  .row { grid-template-columns: 1fr; }
  .about { padding: 24px 6vw 88px; }
  .about-body { grid-template-columns: 1fr; gap: 36px; }
  .scrollbar { padding: 14px 5vw; }
  .scrollbar .mark { font-size: 17px; }
  .scrollbar nav { gap: 16px; }
  .scrollbar nav a { font-size: 11px; letter-spacing: 0.2em; }
  .about p { font-size: 17px; }
  form .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .btn, .scrollbar, .scrollbar.is-visible { transition: none; } html { scroll-behavior: auto; } }
