/* Daniel Craparo | Author — site styles
   Colors and fonts match the original Squarespace design. */
:root {
  --ink: #000;
  --paper: #fff;
  --stone: #f4f4f3;
  --accent: #7877e6;
  --accent-ink: #fff;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px var(--gutter);
  position: relative; z-index: 10;
}
.site-header.over-hero { position: absolute; top: 0; left: 0; right: 0; color: #fff; }
.brand { font-family: var(--display); text-transform: uppercase; text-decoration: none; font-size: 17px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a.text { font-size: 13px; text-decoration: none; }
.nav a.text:hover, .nav a.text[aria-current="page"] { text-decoration: underline; }
.socials { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.socials a {
  width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
}
.socials svg { width: 13px; height: 13px; fill: currentColor; }
.socials.square a { border: 0; border-radius: 0; background: var(--ink); color: var(--paper); width: 20px; height: 20px; }
.socials.square svg { width: 11px; height: 11px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 32px; border: 0; border-radius: 300px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 13px/1 var(--body); text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn.wide { min-width: min(300px, 100%); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  color: #fff; text-align: center; padding: 120px var(--gutter) 80px;
  background: #000 url("../img/hero-dots.webp") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.hero > div { position: relative; }
.hero h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 5.6vw, 88px); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 12px;
}
.hero p { margin: 0 0 40px; font-size: 14px; }

/* ---------- Books ---------- */
.book { background: var(--paper); padding: clamp(48px, 8vw, 120px) 0 clamp(48px, 6vw, 90px); }
.book h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  text-align: center; margin: 0 var(--gutter) clamp(32px, 5vw, 72px);
  letter-spacing: -0.02em; line-height: 1; font-size: clamp(36px, 10.9vw, 170px);
}
.book.long h2 { font-size: clamp(30px, 8.5vw, 134px); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.book-copy { padding: 0 var(--gutter); max-width: 620px; margin: 0 auto; font-size: 14px; }
.book-copy p { margin: 0 0 1.1em; }
.book-copy .quote { font-size: clamp(18px, 1.65vw, 25px); line-height: 1.35; margin-bottom: 1.2em; }
.book-copy h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.15; margin: 0 0 1em; }
.book-copy .btn { margin-top: 40px; }
.book-cover a { display: block; }
.book-cover img { width: 100%; }

/* ---------- Newsletter marquee ---------- */
.newsletter { background: var(--stone); padding: 40px 0 80px; text-align: center; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: scroll 28s linear infinite; }
.marquee span {
  font-family: var(--display); text-transform: uppercase; white-space: nowrap;
  font-size: clamp(64px, 11vw, 170px); line-height: 1.05; letter-spacing: -0.02em; padding-right: .35em;
}
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }
.newsletter .btn { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--stone); text-align: center; padding: 80px var(--gutter) 120px; }
.site-footer .email {
  font-family: var(--display); text-transform: uppercase; text-decoration: none;
  font-size: clamp(16px, 2.3vw, 36px); word-break: break-word;
}
.site-footer .socials { justify-content: center; margin-top: 32px; gap: 5px; }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); padding: 24px var(--gutter) 96px; align-items: start; }
.contact h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; margin: 16px 0 24px; }
.contact .intro { font-size: 12px; max-width: 480px; }
.contact .intro p { margin: 0 0 1em; }
.contact .photo img { width: 100%; aspect-ratio: 1 / 1.25; object-fit: cover; }
form { margin-top: 48px; max-width: 520px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend, .field > label { display: block; font-size: 13px; margin-bottom: 6px; }
.req { font-weight: 400; font-size: 11px; opacity: .7; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row label { font-size: 11px; display: block; margin-bottom: 4px; }
.field { margin-bottom: 18px; }
input, textarea {
  width: 100%; font: 400 16px var(--body); color: var(--ink);
  background: transparent; border: 1px solid var(--ink); border-radius: 24px; padding: 8px 15px;
}
textarea { min-height: 120px; border-radius: 18px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: 14px; min-height: 1.5em; }
.form-status.ok { color: #1d6b2f; }
.form-status.err { color: #a11; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
  .book-grid, .contact { grid-template-columns: 1fr; }
  .book-grid .book-cover { order: -1; margin-bottom: 32px; }
  .book-copy .btn { width: 100%; }
  .row { grid-template-columns: 1fr; }
}
