/* Heritage Story Shelf. Mobile first. Brand cream sampled from the banner. */

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

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

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

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}

/* Vietnamese letters (ă, ư, ơ, đ, and tone marks such as ầ, ệ) are not in the Latin files. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 560;
  font-display: swap;
  src: url("/fonts/fraunces-roman-560-vi.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 650;
  font-display: swap;
  src: url("/fonts/fraunces-roman-650-vi.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 560;
  font-display: swap;
  src: url("/fonts/fraunces-italic-560-vi.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400-vi.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-600-vi.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --paper: #fce0ae;
  --paper-raise: rgba(255, 248, 230, 0.55);
  --ink: #2a2118;
  --ink-soft: #4a3828;
  --line: rgba(42, 33, 24, 0.16);
  --leaf: #1f5030;
  --leaf-dark: #173c24;
  --gold: #7a4e18;
  --footer: #2c2118;
  --focus: #7a4e18;
  --font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --font-text: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 420px at 0% -10%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(214, 140, 70, 0.16), transparent 55%);
}

img {
  max-width: 100%;
  height: auto;
}

p,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.15rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

a {
  color: var(--leaf);
}

a:hover {
  color: var(--leaf-dark);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10;
  transform: translateY(-200%);
  background: var(--footer);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(252, 224, 174, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-left: auto;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(42, 33, 24, 0.08);
  color: var(--ink);
}

main {
  padding: 1.25rem 0 3rem;
}

.hero {
  margin: 0;
}

.hero img {
  display: block;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(90, 60, 20, 0.18);
  box-shadow: 0 16px 40px rgba(74, 48, 16, 0.12);
}

.lede {
  margin-top: 1.75rem;
  max-width: 40rem;
}

.lede h1 {
  margin-top: 0.4rem;
}

.lede p {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.eyebrow {
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section {
  margin-top: 2.75rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.1rem;
}

.section-head p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.feature {
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.feature-next {
  border-style: dashed;
  border-color: var(--gold);
}

.feature figure {
  margin: 0;
}

.feature img,
.book-layout img {
  display: block;
  width: min(16rem, 78%);
  margin-inline: auto;
  border-radius: 0.3rem;
  box-shadow: 0 14px 30px rgba(74, 48, 16, 0.18);
}

.feature .copy h3 {
  margin-top: 0.35rem;
}

.subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 560;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-top: 0.3rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin-top: 0.9rem;
}

.badges li {
  border: 1px solid rgba(42, 33, 24, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.feature .summary,
.book-copy p {
  margin-top: 0.9rem;
}

.actions {
  margin-top: 1.15rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff8f0;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--leaf);
}

.button:hover {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
  color: #fff8f0;
}

.button-secondary {
  background: transparent;
  color: var(--leaf);
}

.button-secondary:hover {
  background: var(--leaf);
  color: #fff8f0;
}

.soon {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.soon article {
  border-top: 3px solid var(--gold);
  padding-top: 0.75rem;
}

.soon-next {
  background: var(--paper-raise);
  border: 1px dashed var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 1rem;
  padding: 1rem;
}

.series-native {
  margin-top: 0.2rem;
  font-weight: 600;
}

.coming {
  margin-top: 0.85rem;
  font-weight: 600;
}

.gallery {
  margin-top: 2.75rem;
}

.gallery ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  gap: 1.25rem;
}

.gallery img {
  display: block;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(90, 60, 20, 0.18);
}

.gallery figcaption {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.soon p {
  margin-top: 0.4rem;
}

.catalog {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.catalog a {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.catalog a:hover {
  border-color: rgba(42, 33, 24, 0.4);
}

.catalog picture {
  display: block;
}

.catalog img {
  width: 5.25rem;
  border-radius: 0.2rem;
  box-shadow: 0 8px 16px rgba(74, 48, 16, 0.16);
}

.catalog-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.catalog-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.25rem;
  line-height: 1.2;
}

.catalog .subtitle {
  font-size: 1.05rem;
}

.book-head .subtitle {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.book-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.back {
  margin-bottom: 1rem;
  font-weight: 600;
}

.plate {
  margin-top: 2.5rem;
}

.plate img {
  display: block;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(90, 60, 20, 0.18);
}

.plate figcaption {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin-top: 1rem;
}

.draft {
  max-width: 40rem;
  border: 2px dashed var(--gold);
  background: var(--paper-raise);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
}

.draft strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.site-footer {
  background: var(--footer);
  color: var(--paper);
  padding: 2rem 0 2.4rem;
}

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

.footer-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.footer-note {
  margin-top: 0.35rem;
  color: rgba(252, 224, 174, 0.86);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.2rem;
  font-weight: 600;
  text-decoration: none;
}

.social a:hover {
  text-decoration: underline;
}

.social svg {
  display: block;
  flex: none;
}

.legal {
  margin-top: 1.25rem;
  font-size: 0.98rem;
  color: rgba(252, 224, 174, 0.8);
}

@media (min-width: 48rem) {
  .wrap {
    width: min(72rem, calc(100% - 4rem));
  }

  main {
    padding-top: 1.75rem;
  }

  .hero img {
    border-radius: 1.25rem;
  }

  .lede {
    margin-top: 2.25rem;
  }

  .section {
    margin-top: 4rem;
  }

  .feature {
    grid-template-columns: 17rem 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
  }

  .feature img {
    width: 100%;
  }

  .book-layout {
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
  }

  .book-layout img {
    width: 100%;
  }

  .soon {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }

  .soon-next {
    grid-column: 1 / -1;
  }

  .gallery ul {
    grid-template-columns: 1fr 1fr;
  }

  .catalog {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 40rem) {
  .nav {
    margin-left: 0;
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
