@font-face { font-family: "DTFA Sans"; src: url("/assets/fonts/DejaVuSans.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DTFA Sans"; src: url("/assets/fonts/DejaVuSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DTFA Serif"; src: url("/assets/fonts/DejaVuSerif.ttf") format("truetype"); font-display: swap; }

:root {
  --cream: #f8ecd3;
  --paper: #fffaf0;
  --teal: #67a6a6;
  --navy: #102d3d;
  --red: #d72920;
  --gold: #dbb65b;
  --ink: #151c22;
  --border: #cfc2a9;
  --font: "DTFA Sans", sans-serif;
  --font-display: "DTFA Sans", sans-serif;
  --container: 1180px;
}

html { scroll-padding-top: 8.75rem; }
body { background: var(--cream); color: var(--ink); font-family: var(--font); overflow-x: clip; }
h1, h2, h3, h4, h5 { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.story-copy :focus-visible { outline-color: var(--cream); }
a, button, input, select, textarea { scroll-margin-top: 8.75rem; }
input, select, textarea { color: var(--navy); background: #fff; }
input::placeholder, textarea::placeholder { color: #5c5348; }
button:disabled, .btn:disabled { background: var(--navy); color: var(--cream); cursor: not-allowed; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.preview-bar { background: var(--navy); color: var(--cream); text-align: center; font-size: .85rem; padding: .45rem 1rem; }
.site-header { background: var(--cream); color: var(--navy); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-top, .site-nav-inner, .container { width: min(var(--container), calc(100% - 2rem)); margin-inline: auto; }
.header-top { display: flex; align-items: center; gap: 1.25rem; min-height: 84px; }
.site-logo { display: flex; align-items: center; gap: .55rem; min-width: 220px; }
.site-logo-badge { width: 54px; height: 54px; object-fit: contain; }
.site-logo-wordmark { width: 168px; height: auto; }
.header-search { flex: 1; display: flex; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; max-width: 420px; margin-left: auto; }
.header-search input { flex: 1; border: 0; background: transparent; padding: .7rem 1rem; color: var(--ink); }
.header-search button { border: 0; background: transparent; padding: .55rem .9rem; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-util { position: relative; color: var(--navy); display: inline-flex; align-items: center; }
.header-util-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cart-badge { position: absolute; top: -6px; right: -8px; background: var(--red); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 1.1rem; text-align: center; }
.cart-badge.hidden { display: none; }
.site-nav { border-top: 1px solid transparent; }
.site-nav-inner { display: flex; justify-content: flex-end; gap: 1.4rem; padding-bottom: .85rem; font-weight: 700; font-size: .95rem; }
.site-nav a { color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--red); }
.mobile-menu-btn { display: none; width: 42px; height: 42px; border: 0; background: transparent; }
.mobile-menu-btn span { display: block; height: 2px; margin: 5px 8px; background: var(--navy); }
.mobile-nav { display: none; background: var(--paper); padding: 0 1rem 1rem; }
.mobile-nav.open { display: grid; gap: .35rem; }
.mobile-nav a, .header-search--mobile { color: var(--navy); font-weight: 700; padding: .45rem 0; }
.header-search--mobile { display: flex; margin: .5rem 0 0; max-width: none; }

.btn, .btn-primary { display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: #fff; border: 0; border-radius: 6px; padding: .8rem 1.2rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.section { padding: 2.5rem 0 3rem; }
.section-title { text-align: center; margin-bottom: 1.5rem; }
.section-title h1, .section-title h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.product-card { background: var(--paper); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.product-card-image { background: #f3efe4; aspect-ratio: 1; display: grid; place-items: center; }
.product-card-image img { width: 100%; height: 100%; object-fit: contain; }
.product-card-body { padding: .85rem; }
.product-card-name { font-size: 1rem; color: var(--navy); }
.product-card-series { color: var(--navy); }
.product-card-meta-row { display: grid; }
.product-card-price { font-weight: 700; color: var(--navy); }
.site-footer { background: var(--cream); color: var(--navy); border-top: 1px solid var(--border); padding: 1.25rem 0 1.5rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 1rem 1.25rem; padding: 0; }
.site-footer .footer-brand a.footer-mark { display: flex; flex-direction: row; align-items: center; gap: .55rem; width: auto; }
.site-footer .footer-brand img { width: auto; height: auto; margin: 0; max-width: none; }
.site-footer .footer-brand img.footer-badge { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; }
.site-footer .footer-brand img.footer-wordmark { width: 132px; height: auto; flex: 0 1 132px; }
.site-footer .footer-col { display: grid; align-content: start; gap: .2rem; }
.site-footer .footer-col h2 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .25rem; color: var(--navy); }
.site-footer .footer-col a { color: var(--navy); font-size: .86rem; margin: 0; }
.site-footer .footer-col a:hover, .site-footer .footer-col a:focus-visible { color: #8f1a14; text-decoration: underline; }
.site-footer .footer-copy { max-width: 28rem; margin: .45rem 0 0; font-size: .82rem; color: var(--navy); line-height: 1.4; }
.coming-soon { color: var(--navy); letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.coming-soon-note { margin-top: .35rem; max-width: 28rem; }
.content-page { max-width: 46rem; }
.content-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; line-height: 1; }
.content-page .lead, .draft-note { margin: .8rem 0 1.2rem; }
.draft-note { background: #fff6d8; border: 1px solid var(--gold); padding: .75rem 1rem; }
.content-hero { width: 100%; border-radius: 8px; margin: 1rem 0; }
.content-page section { margin: 1.2rem 0; }
.content-page ul { list-style: disc; padding-left: 1.2rem; }
.article-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.article-card { background: var(--paper); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.article-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.article-card a { display: block; padding-bottom: 1rem; }
.article-card h2, .article-card p, .article-label { margin: .6rem 1rem 0; }
.article-label { color: var(--red); font-weight: 700; letter-spacing: .08em; font-size: .78rem; }
.search-page-form { display: flex; gap: .5rem; margin: 0 auto 1.5rem; max-width: 36rem; }
.search-page-form input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: .75rem 1rem; }
.collection-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.collection-links a { border: 1px solid var(--border); border-radius: 999px; padding: .35rem .8rem; background: var(--paper); color: var(--navy); font-weight: 700; }
.contact-form { display: grid; gap: .75rem; max-width: 36rem; margin-top: 1.5rem; }
.contact-form label { display: grid; gap: .3rem; font-weight: 700; }
.contact-form input, .contact-form textarea { border: 1px solid var(--border); border-radius: 8px; padding: .7rem .8rem; font: inherit; background: #fff; }
.contact-honeypot { position: absolute; left: -9999px; }

@media (max-width: 700px) {
  .header-top { min-height: 64px; gap: .6rem; }
  .site-logo-badge { width: 40px; height: 40px; }
  .site-logo-wordmark { width: 108px; }
}
@media (max-width: 900px) {
  .product-grid, .footer-grid, .article-list { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
  .header-search--mobile { display: flex; }
  .site-nav { display: none; }
  .mobile-menu-btn { display: inline-block; }
  .site-logo { min-width: 0; }
  .site-logo-wordmark { width: 132px; }
}
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .product-card-body { padding: .4rem .45rem .55rem; }
  .product-card-name { font-size: .82rem; line-height: 1.2; }
  .product-card-series { font-size: .68rem; }
  .product-card-meta-row { gap: .15rem; }
  .section { padding: 1.2rem 0 1.4rem; }
  .section-title { margin-bottom: .8rem; }
  .site-footer { padding: 1rem 0 1rem; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.15rem 1rem; }
  .site-footer .footer-brand,
  .site-footer .footer-col:last-child { grid-column: 1 / -1; }
  .site-footer .footer-copy { margin-top: .3rem; }
  .site-footer .footer-brand img.footer-badge { width: 72px; height: 72px; flex-basis: 72px; }
  .category-icon { width: 84px; height: 84px; }
}
@media (max-width: 560px) {
  .article-list { grid-template-columns: 1fr; }
}
