/* Palette taken from the hardcover jacket of On the Ethics of Killing. */
:root {
  color-scheme: light;
  --olive: #464c3b;
  --olive-deep: #3a4031;
  --gold: #dcc07e;
  --gold-soft: #b9a472;
  --cream: #efe8d6;
  --paper: #f7f3ea;
  --ink: #23261d;
  --ink-2: #5d6052;
  --rule: #d8d1bf;
  --max: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --text: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 1.1875rem/1.65 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.eyebrow { font: 500 0.72rem/1 var(--text); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-soft); }
.arrow { display: inline-block; margin-left: 0.5em; transition: transform 0.25s ease; }
a:hover .arrow { transform: translateX(0.3em); }

/* The jacket: masthead and hero on the book's own olive. */
.jacket { background: radial-gradient(120% 90% at 78% 40%, #4f5643 0%, var(--olive) 45%, var(--olive-deep) 100%); color: var(--cream); }
.top, .hero, main > section, .foot-inner { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
.mark { white-space: nowrap; font: 500 0.8rem/1 var(--text); letter-spacing: 0.34em; text-transform: uppercase; text-decoration: none; color: var(--gold); }
nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
nav a { font: 400 0.8rem/1 var(--text); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: rgba(239, 232, 214, 0.72); padding: 0.6rem 0; }
nav a:hover { color: var(--gold); }

.hero { display: grid; grid-template-columns: 1.15fr minmax(15rem, 0.85fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-top: clamp(3rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 9vw, 8rem); }
h1 { font: 500 clamp(3.4rem, 9.5vw, 7.5rem)/0.95 var(--display); letter-spacing: -0.012em; margin-top: 1.6rem; color: #f6f0df; }
.tagline { font: italic 400 clamp(1.35rem, 2.6vw, 1.85rem)/1.35 var(--display); color: rgba(239, 232, 214, 0.82); margin-top: 1.5rem; max-width: 22ch; }
.hero-book { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgba(220, 192, 126, 0.32); display: flex; align-items: baseline; gap: 1.25rem; max-width: 26rem; }
.hero-book-label { font: 500 0.7rem/1 var(--text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); }
.hero-book a { font: 500 1.5rem/1.2 var(--display); color: var(--gold); text-decoration: none; }
.hero-cover { justify-self: end; width: min(100%, 22rem); transform: rotate(0.001deg); }
.hero-cover img { border-radius: 2px; box-shadow: -1px 0 0 rgba(255,255,255,0.05) inset, 0 2px 4px rgba(0,0,0,0.25), 0 30px 60px -20px rgba(0,0,0,0.6), 0 60px 90px -40px rgba(0,0,0,0.5); transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.hero-cover:hover img { transform: translateY(-6px); }

/* Body */
main > section { padding-top: clamp(4rem, 9vw, 7.5rem); padding-bottom: clamp(4rem, 9vw, 7.5rem); }
main > section + section { border-top: 1px solid var(--rule); }
main .eyebrow { color: #8d7c4c; }
h2 { font: 500 clamp(2.4rem, 5.5vw, 4rem)/1.05 var(--display); letter-spacing: -0.01em; margin-top: 1.1rem; }
.section-lede { color: var(--ink-2); max-width: 36rem; margin-top: 1.1rem; }

.book { text-align: center; }
.subtitle { font: italic 400 1.5rem/1.3 var(--display); color: var(--ink-2); margin-top: 0.5rem; }
.pull { font: italic 400 clamp(2.2rem, 6vw, 4.4rem)/1.1 var(--display); color: var(--olive); margin: clamp(2.5rem, 6vw, 4.5rem) auto; max-width: 16ch; position: relative; }
.pull::before, .pull::after { content: ""; display: block; width: 2.5rem; height: 1px; background: var(--gold-soft); margin: 0 auto; }
.pull::before { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.pull::after { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.book-body { max-width: 35rem; margin: 0 auto; text-align: left; }
.book-body p + p { margin-top: 1.1rem; }
.buy { margin-top: 2.75rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.button { display: inline-block; background: var(--olive); color: var(--gold); font: 500 0.8rem/1 var(--text); letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; padding: 1.25rem 2.25rem; border-radius: 1px; transition: background 0.25s ease, color 0.25s ease; }
.button:hover { background: var(--olive-deep); color: #f0d994; }
.formats { font: italic 400 1rem/1 var(--display); color: var(--ink-2); }

.contents { margin-top: clamp(3.5rem, 7vw, 5.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: left; border-top: 1px solid var(--rule); }
.phase { padding: 2rem clamp(1rem, 2.5vw, 2rem) 0; }
.phase + .phase { border-left: 1px solid var(--rule); }
.phase:first-child { padding-left: 0; }
.phase-label { font: 500 0.7rem/1 var(--text); letter-spacing: 0.3em; text-transform: uppercase; color: #8d7c4c; }
.phase-name { font: 500 1.7rem/1.15 var(--display); margin-top: 0.6rem; }
.phase ol { margin-top: 1.1rem; padding: 0; list-style: none; counter-reset: ch calc(var(--start, 1) - 1); font-size: 1.05rem; color: var(--ink-2); }
.phase ol[start="4"] { --start: 4; }
.phase ol[start="8"] { --start: 8; }
.phase li { counter-increment: ch; display: grid; grid-template-columns: 1.9rem 1fr; padding: 0.3rem 0; }
.phase li::before { content: counter(ch); font: italic 400 1.05rem/1.65 var(--display); color: #8d7c4c; }

.about { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: start; }
.portrait { width: 9.5rem; height: 12rem; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); border-radius: 1px; outline: 1px solid var(--gold-soft); outline-offset: 6px; margin: 6px; }
.about-lede { font: 400 clamp(1.6rem, 3.2vw, 2.3rem)/1.3 var(--display); max-width: 30ch; margin-top: 1.1rem; }
.about-rest { color: var(--ink-2); max-width: 34rem; margin-top: 1.4rem; }

.articles { list-style: none; padding: 0; margin-top: 2.75rem; border-top: 1px solid var(--rule); }
.articles li { border-bottom: 1px solid var(--rule); }
.articles a { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.75rem 0; text-decoration: none; }
.num { font: italic 400 1.15rem/1 var(--display); color: #8d7c4c; }
.a-title { display: block; font: 500 clamp(1.45rem, 2.8vw, 1.95rem)/1.2 var(--display); transition: color 0.2s ease; }
.a-desc { display: block; color: var(--ink-2); margin-top: 0.45rem; max-width: 40rem; font-size: 1.05rem; }
.articles a:hover .a-title { color: var(--olive); }
.articles .arrow { color: #8d7c4c; font-size: 1.2rem; }

.companies { margin-top: 2.75rem; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.companies a { display: flex; flex-direction: column; padding: 2rem clamp(1rem, 2.5vw, 2rem) 0.5rem; text-decoration: none; }
.companies a + a { border-left: 1px solid var(--rule); }
.companies a:first-child { padding-left: 0; }
.c-name { font: 500 1.75rem/1.15 var(--display); }
.c-desc { color: var(--ink-2); margin-top: 0.6rem; font-size: 1.05rem; flex: 1; }
.c-url { margin-top: 1.4rem; font: 500 0.72rem/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: #8d7c4c; }
.companies a:hover .c-name { color: var(--olive); }
.companies a:hover .c-url { color: var(--olive); }

footer { background: var(--olive-deep); color: rgba(239, 232, 214, 0.7); }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; align-items: baseline; padding-top: 3rem; padding-bottom: 3rem; }
.foot-mark { font: 500 0.8rem/1 var(--text); letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.95rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.foot-copy { grid-column: 1 / -1; font-size: 0.85rem; color: rgba(239, 232, 214, 0.45); }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-cover { justify-self: start; width: min(72%, 17rem); margin-top: 1rem; }
  .contents, .companies { grid-template-columns: 1fr; }
  .phase, .phase:first-child, .companies a, .companies a:first-child { padding-left: 0; padding-right: 0; }
  .phase + .phase, .companies a + a { border-left: 0; border-top: 1px solid var(--rule); margin-top: 2rem; }
  .about { grid-template-columns: 1fr; }
  .articles a { grid-template-columns: 2.25rem 1fr; }
  .articles .arrow { display: none; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) { .mark { letter-spacing: 0.22em; font-size: 0.72rem; } nav a { letter-spacing: 0.12em; font-size: 0.72rem; } nav { gap: 0.9rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
