/* samtuckerby.com: the book printed as a two-color linocut, mustard and black ink on white paper (series Bible). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/literata.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/literata-italic.woff2") format("woff2"); }

:root {
  --mustard: #E8B02E;   /* the cover */
  --ink: #17130B;       /* the linocut black */
  --paper: #FFFFFF;     /* the paper the drawings are printed on */
  --wash: #F8E6B4;      /* mustard thinned with white, for quiet panels */
  --soft-ink: #4A4133;  /* secondary text */
  --display: "Fraunces", Georgia, serif;
  --text: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 19px/1.68 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
h2 { font: 800 clamp(34px, 4.6vw, 54px)/1.04 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -0.015em; margin: 0 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Masthead */
.masthead { background: var(--mustard); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 18px; border-bottom: 3px solid var(--ink); }
.wordmark { font: 800 24px/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; align-items: center; gap: 26px; font: 600 17px/1 var(--display); }
nav a { text-decoration: none; padding: 6px 0; }
nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav-buy { background: var(--ink); color: var(--mustard); padding: 11px 16px; border-radius: 3px; }
.nav-buy:hover { text-decoration: none; background: #3a3122; }

/* Hero: the title set like the cover, the parrot as big as the page allows */
.hero { background: var(--mustard); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); align-items: end; gap: 24px; padding-top: 56px; }
.hero-words { padding-bottom: 72px; }
h1 { font: 900 clamp(52px, 7.6vw, 112px)/0.94 var(--display); white-space: nowrap; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -0.03em; margin: 0 0 26px; }
.tagline { font: italic 500 clamp(21px, 2.3vw, 27px)/1.28 var(--display); font-variation-settings: "SOFT" 100; margin: 0 0 22px; max-width: 32ch; }
.hook { font-size: 21px; line-height: 1.55; margin: 0 0 32px; max-width: 34ch; }
.hero-parrot { mix-blend-mode: multiply; width: 118%; max-width: none; margin: 0 -8% -6% -10%; }
.button { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; font: 700 18px/1 var(--display); padding: 19px 28px; border-radius: 3px; }
.button:hover { background: #3a3122; }
.stores { font-size: 16px; margin: 16px 0 0; }

/* Meet the parrot */
.meet { padding: 104px 0 96px; }
.meet-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.big { font-size: 26px; line-height: 1.5; margin: 0 0 22px; }
.promise { font: italic 700 clamp(26px, 3vw, 34px)/1.2 var(--display); font-variation-settings: "SOFT" 100; margin: 30px 0 0; }

/* AI Town: the map stays put while the walk scrolls past it */
.town { background: var(--wash); padding: 96px 0 104px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.hint { margin: -6px 0 44px; color: var(--soft-ink); max-width: 52ch; }
.town-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.map { position: sticky; top: 24px; background: var(--paper); border: 3px solid var(--ink); padding: 18px; box-shadow: 10px 10px 0 var(--ink); }
.hood + .hood { margin-top: 44px; }
.hood h3 { font: 800 30px/1.1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.hood ol { list-style: none; margin: 0; padding: 0; }
.hood li { border-bottom: 1px solid rgba(23, 19, 11, 0.25); }
summary { display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 18px; align-items: center; padding: 15px 0; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 26px/1 var(--display); justify-self: end; }
details[open] summary::after { content: "–"; }
.sign { display: grid; place-items: center; height: 40px; background: var(--ink); color: var(--paper); border-radius: 4px; font: 800 20px/1 var(--display); }
.what b { display: block; font-weight: 700; font-size: 18px; line-height: 1.35; }
.what i { display: block; font: italic 500 18px/1.35 var(--display); color: var(--soft-ink); }
.breath { margin: 0 0 20px 70px; padding: 4px 0 4px 18px; border-left: 4px solid var(--mustard); font-size: 18px; }

/* Cartoons, pinned up like prints */
.cartoons { background: var(--mustard); padding: 96px 0 112px; }
.prints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 12px; }
.print { margin: 0; background: var(--paper); padding: 16px 16px 20px; border: 3px solid var(--ink); }
.print-1 { transform: rotate(-1.6deg); }
.print-2 { transform: rotate(1.1deg); margin-top: 28px; }
.print-3 { transform: rotate(-0.7deg); }
.print figcaption { font: italic 600 20px/1.3 var(--display); font-variation-settings: "SOFT" 100; margin-top: 14px; text-align: center; }

/* About */
.about { padding: 104px 0; }
.about-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; max-width: 980px; }
.portrait { width: 260px; border-radius: 50%; border: 3px solid var(--ink); }
.about p { max-width: 62ch; }

/* Buy */
.buy { background: var(--ink); color: var(--paper); padding: 96px 0; }
.buy-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: center; max-width: 980px; }
.cover { box-shadow: 0 0 0 3px var(--mustard); }
.buy-title { font: 800 30px/1.15 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; margin: 0 0 6px; }
.buy p { margin-top: 0; }
.button-mustard { background: var(--mustard); color: var(--ink); margin-top: 12px; }
.button-mustard:hover { background: #f2c454; }
.buy .button { margin: 12px 12px 0 0; }
.button-outline { background: transparent; color: var(--mustard); box-shadow: inset 0 0 0 3px var(--mustard); }
.button-outline:hover { background: rgba(232, 176, 46, 0.14); }
.buy .stores a { color: var(--mustard); }
.foot { background: var(--ink); color: rgba(255, 255, 255, 0.7); font-size: 15px; padding: 0 0 40px; text-align: center; }

@media (max-width: 900px) {
  body { font-size: 18px; }
  .wrap { padding: 0 18px; }
  nav { gap: 16px; font-size: 15px; }
  nav a:not(.nav-buy) { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 36px; }
  h1 { white-space: normal; font-size: clamp(48px, 13vw, 76px); }
  .hero-words { padding-bottom: 8px; }
  .hero-parrot { width: 86%; margin: 0 auto -4%; }
  .meet, .town, .cartoons, .about, .buy { padding: 64px 0; }
  .meet-grid, .town-grid, .about-grid, .buy-grid { grid-template-columns: 1fr; gap: 32px; }
  .map { position: static; max-width: 460px; box-shadow: 6px 6px 0 var(--ink); }
  .prints { grid-template-columns: 1fr; gap: 32px; }
  .print-2 { margin-top: 0; }
  .portrait { width: 180px; }
  .cover { max-width: 220px; }
  .breath { margin-left: 0; }
}
