@font-face {
  font-family: "Newsreader";
  src: url("/thefieldmanuals-assets/fonts/newsreader-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/thefieldmanuals-assets/fonts/newsreader-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/thefieldmanuals-assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/thefieldmanuals-assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/thefieldmanuals-assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #181c1a;
  --ink-soft: #303632;
  --paper: #f3f1ea;
  --paper-deep: #e5e1d6;
  --white: #fffef9;
  --oxblood: #9f3024;
  --oxblood-bright: #e66854;
  --moss: #315844;
  --moss-light: #b9c8a4;
  --muted: #626a65;
  --line: #cbc9c0;
  --line-dark: rgba(255, 254, 249, 0.24);
  --serif: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", Arial, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; letter-spacing: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, blockquote { margin-top: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e0a23d; outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: var(--ink); background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.masthead {
  position: relative;
  z-index: 10;
  min-height: 72px;
  padding: 12px max(24px, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.brand { display: grid; flex: 0 0 auto; text-decoration: none; }
.brand strong { font: 600 21px/1 var(--serif); }
.brand span { margin-top: 6px; color: #bec4bf; font-size: 11px; font-weight: 500; text-transform: uppercase; }
.masthead nav { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 500; }
.masthead nav a { color: #d7dbd8; text-decoration: none; }
.masthead nav a:hover, .masthead nav a:focus-visible { color: var(--white); }

.hero {
  position: relative;
  min-height: 650px;
  color: var(--white);
  background-color: var(--ink);
  isolation: isolate;
}
.hero-background { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(15, 18, 16, 0.96) 0%, rgba(15, 18, 16, 0.87) 45%, rgba(15, 18, 16, 0.34) 76%, rgba(15, 18, 16, 0.25) 100%); }
.hero-inner { min-height: 650px; max-width: var(--max); margin: 0 auto; padding: 68px 24px 54px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: center; gap: 110px; }
.hero-copy { max-width: 670px; }
.kicker { margin-bottom: 18px; color: var(--oxblood); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.hero .kicker { color: #ff8b76; }
h1 { max-width: 680px; margin-bottom: 24px; font: 600 86px/0.96 var(--serif); }
.hero-deck { max-width: 620px; margin-bottom: 20px; font: 400 31px/1.17 var(--serif); }
.hero-note { margin-bottom: 31px; color: #c8cdc9; font-size: 14px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 17px; border: 1px solid transparent; border-radius: 2px; font-size: 14px; font-weight: 600; text-decoration: none; }
.button-primary { color: var(--white); background: var(--oxblood); border-color: #bd4b3c; }
.button-primary:hover, .button-primary:focus-visible { background: #b13a2b; }
.text-link { color: var(--white); font-size: 14px; font-weight: 500; }
.text-link span { margin-left: 8px; }
.hero-book { width: 275px; margin: 0; justify-self: end; }
.hero-book picture { display: block; }
.hero-book img { width: 275px; box-shadow: 0 26px 54px rgba(0, 0, 0, 0.42); }
.hero-book figcaption { display: grid; gap: 3px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.hero-book figcaption strong { font: 600 17px/1.2 var(--serif); }
.hero-book figcaption span { color: #c7ccc8; font-size: 11px; }

.catalogue { padding: 94px max(24px, calc((100% - var(--max)) / 2)) 112px; background: var(--white); }
.section-intro { max-width: 800px; margin-bottom: 62px; display: grid; grid-template-columns: 0.8fr 1.3fr; column-gap: 72px; }
.section-intro .kicker { grid-column: 1 / -1; }
h2 { margin-bottom: 0; font: 600 52px/1.02 var(--serif); }
.section-intro > p:last-child { align-self: end; margin-bottom: 4px; color: var(--muted); font-size: 16px; }
.catalog-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; list-style: none; border-bottom: 1px solid var(--line); }
.catalog-item { min-width: 0; padding: 26px 0; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.catalog-item picture { align-self: start; width: 116px; }
.catalog-item img { width: 100%; max-height: 178px; object-fit: contain; object-position: top center; }
.book-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.book-meta { margin-bottom: 8px; color: var(--moss); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.book-copy h3 { margin-bottom: 9px; font: 600 24px/1.06 var(--serif); overflow-wrap: anywhere; }
.book-copy h3 a { text-decoration: none; }
.book-copy > p:not(.book-meta) { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.book-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; font-weight: 600; }
.book-links a:last-child { color: var(--oxblood); }

.reviews { padding: 96px max(24px, calc((100% - var(--max)) / 2)) 104px; background: var(--paper); }
.reviews header { max-width: 720px; margin-bottom: 52px; }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--ink); }
.review-list blockquote { min-width: 0; margin: 0; padding: 29px 34px 12px 0; border-right: 1px solid var(--line); }
.review-list blockquote + blockquote { padding-left: 34px; }
.review-list blockquote:last-child { border-right: 0; }
.review-list blockquote p { min-height: 116px; margin-bottom: 24px; font: 400 23px/1.3 var(--serif); }
.review-list footer { display: grid; gap: 5px; }
.review-list cite { font-size: 12px; font-style: normal; font-weight: 600; }
.review-list footer a { color: var(--muted); font-size: 11px; }

.author { padding: 92px max(24px, calc((100% - var(--max)) / 2)) 100px; display: grid; grid-template-columns: 0.72fr 1.1fr 0.65fr; gap: 60px; background: var(--white); }
.author-copy { max-width: 580px; color: var(--ink-soft); font-size: 16px; }
.author-copy p:last-child { margin-bottom: 0; }
.author aside { align-self: start; padding-top: 17px; display: grid; gap: 12px; border-top: 3px solid var(--ink); }
.author aside span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.author aside a { font: 600 19px var(--serif); }

.site-footer { min-height: 190px; padding: 42px max(24px, calc((100% - var(--max)) / 2)); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; color: #bec4bf; background: var(--ink); font-size: 12px; }
.site-footer > div:first-child { display: grid; align-content: start; gap: 8px; }
.site-footer strong { color: var(--white); font: 600 19px var(--serif); }
.site-footer nav { display: grid; align-content: start; gap: 8px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); }
.legal { display: grid; justify-items: end; align-content: start; gap: 8px; }

/* Static book and error pages */
.page-hero { padding: 70px max(24px, calc((100% - var(--max)) / 2)) 82px; display: grid; grid-template-columns: 300px minmax(0, 680px); justify-content: center; gap: 90px; color: var(--white); background: var(--ink); }
.page-cover { align-self: start; width: 260px; margin: 0; }
.page-cover img { width: 100%; max-height: 402px; object-fit: contain; object-position: top; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4); }
.page-copy { align-self: center; }
.page-copy h1 { margin-bottom: 20px; font-size: 64px; }
.page-copy .edition { color: var(--moss-light); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.page-copy .summary { max-width: 620px; margin-bottom: 28px; color: #d2d6d3; font: 400 25px/1.25 var(--serif); }
.page-facts { margin: 30px 0 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 18px 30px; border-top: 1px solid var(--line-dark); }
.page-facts div { display: grid; gap: 3px; }
.page-facts dt { color: #aeb5b0; font-size: 10px; text-transform: uppercase; }
.page-facts dd { margin: 0; font-size: 13px; }
.page-body { max-width: 850px; margin: 0 auto; padding: 70px 24px 90px; }
.page-body h2 { margin-bottom: 25px; font-size: 42px; }
.page-body p { color: var(--ink-soft); font-size: 17px; }
.page-body .back-link { display: inline-block; margin-top: 34px; color: var(--oxblood); font-weight: 600; }
.error-page { min-height: calc(100vh - 262px); padding: 110px 24px; display: grid; place-items: center; text-align: center; background: var(--paper); }
.error-page div { max-width: 620px; }
.error-page h1 { margin-bottom: 20px; color: var(--ink); font-size: 72px; }
.error-page p { margin-bottom: 28px; color: var(--muted); font-size: 18px; }

@media (max-width: 920px) {
  .masthead { padding-inline: 20px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .masthead nav { width: 100%; padding-bottom: 2px; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; }
  h1 { font-size: 68px; }
  .hero-deck { font-size: 27px; }
  .hero-book { width: 220px; }
  .hero-book img { width: 220px; }
  .section-intro { grid-template-columns: 1fr; gap: 22px; }
  .catalog-list { grid-template-columns: 1fr; }
  .author { grid-template-columns: 0.7fr 1.3fr; }
  .author aside { grid-column: 2; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 8px; }
  .masthead { min-height: 144px; padding: 14px 16px 12px; }
  .brand strong { font-size: 19px; }
  .brand span { font-size: 10px; }
  .masthead nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; overflow: visible; white-space: normal; font-size: 12px; }
  .masthead nav a { min-height: 32px; display: inline-flex; align-items: center; }
  .hero { min-height: 620px; }
  .hero-background { object-position: 62% center; }
  .hero::before { background: linear-gradient(180deg, rgba(15, 18, 16, 0.96) 0%, rgba(15, 18, 16, 0.88) 58%, rgba(15, 18, 16, 0.62) 100%); }
  .hero-inner { min-height: 620px; padding: 46px 18px 34px; grid-template-columns: minmax(0, 1fr) 122px; align-items: end; gap: 20px; }
  .hero-copy { align-self: start; grid-column: 1 / -1; }
  h1 { margin-bottom: 18px; font-size: 52px; overflow-wrap: anywhere; }
  .hero-deck { max-width: 470px; font-size: 25px; }
  .hero-note { margin-bottom: 24px; }
  .hero-actions { gap: 18px; }
  .hero-book { width: 122px; justify-self: end; align-self: end; }
  .hero-book img { width: 122px; }
  .hero-book figcaption { display: none; }
  .catalogue { padding: 70px 16px 82px; }
  .section-intro { margin-bottom: 38px; }
  h2 { font-size: 39px; }
  .section-intro > p:last-child { font-size: 15px; }
  .catalog-item { padding: 22px 0; grid-template-columns: 92px minmax(0, 1fr); gap: 17px; }
  .catalog-item picture { width: 92px; }
  .catalog-item img { max-height: 143px; }
  .book-copy h3 { font-size: 21px; }
  .book-copy > p:not(.book-meta) { font-size: 12px; }
  .book-links { gap: 11px 14px; }
  .reviews { padding: 70px 16px 76px; }
  .reviews header { margin-bottom: 34px; }
  .review-list { grid-template-columns: 1fr; }
  .review-list blockquote, .review-list blockquote + blockquote { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .review-list blockquote:last-child { border-bottom: 0; }
  .review-list blockquote p { min-height: 0; font-size: 21px; }
  .author { padding: 70px 16px 76px; grid-template-columns: 1fr; gap: 25px; }
  .author aside { grid-column: 1; margin-top: 10px; }
  .site-footer { padding: 38px 16px; grid-template-columns: 1fr; gap: 28px; }
  .legal { justify-items: start; }
  .page-hero { padding: 48px 18px 58px; grid-template-columns: 1fr; gap: 30px; }
  .page-cover { width: 170px; justify-self: center; }
  .page-cover img { max-height: 263px; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4); }
  .page-copy h1 { font-size: 38px; }
  .page-copy .summary { font-size: 19px; }
  .page-copy .button { width: 100%; }
  .page-facts { grid-column: 1; }
  .page-body { padding: 54px 18px 70px; }
  .page-body h2 { font-size: 35px; }
  .error-page h1 { font-size: 52px; }
}

@media (max-width: 390px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 96px; }
  h1 { font-size: 46px; }
  .hero-deck { font-size: 22px; }
  .hero-book { width: 96px; }
  .hero-book img { width: 96px; }
  .catalog-item { grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }
  .catalog-item picture { width: 78px; }
  .catalog-item img { max-height: 121px; }
  .book-copy h3 { font-size: 19px; }
  .page-copy h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
