@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --teal: #092e32;
  --ivory: #f5f1e6;
  --leaf: #b5d46a;
  --forest: #52703d;
  --gold: #d9a64c;
  --ink-muted: #40554e;
  --light-muted: #d7e0d5;
  --paper-deep: #eae5d6;
  --line: #c9cbb9;
  --display: Fraunces, Georgia, serif;
  --body: Inter, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  --content-width: 76rem;
  --section-space: clamp(3.8rem, 8vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--teal);
  font: 400 1rem/1.65 var(--body);
}

h1, h2, h3, h4, p, figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: .8rem auto auto .8rem;
  padding: .6rem 1rem;
  background: var(--ivory);
  color: var(--teal);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header, .hero, .site-footer {
  color: var(--ivory);
  background-color: var(--teal);
}

.site-header { border-bottom: 1px solid #ffffff28; }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
}

.header-inner { min-block-size: 5rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font: 500 1.55rem/1 var(--display);
  white-space: nowrap;
}

.wordmark-library {
  font: 600 .69em/1 var(--body);
  color: var(--leaf);
}

.wordmark img { flex: none; }
.wordmark:hover { color: var(--leaf); }

nav { display: flex; gap: clamp(.9rem, 3vw, 2.6rem); }
nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: .3em;
  white-space: nowrap;
}

nav a:hover { color: var(--leaf); text-decoration: underline; }

.hero {
  overflow: hidden;
  background-image: url("../images/grain.svg");
  background-blend-mode: soft-light;
}

.hero-inner {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 7.9vw, 7.5rem) clamp(4.1rem, 8.5vw, 8.25rem);
}

.hero-content { max-width: 49rem; }

.eyebrow {
  font: 700 .74rem/1.4 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--leaf);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(3rem, 7.65vw, 7.1rem);
  line-height: .98;
  letter-spacing: -.048em;
  word-spacing: .04em;
}

.hero h1 em {
  display: block;
  color: var(--leaf);
  font-weight: inherit;
}

.hero-description {
  max-width: 28rem;
  margin: 1.55rem 0 1.8rem;
  color: var(--light-muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
}

.hero-botanical {
  position: absolute;
  z-index: -1;
  inset: auto -1.5rem 0 auto;
  width: min(49%, 34rem);
  height: auto;
  opacity: .78;
  pointer-events: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .75rem 1.2rem;
  background: var(--leaf);
  color: var(--teal);
  border: 1px solid transparent;
  border-radius: .2rem;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: var(--ivory); border-color: currentColor; }
.hero .button:focus-visible { outline-color: var(--ivory); }

.paper {
  background-color: var(--ivory);
  background-image: url("../images/grain.svg");
  background-blend-mode: soft-light;
}

.featured { padding-block: clamp(2.35rem, 5vw, 4.25rem) var(--section-space); }

.section-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: clamp(1.5rem, 3.4vw, 3rem);
  color: var(--forest);
}

.section-label::after {
  content: "";
  flex: 1;
  margin-inline-start: .5rem;
  border-top: 1px solid var(--line);
}

.publication {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6.3vw, 6.1rem);
  align-items: center;
}

.cover-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(1.55rem, 4.4vw, 4.25rem);
  background: #e8e7d7 url("../images/grain.svg");
  background-blend-mode: soft-light;
  border: 1px solid #dadbc8;
}

.cover-stage img {
  width: min(100%, 20.5rem);
  height: auto;
  box-shadow: 0 14px 32px #092e3238, 0 3px 7px #092e3230;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .62rem;
  border: 1px solid var(--line);
  border-radius: .15rem;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tag-status { background: var(--teal); border-color: var(--teal); color: var(--ivory); }
.tag-status::before { content: ""; width: .43rem; height: .43rem; border-radius: 50%; background: var(--gold); }
.tag-available::before { background: var(--leaf); }
.tag-format { color: var(--forest); }

.publication-title {
  font-size: clamp(2.45rem, 5vw, 5.1rem);
  line-height: 1.03;
  letter-spacing: -.043em;
}

.subtitle {
  max-width: 28rem;
  margin-top: .55rem;
  font: italic 500 clamp(1.2rem, 2vw, 1.55rem)/1.27 var(--display);
}

.byline {
  margin-top: 1.05rem;
  color: var(--ink-muted);
  font-size: .9rem;
  font-weight: 700;
}

.book-description {
  max-width: 33rem;
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

.book-description p + p { margin-top: .75rem; }

.price {
  margin-top: 1.5rem;
  padding: .7rem 0 .75rem 1rem;
  border-inline-start: 3px solid var(--forest);
}

.price strong {
  font: 500 1.65rem/1.2 var(--display);
}

.price p { margin-top: .25rem; color: var(--ink-muted); font-size: .9rem; }

.download { margin-top: 1.25rem; }

.catalogue { margin-top: var(--section-space); }
.catalogue > h3 { margin-bottom: 2rem; }
.catalogue .publication + .publication { margin-top: 3rem; }

.discover .shell {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.3rem, 6vw, 5.2rem) var(--section-space);
}

.section-title {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.037em;
}

.discover .section-title { max-width: 46rem; }

.discover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.discover-grid li {
  padding: 1.15rem clamp(1rem, 3vw, 2.8rem) 1.15rem 0;
}

.discover-grid li + li {
  padding-inline-start: clamp(1rem, 3vw, 2.8rem);
  border-inline-start: 1px solid var(--line);
}

.line-icon {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--forest);
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.discover-grid h3 { margin: .65rem 0 .35rem; font-size: 1.45rem; line-height: 1.2; }
.discover-grid p, .workbook { color: var(--ink-muted); }

.workbook {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 0 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

.workbook .line-icon { width: 1.4rem; height: 1.4rem; flex: none; }

.mission {
  padding-block: var(--section-space);
  background: var(--paper-deep) url("../images/grain.svg");
  background-blend-mode: soft-light;
}

.mission-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  gap: clamp(1.4rem, 5vw, 5rem);
  align-items: start;
}

.mission h2 em { color: var(--forest); font-weight: inherit; }
.mission-copy { color: var(--ink-muted); }
.mission-copy p + p { margin-top: .85rem; }

.mission-copy .attribution {
  margin-top: 1.45rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: .9rem;
  font-weight: 600;
}

.footer-inner { flex-wrap: wrap; padding-block: 1.8rem; }
.footer-inner p { color: var(--light-muted); font-size: .82rem; }
.footer-dot { margin-inline: .2em; }

@media (max-width: 800px) {
  .hero-botanical { width: 48%; opacity: .64; }
  .publication { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: 1.65rem; }
}

@media (max-width: 620px) {
  .header-inner { min-block-size: 4.35rem; gap: .5rem; }
  .wordmark { font-size: 1.28rem; gap: .3rem; }
  .wordmark img { width: 1.35rem; height: 1.35rem; }
  nav { gap: .75rem; }
  nav a { font-size: .76rem; }
  .hero-inner { padding-block: 3.9rem; }
  .hero-botanical { width: min(70%, 22rem); inset-inline-end: -4rem; opacity: .27; }
  .publication, .mission-inner, .discover-grid { grid-template-columns: 1fr; }
  .publication { gap: 1.85rem; }
  .cover-stage img { width: min(100%, 16rem); }
  .discover-grid { margin-block: 1.3rem 1rem; }
  .discover-grid li { padding: 1rem 0; }
  .discover-grid li + li { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

@media (max-width: 365px) {
  .header-inner { flex-wrap: wrap; justify-content: flex-start; gap: 0 1.2rem; padding-block: .8rem .2rem; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3rem); }
}

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