:root {
  --ink: #201d19;
  --paper: #f4efe6;
  --paper-deep: #e8dfd0;
  --white: #fffdf8;
  --night: #171714;
  --night-soft: #22211d;
  --muted: #756e64;
  --gold: #b48b4b;
  --gold-light: #d7bb83;
  --line: rgba(32, 29, 25, .18);
  --max: 1200px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 28px 70px rgba(27, 22, 15, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold-light); color: var(--ink); }

.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.narrow { max-width: 920px; }
.section { padding: clamp(84px, 10vw, 150px) 0; }
.section-dark { color: var(--white); background: var(--night); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 9999; left: 16px; top: 16px; padding: 10px 14px;
  color: var(--white); background: var(--night); transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; z-index: 1000; top: 0;
  border-bottom: 1px solid rgba(32,29,25,.12);
  background: rgba(244,239,230,.91);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 1px solid var(--ink);
  font: 700 20px/1 var(--serif); transform: rotate(45deg);
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font: 700 18px/1.1 var(--serif); letter-spacing: .01em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { position: relative; padding: 8px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 1px; background: var(--gold); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.search-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; }
.search-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: 7px 3px; background: var(--ink); transition: .25s ease; }

.hero { padding: clamp(68px, 8vw, 120px) 0 clamp(96px, 11vw, 165px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(48px, 7vw, 108px); }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.hero h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; }
.hero h1 { margin: 0; font-size: clamp(54px, 7vw, 98px); letter-spacing: -.045em; }
.hero-lead { margin: 30px 0 0; font: italic 24px/1.45 var(--serif); }
.hero-text { max-width: 600px; margin: 24px 0 0; color: #5f594f; font-size: 17px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 38px; }
.hero-figure { position: relative; margin: 0; }
.hero-figure::before { content: ""; position: absolute; z-index: -1; top: -28px; right: -48px; width: 80%; height: 85%; border: 1px solid var(--gold-light); }
.hero-figure img { aspect-ratio: 1.37; object-fit: cover; box-shadow: var(--shadow); }
.hero-figure figcaption { margin-top: 14px; color: var(--muted); font: italic 13px/1.5 var(--serif); text-align: right; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: #000; }
.button-outline { border-color: var(--ink); }
.button-outline:hover { color: var(--white); background: var(--ink); }
.button-light { color: var(--night); background: var(--white); }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.text-link.light { color: var(--gold-light); }

.manifesto { border-top: 1px solid var(--line); }
.manifesto h2, .section-heading h2, .newsletter h2, .contact h2 { margin: 0; font-size: clamp(42px, 5vw, 70px); letter-spacing: -.035em; }
.prose { margin-top: 50px; }
.prose p { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.72; }
.prose.columns { column-count: 2; column-gap: 60px; }
.prose.columns p { break-inside: avoid; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 56px; }
.section-heading.centered { justify-content: center; text-align: center; }
.section-intro { max-width: 520px; margin: 0 0 4px; color: var(--muted); }
.section-dark .section-intro { color: rgba(255,255,255,.62); }

.journal { position: relative; overflow: hidden; }
.journal::before { content: ""; position: absolute; inset: 0; opacity: .035; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 7px 7px; pointer-events: none; }
.essay-grid { position: relative; display: grid; grid-template-columns: 1.55fr .8fr; gap: 24px; }
.essay-card { min-height: 300px; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.025); }
.essay-card.featured { grid-row: span 2; display: grid; grid-template-columns: .9fr 1.1fr; }
.essay-image { min-height: 520px; overflow: hidden; }
.essay-image img { height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); transition: transform .6s ease; }
.essay-card:hover .essay-image img { transform: scale(1.035); }
.essay-body { padding: clamp(30px, 4vw, 54px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.essay-card h3 { margin: 0 0 22px; font-size: clamp(28px, 3vw, 46px); }
.essay-card h3 a:hover { color: var(--gold-light); }
.essay-card p:not(.meta,.quote-mark) { color: rgba(255,255,255,.65); }
.meta { margin: 0 0 18px; color: var(--gold-light); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.quote-card blockquote { margin: 0 0 28px; font: italic clamp(24px, 2.6vw, 38px)/1.35 var(--serif); }
.quote-mark { height: 54px; margin: 0; color: var(--gold); font: 80px/1 var(--serif); }

.book-grid { display: grid; gap: 80px; }
.book-card { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(46px, 7vw, 100px); }
.book-card.reverse .book-image-wrap { order: 2; }
.book-image-wrap { position: relative; }
.book-image-wrap img { aspect-ratio: 1.37; object-fit: cover; box-shadow: var(--shadow); }
.book-type { position: absolute; right: 18px; bottom: 18px; padding: 9px 13px; color: var(--white); background: rgba(23,23,20,.85); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; backdrop-filter: blur(8px); }
.book-copy h3 { margin: 0 0 22px; font-size: clamp(36px, 4vw, 58px); letter-spacing: -.03em; }
.book-copy > p:not(.eyebrow) { margin: 0 0 30px; color: var(--muted); font-size: 17px; }

.reviews { background: var(--paper-deep); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card { margin: 0; padding: clamp(36px, 5vw, 70px); border-top: 1px solid var(--ink); background: rgba(255,255,255,.32); }
.review-card blockquote { margin: 0; font: italic clamp(24px, 2.8vw, 39px)/1.42 var(--serif); }
.review-card figcaption { margin-top: 34px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

.newsletter { padding-block: 90px; border-top: 1px solid var(--line); }
.newsletter-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 70px; }
.newsletter h2 { max-width: 750px; font-size: clamp(38px, 4vw, 58px); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-form input { min-width: 0; height: 52px; padding: 0 17px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: rgba(255,255,255,.5); }
.form-status { grid-column: 1 / -1; min-height: 22px; margin: 5px 0 0; font-size: 13px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 9vw, 130px); }
.contact-copy p:not(.eyebrow) { color: rgba(255,255,255,.68); font-size: 17px; }
.contact-note { margin-top: 32px; padding-left: 18px; border-left: 2px solid var(--gold); font-size: 13px !important; }
.contact-form { display: grid; gap: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 9px; color: var(--gold-light); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); border-radius: 0; color: var(--white); background: transparent; outline: none; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold-light); }
.contact-form .button { justify-self: start; }

.site-footer { padding: 48px 0; background: #0d0d0b; color: rgba(255,255,255,.62); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 50px; align-items: end; }
.footer-brand { color: var(--white); font: 500 24px/1.2 var(--serif); }
.footer-inner p { margin: 8px 0 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }

.search-dialog { width: min(680px, calc(100% - 32px)); padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.search-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.search-panel { position: relative; padding: clamp(32px, 6vw, 70px); }
.search-panel h2 { margin: 0; font-size: clamp(38px, 6vw, 64px); }
.dialog-close { position: absolute; top: 18px; right: 20px; width: 38px; height: 38px; border: 0; border-radius: 50%; font-size: 28px; line-height: 1; background: transparent; }
.search-field { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 35px; }
.search-field input { min-width: 0; height: 52px; padding: 0 15px; border: 1px solid var(--line); background: var(--white); }
.search-hint { color: var(--muted); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 90px 9vw; gap: 23px; color: var(--white); background: var(--night);
    visibility: hidden; opacity: 0; transform: translateY(-15px); transition: .25s ease;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { font: 500 clamp(34px, 7vw, 60px)/1.1 var(--serif); text-transform: none; letter-spacing: -.02em; }
  .search-button { color: var(--white); border-color: rgba(255,255,255,.3); }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only) { background: var(--white); }
  .hero-grid, .newsletter-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-figure { max-width: 760px; margin-left: auto; }
  .essay-grid { grid-template-columns: 1fr 1fr; }
  .essay-card.featured { grid-column: 1 / -1; grid-row: auto; }
  .book-card { gap: 45px; }
  .newsletter-inner { align-items: start; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .header-inner { min-height: 75px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 36px; }
  .section { padding: 82px 0; }
  .hero { padding-top: 55px; }
  .hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero-grid { gap: 55px; }
  .hero-figure::before { right: -18px; top: -18px; }
  .prose.columns { column-count: 1; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 40px; }
  .essay-grid { grid-template-columns: 1fr; }
  .essay-card.featured { display: block; }
  .essay-image { min-height: 420px; }
  .book-card, .book-card.reverse { grid-template-columns: 1fr; }
  .book-card.reverse .book-image-wrap { order: initial; }
  .reviews-grid { grid-template-columns: 1fr; }
  .newsletter-form, .search-field { grid-template-columns: 1fr; }
  .newsletter-form .button, .search-field .button { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { margin-top: 15px; }
  .copyright { grid-column: 1; }
}

/* ASP.NET MVC forms and project pages */
.brand-mark span { display: block; transform: rotate(-45deg); }
.validation-message { grid-column: 1 / -1; color: #8b2e26; font-size: 12px; }
.validation-message.light { color: #f3c9bc; letter-spacing: normal; text-transform: none; }
.form-status { grid-column: 1 / -1; min-height: 22px; margin: 5px 0 0; font-size: 13px; }
.form-status.success { color: #476d43; }
.form-status.error { color: #8b2e26; }
.section-dark .form-status.success { color: #cae7c1; }
.section-dark .form-status.error { color: #f3c9bc; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-note code { color: var(--gold-light); }
.search-page h1 { margin: 0 0 38px; font: 500 clamp(54px, 7vw, 88px)/1.04 var(--serif); letter-spacing: -.04em; }
.page-search-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.page-search-form input { min-width: 0; height: 52px; padding: 0 17px; border: 1px solid var(--line); background: rgba(255,255,255,.5); }
.search-summary { margin: 32px 0; color: var(--muted); }
.search-results { display: grid; gap: 18px; }
.search-result { padding: 34px 0; border-top: 1px solid var(--line); }
.search-result h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 48px); }
.search-result h2 a:hover { color: var(--gold); }
.search-result > p:last-child { margin-bottom: 0; color: var(--muted); }
.empty-results { margin-top: 40px; padding: 35px; border: 1px solid var(--line); background: rgba(255,255,255,.28); }
.empty-results h2 { margin-top: 0; font-size: 34px; }

@media (max-width: 760px) {
  .page-search-form { grid-template-columns: 1fr; }
  .page-search-form .button { width: 100%; }
}
.error-title { margin: 0 0 24px; font: 500 clamp(46px, 6vw, 78px)/1.05 var(--serif); letter-spacing: -.035em; }

/* Language navigation */
.language-switcher { display: inline-flex; align-items: center; gap: 7px; margin-left: 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.language-switcher a { opacity: .55; transition: opacity .2s ease, color .2s ease; }
.language-switcher a:hover, .language-switcher a.is-active { opacity: 1; color: var(--gold); }
.language-switcher a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.language-switcher span { color: var(--muted); }

@media (max-width: 980px) {
  .language-switcher { margin: 8px 0 0; font-size: 14px; }
  .language-switcher a { font: 700 14px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
  .language-switcher span { color: rgba(255,255,255,.45); }
  .language-switcher a:hover, .language-switcher a.is-active { color: var(--gold-light); }
}
