/* Hundred Year Books · catalogue home. Same palette and type as the book pages: cloth, foil, paper. */
@font-face { font-family: "Cormorant"; src: url("fonts/Cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/Cormorant-Italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-Italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

:root {
  --night: #16224a; --deep: #0e1633; --gold: #e2b85c; --brass: #86601a;
  --cream: #f4ede0; --paper: #faf6ee; --ink: #231f1c; --soft: #5d564c; --rule: rgba(35, 31, 28, .15);
  --display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --text: "EB Garamond", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4.5vw, 64px); --space: clamp(72px, 10vw, 140px);
}
*, *::before, *::after { 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(--cream); color: var(--ink); font: 400 clamp(18px, .9vw + 14px, 20px)/1.6 var(--text); font-variant-numeric: oldstyle-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--paper); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; text-wrap: balance; }
.eyebrow { font: 500 12.5px/1.4 var(--text); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); font-variant-numeric: lining-nums; }
.btn { display: inline-block; padding: 16px 30px 15px; border: 1px solid var(--night); border-radius: 2px; background: var(--night); color: var(--paper); font: 500 14px/1.2 var(--text); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-appearance: none; appearance: none; }
.btn:hover { background: #22336b; }
.quiet { font-style: italic; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 30px; }

/* header */
.site { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--rule); }
.logo img { width: clamp(140px, 13vw, 180px); }
.site nav { display: flex; gap: clamp(14px, 2.5vw, 34px); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.site nav a { text-decoration: none; color: var(--soft); }
.site nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .site nav a:not(:last-child) { display: none; } }

/* intro */
.intro { display: grid; background: var(--paper); }
.intro-text { padding: clamp(48px, 7vw, 110px) var(--gutter); }
.intro h1 { font-size: clamp(40px, 5vw, 72px); color: var(--night); max-width: 12em; }
.intro p:not(.actions) { margin-top: 24px; max-width: 30em; color: #3b352e; font-size: clamp(19px, 1.2vw + 12px, 22px); }
.intro-book { position: relative; display: grid; place-items: center; min-height: 420px; overflow: hidden; background: var(--deep); }
.intro-book .sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.85); }
.intro-book .cover { position: relative; width: clamp(200px, 22vw, 300px); box-shadow: 0 2px 3px rgba(0, 0, 0, .4), 0 30px 60px -20px rgba(0, 0, 0, .8); transform: perspective(1400px) rotateY(-14deg) rotateX(4deg); transition: transform .5s; }
.intro-book:hover .cover { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
@media (prefers-reduced-motion: reduce) { .intro-book .cover { transition: none; } }
@media (min-width: 960px) { .intro { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); min-height: min(86vh, 780px); } .intro-text { align-self: center; } }

/* books */
.books { padding: var(--space) var(--gutter); max-width: 1240px; margin: 0 auto; }
.lead-book { display: grid; gap: 28px; margin-top: 22px; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--rule); }
.lb-cover img { width: min(100%, 340px); box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 24px 50px -22px rgba(14, 22, 51, .6); }
.lead-book h2 { font-size: clamp(40px, 4.4vw, 64px); color: var(--night); }
.lead-book h2 a { text-decoration: none; }
.by { margin-top: 8px; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.lb-text p:not(.by):not(.price):not(.actions) { margin-top: 20px; max-width: 30em; color: #3b352e; }
.price { margin-top: 22px; font: 500 clamp(32px, 3vw, 42px)/1 var(--display); color: var(--night); font-variant-numeric: lining-nums; }
@media (min-width: 800px) { .lead-book { grid-template-columns: 340px minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; } }

.next-eyebrow { margin-top: clamp(56px, 7vw, 96px); }
.shelf { list-style: none; padding: 0; margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
@media (min-width: 640px) { .shelf { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .shelf { grid-template-columns: repeat(6, 1fr); } }
.cloth { position: relative; aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 18% 11% 16%; text-align: center; color: var(--gold);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px), var(--cloth);
  box-shadow: inset 5px 0 8px -4px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .25), 0 16px 30px -18px rgba(14, 22, 51, .6); }
.cloth::before { content: ""; position: absolute; inset: 7%; border: 1.5px solid rgba(226, 184, 92, .85); outline: .5px solid rgba(226, 184, 92, .6); outline-offset: -5px; }
.cloth .t { position: relative; max-width: 100%; font: 600 clamp(12px, 1.05vw, 16px)/1.12 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.cloth .a { position: relative; font: 500 clamp(10px, .8vw, 12px)/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.st { margin-top: 10px; font-size: 15px; line-height: 1.35; color: var(--soft); }
.st b { display: block; font-weight: 500; color: var(--ink); }

.notify { margin-top: clamp(56px, 7vw, 90px); padding: clamp(28px, 4vw, 48px); background: var(--paper); border: 1px solid var(--rule); max-width: 760px; }
.notify h3 { font-size: clamp(26px, 2.4vw, 34px); color: var(--night); }
.notify p { margin-top: 8px; color: #3b352e; }
.field { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 560px) { .field { grid-template-columns: 1fr auto; } }
input[type=email] { width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 2px; background: #fff; font: 400 19px/1.3 var(--text); -webkit-appearance: none; appearance: none; }
.error { margin-top: 10px; font-style: italic; color: #8a2a1a; }
.thanks { margin-top: 18px; font: italic 400 24px/1.35 var(--display); color: var(--night); outline: none; }

/* how */
.how { padding: var(--space) var(--gutter); background: var(--night); color: var(--cream); }
.how h2 { font-size: clamp(34px, 3.8vw, 52px); color: var(--gold); text-align: center; }
.how-grid { max-width: 1160px; margin: clamp(40px, 5vw, 64px) auto 0; display: grid; gap: 36px; }
@media (min-width: 700px) { .how-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .how-grid { grid-template-columns: repeat(4, 1fr); } }
.how h3 { font-size: 26px; color: var(--gold); }
.how p { margin-top: 10px; color: #d8d1c0; }

footer { background: var(--deep); color: #a9a595; padding: 52px var(--gutter) 64px; text-align: center; font-size: 16px; }
.foot-mark { display: flex; justify-content: center; margin-bottom: 14px; }
.foot-mark img { width: 200px; }
footer a { text-decoration: none; }
