:root {
  --ink: #171310;
  --paper: #f4efe3;
  --paper-deep: #e7ddc9;
  --paper-light: #fbf8f0;
  --oxblood: #6f1720;
  --oxblood-dark: #421017;
  --gold: #9b792f;
  --line: rgba(23, 19, 16, 0.24);
  --line-light: rgba(244, 239, 227, 0.24);
  --muted: #635b50;
  --max: 1180px;
  --measure: 42rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.67;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-color: rgba(111, 23, 32, 0.5);
  text-underline-offset: 0.17em;
}

a:hover { color: var(--oxblood); text-decoration-color: currentColor; }

button, input, textarea { font: inherit; }
button, input, textarea, a { border-radius: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--paper-light);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 227, 0.96);
}

.header-inner {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 7.25rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.brand { flex: 0 0 auto; text-decoration: none; }

.brand-logo {
  width: 13.75rem;
  height: auto;
  mix-blend-mode: multiply;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a[aria-current="page"] {
  color: var(--oxblood);
  box-shadow: inset 0 -1px 0 var(--oxblood);
}

.primary-nav .shop-link {
  margin-left: 0.35rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--ink);
  padding: 0.45rem 0.75rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--oxblood);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; line-height: 0.98; }

h1 {
  margin-bottom: 2rem;
  font-size: clamp(3.8rem, 8vw, 6.4rem);
  letter-spacing: -0.045em;
}

h2 { font-size: clamp(2.1rem, 4vw, 3.65rem); letter-spacing: -0.035em; }
h3 { font-size: 1.65rem; line-height: 1.15; }

.prose { max-width: var(--measure); }
.prose p { margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 0; }
.prose ul { padding-left: 1.2rem; }

.editorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.8rem;
}

.editorial-link {
  color: var(--oxblood);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.editorial-link span {
  display: inline-block;
  margin-left: 0.15rem;
  transition: transform 160ms ease;
}

.editorial-link:hover span { transform: translateX(0.22rem); }

.home-hero {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 41rem;
  margin: 0 auto;
  padding: 6.5rem 0 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.65fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.hero-copy h1 {
  color: var(--oxblood);
  font-size: clamp(4.5rem, 10vw, 7.25rem);
  text-transform: uppercase;
}

.hero-prose > p:first-of-type { font-size: 1.35rem; line-height: 1.55; }

.hero-quotation {
  margin-top: 7.75rem;
  border-top: 1px solid var(--oxblood);
  padding-top: 1.5rem;
}

.hero-quotation blockquote { margin: 0; }

.hero-quotation blockquote p {
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.4;
}

.hero-quotation cite {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  letter-spacing: 0.04em;
}

.home-sections { border-top: 1px solid var(--line); }

.home-section {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 6rem 0;
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.home-section-reverse .home-section-heading { order: 2; }
.home-section-reverse .prose { margin-left: auto; }

.home-section-heading span,
.section-label span,
.publications-head span {
  display: block;
  margin-bottom: 1.15rem;
  color: var(--oxblood);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.home-section-heading h2 { max-width: 8ch; margin: 0; }

.newsletter { background: var(--oxblood); color: var(--paper-light); }

.newsletter-inner {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 4.5rem 0;
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 0.8fr);
  align-items: end;
  gap: 4rem;
}

.newsletter .eyebrow { color: var(--paper-deep); }
.newsletter h2 { margin-bottom: 0.75rem; }
.newsletter p { max-width: 34rem; margin-bottom: 0; }

.newsletter-form label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

.input-row { display: flex; }

.newsletter-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid currentColor;
  border-right: 0;
  padding: 0.75rem 0.85rem;
  background: var(--paper-light);
  color: var(--ink);
}

.newsletter-form button,
.contact-form button {
  border: 1px solid var(--ink);
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper-light);
  cursor: pointer;
}

.newsletter .newsletter-form button {
  border-color: var(--paper-light);
  background: var(--paper-light);
  color: var(--oxblood-dark);
}

.form-note {
  margin-top: 0.5rem !important;
  color: inherit;
  font-size: 0.85rem;
  opacity: 0.72;
}

.page-head,
.press-head {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 6.5rem 0 5.5rem;
  border-bottom: 1px solid var(--line);
}

.page-head h1,
.press-head h1 { max-width: 12ch; color: var(--oxblood); }

.page-intro { font-size: 1.28rem; line-height: 1.55; }

.longform-standfirst {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.38rem;
  line-height: 1.48;
}

.essay-contents {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.essay-contents > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.essay-contents a {
  min-height: 4.25rem;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.65rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--oxblood);
  font-size: 1.08rem;
  line-height: 1.25;
  text-decoration: none;
}

.essay-contents a:hover { background: rgba(111, 23, 32, 0.045); }

.essay-contents a span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.article-stack {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
}

.article-section {
  padding: 5.25rem 0;
  display: grid;
  grid-template-columns: minmax(13rem, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(3rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.section-label h2 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.article-section .prose { margin-left: auto; }
.article-section .prose > p:first-child { font-size: 1.24rem; line-height: 1.56; }

.article-section h3 {
  margin: 2.4rem 0 0.8rem;
  color: var(--oxblood);
}

.longform-section { scroll-margin-top: 1.5rem; }
.longform-section .prose { max-width: 45rem; }

.longform-section .prose > p > strong:only-child {
  display: block;
  margin: 1.6rem 0;
  color: var(--oxblood);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.35;
}

.related {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.related-links { display: flex; flex-wrap: wrap; gap: 0.85rem 2.25rem; }

.related-links a {
  color: var(--oxblood);
  font-size: 1.2rem;
  text-decoration: none;
}

.map-figure {
  margin: 3rem 0 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(251, 248, 240, 0.4);
}

.map-figure img { width: 100%; mix-blend-mode: multiply; }

.map-figure figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.location-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.location-links a {
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--oxblood);
  text-decoration: none;
}

.reading-list { margin-top: 3rem; border-top: 1px solid var(--line); }

.reading-list a {
  display: grid;
  grid-template-columns: minmax(9rem, 0.5fr) 1fr;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.reading-list span {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading-list strong {
  color: var(--oxblood);
  font-size: 1.2rem;
  font-weight: 500;
}

.tide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 2rem;
  border-top: 1px solid var(--oxblood);
  border-left: 1px solid var(--line);
}

.tide-list span {
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--oxblood);
  font-size: 1.6rem;
  font-style: italic;
}

.press-head {
  position: relative;
  padding-top: 7.5rem;
}

.press-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5.5rem;
  height: 0.38rem;
  background: var(--oxblood);
}

.press-head h1 em { font-weight: 400; }

.publications {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 6rem 0;
  border-bottom: 1px solid var(--line);
}

.publications-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.publications-head h2 { margin: 0; }

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.book-card { min-width: 0; }

.book-card .cover-frame {
  min-height: 27rem;
  margin-bottom: 1.75rem;
}

.cover-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  text-decoration: none;
}

.cover-frame img {
  width: 100%;
  max-height: 34rem;
  object-fit: contain;
  box-shadow: 0 1rem 2.2rem rgba(23, 19, 16, 0.17);
}

.book-card h3 { margin: 0 0 0.85rem; color: var(--oxblood); }
.book-card h3 a { text-decoration: none; }
.book-card p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

.typographic-cover {
  width: 100%;
  aspect-ratio: 0.74;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(244, 239, 227, 0.35);
  background: var(--oxblood-dark);
  color: var(--paper-light);
  box-shadow: 0 1rem 2.2rem rgba(23, 19, 16, 0.17);
}

.typographic-cover small {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.typographic-cover strong {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 0.9;
}

.typographic-cover span { font-size: 0.92rem; font-style: italic; line-height: 1.25; }

.press-continues {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
}

.book-detail {
  width: min(calc(100% - 3rem), 1040px);
  margin: 0 auto;
  padding: 7rem 0;
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
}

.book-visual { position: sticky; top: 2rem; }
.book-visual .cover-frame { padding: 1.8rem; }

.press-stamp {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.book-detail-copy h1 {
  margin-bottom: 1rem;
  color: var(--oxblood);
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.subtitle {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.35;
}

.facts {
  margin: 2rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts p { margin: 0.3rem 0; font-size: 0.97rem; }
.facts strong { font-weight: 600; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-block;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.button.primary { border-color: var(--oxblood); background: var(--oxblood); color: var(--paper-light); }
.button:hover { border-color: var(--oxblood); background: var(--oxblood); color: var(--paper-light); }

.availability {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.contact-page .page-head { border-bottom: 0; }

.contact-stack {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.contact-channel {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 0.78fr);
  gap: clamp(3rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.contact-copy h2 { max-width: 10ch; color: var(--oxblood); }

.contact-form {
  padding: 1.7rem;
  border: 1px solid var(--line);
  background: rgba(251, 248, 240, 0.46);
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  background: var(--paper-light);
  color: var(--ink);
}

.field textarea { resize: vertical; }

.contact-channel .newsletter-form {
  align-self: start;
  padding: 1.7rem;
  border: 1px solid var(--line);
  background: rgba(251, 248, 240, 0.46);
}

.contact-channel .newsletter-form .input-row { flex-direction: column; gap: 0.6rem; }
.contact-channel .newsletter-form input { border-right: 1px solid var(--line); }

.postal-band {
  width: min(calc(100% - 3rem), var(--max));
  margin: 5rem auto;
  padding: 2.25rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--oxblood);
}

.postal-band .eyebrow { margin: 0; }
.postal-band address { font-style: normal; line-height: 1.45; text-align: right; }

.site-footer { background: var(--ink); color: var(--paper); }

.footer-inner {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.footer-identity { display: flex; align-items: flex-start; gap: 1.25rem; }
.footer-identity img { width: 3.1rem; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-identity p { margin: 0; font-size: 0.92rem; line-height: 1.45; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.55rem 2rem;
}

.footer-links a { color: var(--paper); font-size: 0.95rem; text-decoration-color: var(--line-light); }

.footer-base {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 1.2rem 0 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line-light);
  color: rgba(244, 239, 227, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

@media (max-width: 1080px) {
  .header-inner { min-height: 6.5rem; }
  .brand-logo { width: 11.5rem; }
  .primary-nav ul { gap: 0.2rem 0.82rem; }
  .primary-nav a { font-size: 0.82rem; }
  .primary-nav .shop-link { padding-left: 0.8rem; }
  .books-grid { gap: 2rem; }
  .book-card .cover-frame { min-height: 23rem; }
}

@media (max-width: 860px) {
  body { font-size: 1.0625rem; }

  .header-inner {
    min-height: 5.7rem;
    flex-wrap: wrap;
    gap: 0;
  }

  .brand-logo { width: 10.75rem; }
  .menu-toggle { display: block; }

  .primary-nav {
    display: none;
    flex-basis: 100%;
    padding: 0.8rem 0 1.2rem;
  }

  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .primary-nav li { border-top: 1px solid var(--line); }
  .primary-nav a { padding: 0.7rem 0; font-size: 0.92rem; }
  .primary-nav .shop-link { margin: 0; padding-left: 0; border-left: 0; }

  .home-hero {
    min-height: auto;
    padding: 5rem 0;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-quotation { max-width: 30rem; margin-top: 0; }

  .home-section,
  .article-section,
  .contact-channel,
  .book-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-section { padding: 4.5rem 0; }
  .home-section-reverse .home-section-heading { order: 0; }
  .home-section-reverse .prose { margin-left: 0; }
  .home-section-heading h2, .section-label h2 { max-width: 14ch; }
  .article-section .prose { margin-left: 0; }

  .newsletter-inner { grid-template-columns: 1fr; gap: 2.25rem; }

  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 1rem); }
  .book-visual { position: static; max-width: 25rem; }

  .contact-channel { padding: 4rem 0; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; line-height: 1.62; }

  .header-inner,
  .home-hero,
  .home-section,
  .newsletter-inner,
  .page-head,
  .press-head,
  .essay-contents,
  .article-stack,
  .related,
  .publications,
  .press-continues,
  .book-detail,
  .contact-stack,
  .postal-band,
  .footer-inner,
  .footer-base {
    width: min(calc(100% - 2rem), var(--max));
  }

  .hero-copy h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
  h1 { font-size: clamp(3.1rem, 16vw, 4.6rem); }

  .page-head,
  .press-head { padding: 4.5rem 0 3.8rem; }

  .article-section { padding: 3.75rem 0; }
  .article-section .prose > p:first-child { font-size: 1.12rem; }
  .longform-standfirst { font-size: 1.18rem; }
  .essay-contents { padding: 2.25rem 0 2.75rem; }
  .essay-contents > div { grid-template-columns: 1fr; }

  .books-grid { grid-template-columns: 1fr; }
  .book-card:last-child { grid-column: auto; max-width: none; }
  .book-card .cover-frame { min-height: auto; }
  .book-detail { padding: 4.5rem 0; }

  .publications-head { display: block; }
  .publications-head h2 { margin-top: 0.8rem; }

  .location-links,
  .tide-list,
  .reading-list a { grid-template-columns: 1fr; }

  .input-row { flex-direction: column; gap: 0.55rem; }
  .newsletter-form input { border-right: 1px solid currentColor; }

  .contact-form { padding: 1.25rem; }

  .postal-band { display: block; }
  .postal-band .eyebrow { margin-bottom: 1rem; }
  .postal-band address { text-align: left; }

  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-base { display: block; }
  .footer-base span { display: block; margin-top: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .editorial-link span { transition: none; }
}
