:root {
  --paper: #f6efe2;
  --paper-light: #fffaf1;
  --ink: #25231f;
  --muted: #6e675e;
  --tomato: #d84a2f;
  --tomato-dark: #a92d1f;
  --butter: #efc95c;
  --sage: #a9b59f;
  --blue: #bdd4dd;
  --line: #2e2b26;
  --shadow: 5px 6px 0 var(--line);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Gill Sans", Calibri, sans-serif;
  --hand: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgb(37 35 31 / 5%) 0.7px, transparent 0.7px);
  background-size: 7px 7px;
  font-family: var(--sans);
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  border: 8px solid var(--ink);
  pointer-events: none;
  content: "";
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 0.98;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(4.1rem, 10vw, 9.6rem);
  font-weight: 500;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--tomato);
  font-weight: 400;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0.85rem clamp(1.4rem, 4vw, 4.5rem);
  border-bottom: 2px solid var(--ink);
  background: rgb(246 239 226 / 94%);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
  font-size: 1.25rem;
  font-style: italic;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2.2rem);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a,
.text-button {
  border: 0;
  background: none;
  text-decoration: none;
  cursor: pointer;
}

nav a:hover,
.text-button:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.disclosure {
  padding: 0.65rem 1.4rem;
  border-bottom: 2px solid var(--ink);
  background: var(--butter);
  font-size: 0.82rem;
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  min-height: calc(100vh - 118px);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.4rem, 6vw, 7.5rem);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 660px;
  margin-bottom: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.button-primary {
  background: var(--tomato);
  color: white;
}

.button-secondary {
  background: var(--paper-light);
}

.hero-card {
  position: relative;
  padding: 3rem 2rem 2rem;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}

.hero-card .handwritten {
  margin-bottom: 2rem;
  color: var(--tomato);
  font-family: var(--hand);
  font-size: 1.35rem;
  transform: rotate(-3deg);
}

.hero-card ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.hero-card li span {
  color: var(--tomato);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
}

.tape {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 105px;
  height: 34px;
  background: rgb(189 212 221 / 76%);
  transform: translateX(-50%) rotate(-4deg);
}

.journal-section,
.journal-index {
  padding: clamp(4.5rem, 9vw, 9rem) clamp(1.4rem, 6vw, 7.5rem);
  border-top: 2px solid var(--ink);
  background: var(--blue);
}

.journal-heading {
  max-width: 960px;
  margin-bottom: clamp(3rem, 8vw, 7rem);
}

.journal-heading h1,
.article-hero h1 {
  font-size: clamp(3.4rem, 8vw, 7.8rem);
}

.journal-heading > p:last-child,
.article-dek {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.article-card {
  position: relative;
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: 1.5rem;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 4px 4px 0 var(--ink);
}

.article-card:nth-child(3n + 2) {
  background: var(--butter);
}

.article-card:nth-child(3n + 3) {
  background: var(--paper);
}

.article-number,
.article-meta,
.truth-line {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-number {
  color: var(--tomato-dark);
}

.article-card h3 {
  margin: 1rem 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.02;
}

.article-card h3 a {
  text-decoration: none;
}

.article-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.article-card > p:not(.article-number, .article-meta, .truth-line) {
  font-family: var(--serif);
}

.truth-line {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(37 35 31 / 30%);
}

.journal-page {
  min-height: 80vh;
}

.article-hero {
  padding: clamp(4.5rem, 10vw, 9rem) clamp(1.4rem, 12vw, 14rem);
  border-bottom: 2px solid var(--ink);
  background: var(--blue);
}

.article-hero h1 {
  max-width: 1100px;
  margin-bottom: 2rem;
}

.article-body {
  width: min(780px, calc(100% - 2.8rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.article-boundary {
  margin-bottom: 4rem;
  padding: 1.25rem 1.4rem;
  border: 2px solid var(--ink);
  background: var(--butter);
  box-shadow: 4px 4px 0 var(--ink);
}

.article-section + .article-section {
  margin-top: 4rem;
}

.article-section h2,
.related-products h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.article-section p {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.article-section p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--tomato);
  font-family: var(--serif);
  font-size: 3.3em;
  line-height: 0.78;
}

.related-products {
  margin-top: 5rem;
  padding: 2rem;
  border: 2px solid var(--ink);
  background: var(--sage);
}

.related-products ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-products li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-top: 1px solid var(--ink);
}

.related-products li span {
  color: #3f453b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-return {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0 1.4rem 5rem;
}

.finder {
  padding: clamp(4.5rem, 9vw, 9rem) clamp(1.4rem, 6vw, 7.5rem);
  border-top: 2px solid var(--ink);
  background: var(--paper-light);
}

.section-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

#result-count {
  min-width: 9rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.search-box {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.8rem;
  align-items: center;
  max-width: 980px;
  padding: 1rem 1.15rem;
  border: 2px solid var(--ink);
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
}

.search-box:focus-within {
  outline: 3px solid var(--butter);
  outline-offset: 3px;
}

.search-box svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}

.filter-row {
  display: flex;
  gap: 0.65rem;
  padding: 2rem 0 2.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 0.58rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.4rem;
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 2px solid var(--ink);
  background: var(--paper);
  transition: transform 160ms ease, box-shadow 160ms ease;
  animation: card-in 400ms both;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translate(-3px, -3px);
}

.product-visual {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--card-color, var(--blue));
}

.product-visual::before,
.product-visual::after {
  position: absolute;
  width: 45%;
  aspect-ratio: 1;
  border: 1.5px solid rgb(37 35 31 / 35%);
  border-radius: 50%;
  content: "";
}

.product-visual::before {
  top: -18%;
  right: -7%;
}

.product-visual::after {
  bottom: -25%;
  left: -4%;
}

.product-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  background: rgb(255 250 241 / 68%);
  object-fit: contain;
}

.product-monogram {
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-style: italic;
  letter-spacing: -0.08em;
}

.truth-badge {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.55rem;
  border: 1.5px solid var(--ink);
  background: var(--paper-light);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem;
}

.product-category {
  margin-bottom: 0.5rem;
  color: var(--tomato-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-body h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.08;
}

.product-note {
  display: -webkit-box;
  margin-bottom: 1.1rem;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgb(37 35 31 / 25%);
}

.product-actions .button {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  font-size: 0.68rem;
}

.details-button {
  border: 0;
  background: none;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.card-disclosure {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.67rem;
}

.load-more {
  display: flex;
  margin: 3rem auto 0;
}

.empty-state {
  max-width: 560px;
  margin: 2rem auto 0;
  padding: 3rem;
  border: 2px dashed var(--ink);
  text-align: center;
}

.empty-state .empty-doodle {
  margin-bottom: 0;
  color: var(--tomato);
  font-family: var(--hand);
  font-size: 3rem;
}

.notes-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(5rem, 10vw, 10rem) clamp(1.4rem, 6vw, 7.5rem);
  border-top: 2px solid var(--ink);
  background: var(--sage);
}

.notes-intro {
  align-self: center;
}

.notes-intro h2 {
  font-size: clamp(2.8rem, 5vw, 5.4rem);
}

.note-links {
  border-top: 2px solid var(--ink);
}

.note-links a {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 0.4rem;
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
  transition: padding 150ms ease, background 150ms ease;
}

.note-links a:hover {
  padding-right: 1rem;
  padding-left: 1rem;
  background: rgb(255 250 241 / 55%);
}

.note-links span {
  font-size: 0.7rem;
  font-weight: 800;
}

.note-links strong {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.note-links small {
  color: #3f453b;
  text-align: right;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.4rem, 10vw, 12rem);
  border-top: 2px solid var(--ink);
  background: var(--tomato);
  color: white;
}

.about-section > div:last-child {
  max-width: 900px;
}

.about-stamp {
  display: grid;
  width: min(210px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-8deg);
}

.about-section h2 {
  max-width: 850px;
}

.about-section p:not(.eyebrow) {
  max-width: 760px;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.about-section .small-print {
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 55%);
  font-family: var(--sans) !important;
  font-size: 0.75rem !important;
}

.product-dialog {
  width: min(720px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  border: 3px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 10px 10px 0 var(--ink);
}

.product-dialog::backdrop {
  background: rgb(37 35 31 / 65%);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 0.75rem;
  left: calc(100% - 3.5rem);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-light);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-inner {
  padding: 0 2rem 2rem;
}

.dialog-visual {
  display: grid;
  min-height: 220px;
  margin: -2.8rem -2rem 2rem;
  place-items: center;
  border-bottom: 2px solid var(--ink);
  background: var(--card-color, var(--blue));
}

.dialog-visual img {
  width: 100%;
  height: min(52vh, 420px);
  padding: 2rem;
  background: var(--paper-light);
  object-fit: contain;
}

.dialog-visual .product-monogram {
  font-size: 7rem;
}

.dialog-inner h2 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}

.dialog-note {
  padding: 1.2rem;
  border-left: 5px solid var(--tomato);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.dialog-caveat {
  color: var(--muted);
  font-size: 0.8rem;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 3rem;
  align-items: center;
  padding: 3rem clamp(1.4rem, 6vw, 7.5rem);
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: white;
}

footer p {
  margin: 0;
  text-align: right;
}

.footer-wordmark .wordmark-mark {
  color: var(--ink);
}

.footer-legal,
.amazon-disclosure {
  grid-column: 1 / -1;
  color: #cfc8bd;
  font-size: 0.72rem;
  text-align: left;
}

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

.legal-page {
  width: min(820px, calc(100% - 2.8rem));
  min-height: calc(100vh - 188px);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.legal-page h1 {
  margin-bottom: 2rem;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
}

.legal-page h2 {
  margin-top: 3rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.legal-page p,
.legal-page li {
  max-width: 700px;
  font-family: var(--serif);
  font-size: 1.12rem;
}

.legal-page .legal-updated {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (max-width: 900px) {
  body::before {
    border-width: 5px;
  }

  .hero,
  .notes-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    width: min(460px, 92%);
    justify-self: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-intro {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
  }

  .wordmark > span:last-child {
    display: none;
  }

  nav {
    gap: 0.85rem;
    padding-top: 0.65rem;
    font-size: 0.64rem;
  }

  .disclosure {
    padding-right: 1.2rem;
    padding-left: 1.2rem;
    text-align: left;
  }

  .hero {
    gap: 4rem;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }

  h1 {
    font-size: clamp(3.65rem, 19vw, 6rem);
  }

  .hero-card {
    width: calc(100% - 1rem);
  }

  .section-heading {
    display: block;
  }

  #result-count {
    margin-top: 1rem;
    text-align: left;
  }

  .search-box input {
    font-size: 0.9rem;
  }

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

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

  .article-return,
  .related-products li {
    align-items: stretch;
    flex-direction: column;
  }

  .product-visual {
    aspect-ratio: 16 / 10;
  }

  .note-links a {
    grid-template-columns: 2rem 1fr;
  }

  .note-links small {
    display: none;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-stamp {
    width: 140px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
