/* Project 878 — brand styles. Colors/fonts per brand/final/brand_guide.md */
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Anton"; src: url("/assets/fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --teal: #00A0A0;          /* 878 accent */
  --teal-ink: #006B6B;      /* darker teal for small text on light bg (AA contrast) */
  --charcoal: #1E2024;      /* Night Charcoal */
  --slate: #3C4046;         /* Slate Rock */
  --bone: #F7F3EA;          /* Bone White */
  --white: #FFFFFF;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --punch: "Anton", "Arial Black", sans-serif;   /* Impact look, never Impact */
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--charcoal); background: var(--bone); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.02; margin: 0 0 .4em; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(2.4rem, 6vw, 4rem); }
h3 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h4 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal); color: var(--charcoal); padding: .6rem 1rem; font-weight: 600; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; padding: .7em 1.4em; border-radius: 999px; border: 3px solid transparent; cursor: pointer; transition: transform .12s ease, background-color .12s ease; line-height: 1.1; }
.btn:hover { transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: var(--charcoal); }
.btn-teal:hover { background: #12B5B5; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--slate); }
.btn.is-soon { background: var(--slate); color: var(--white); cursor: default; }
.btn.is-soon:hover { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header */
.site-header { background: var(--charcoal); position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--teal); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--white); font-family: var(--head); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; text-decoration: none; letter-spacing: .03em; }
.nav a:hover { color: var(--teal); }
.nav .nav-cta { background: var(--teal); color: var(--charcoal); padding: .35em .9em; border-radius: 999px; }
.nav .nav-cta:hover { color: var(--charcoal); background: #12B5B5; }

/* Hero */
.hero { background: var(--charcoal); color: var(--white); padding-block: clamp(3rem, 8vw, 6rem); overflow: hidden;
  background-image: radial-gradient(circle at 85% 30%, rgba(0,160,160,.22), transparent 55%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.hero-logo { width: min(520px, 100%); margin-bottom: 1.6rem; }
.hero h1 { font-family: var(--punch); font-weight: 400; font-size: clamp(3rem, 8vw, 5.6rem); line-height: .95; margin-bottom: .3em; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 34ch; color: #E6E2D9; }
.hero-art img { width: min(380px, 100%); margin-inline: auto; border-radius: 10px; box-shadow: 0 24px 50px rgba(0,0,0,.5); transform: rotate(3deg); border: 6px solid var(--white); }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-light { background: var(--bone); }
.section-dark { background: var(--slate); color: var(--white); }
.section-teal { background: var(--teal); color: var(--charcoal); }
.kicker { font-family: var(--punch); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-ink); margin-bottom: .3rem; font-size: 1.15rem; }
.section-dark .kicker { color: #3FCACA; } /* lighter teal tint so small text passes AA on Slate Rock */
.section-dark .kicker, .section-dark h2 { text-align: center; }
.section-lede { text-align: center; font-size: 1.25rem; max-width: 40ch; margin-inline: auto; color: #ECE8DF; }
.sub-title { margin-top: 3.5rem; }

/* Books */
.book-feature { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; background: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 3rem); box-shadow: 0 6px 0 var(--charcoal); border: 3px solid var(--charcoal); margin-top: 2rem; }
.book-cover img { border-radius: 6px; box-shadow: 0 12px 28px rgba(30,32,36,.3); }
.book-info h3 span { color: var(--teal-ink); }
.badge { display: inline-block; font-family: var(--punch); text-transform: uppercase; letter-spacing: .08em; background: var(--charcoal); color: var(--teal); padding: .15em .7em; border-radius: 6px; font-size: 1rem; margin-bottom: .8rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1.4rem 0 1.8rem; }
.facts li { background: var(--bone); border-left: 5px solid var(--teal); padding: .55rem .8rem; border-radius: 6px; font-size: 1.02rem; }
.facts strong { font-weight: 600; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.price { font-family: var(--punch); font-size: 2.6rem; line-height: 1; margin: 0; }

.samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.samples img { background: var(--white); border: 3px solid var(--charcoal); border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }

.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.soon-card { background: var(--white); border: 3px solid var(--charcoal); border-radius: var(--radius); padding: 1rem 1rem 1.2rem; }
.soon-card h4 { margin-top: 1rem; }
.soon-card p { margin: 0; color: var(--slate); }
.soon-tile { aspect-ratio: 17 / 22; border-radius: 10px; position: relative; overflow: hidden; background: var(--white); border: 2px solid #D8D3C8; }
.soon-tile img { width: 100%; height: 100%; object-fit: cover; }
.peek-label { position: absolute; left: .6rem; bottom: .6rem; background: var(--charcoal); color: var(--white); font-family: var(--head); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; padding: .2em .7em; border-radius: 6px; }
.soon-tile::after { content: "Coming Soon"; position: absolute; top: .7rem; right: .7rem; font-family: var(--head); font-weight: 800; font-size: .9rem; text-transform: uppercase; background: var(--white); color: var(--charcoal); padding: .15em .6em; border-radius: 999px; }

/* Merch */
.merch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; max-width: 860px; margin: 2.4rem auto 2rem; }
.merch-card { background: var(--charcoal); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.6rem; text-align: center; border: 3px solid #4B5058; }
.merch-card h3 { margin: 1.2rem 0 .2rem; }
.merch-card .price { color: var(--teal); margin-bottom: 1rem; font-size: 2.2rem; }
.merch-img { aspect-ratio: 16 / 10; border-radius: 10px; display: grid; place-items: center; padding: 1.5rem; }
.merch-img-light { background: var(--bone); }
.merch-img-dark { background: #111214; }
.merch-img img { width: 90%; }
.merch-img-dark img { width: 70%; }
.merch-group { text-align: center; margin: 2.6rem 0 0; color: var(--white); }
.merch-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.merch-swap { aspect-ratio: 1 / 1; padding: 0; position: relative; overflow: hidden; }
.merch-swap img { width: 100%; height: 100%; object-fit: contain; grid-area: 1 / 1; transition: opacity .25s ease; }
.merch-swap .back { opacity: 0; }
.merch-swap:hover .back, .merch-swap:focus .back { opacity: 1; }
.merch-swap:hover .front, .merch-swap:focus .front { opacity: 0; }
.swap-hint { position: absolute; right: .6rem; bottom: .6rem; background: var(--charcoal); color: var(--white); font-family: var(--head); font-weight: 800; font-size: .85rem; text-transform: uppercase; padding: .15em .6em; border-radius: 6px; }
.soon-badge { margin: 1.1rem 0 0; }
.is-soon-item h3 { margin-top: .6rem; }
.merch-desc { color: #D9D5CC; font-size: 1rem; margin: 0; }
.fineprint { font-size: .9rem; opacity: .85; }

/* Signup */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.signup h2 { margin-bottom: .2em; }
.signup p { font-size: 1.2rem; margin: 0; }
.signup-form label { display: block; font-weight: 600; margin-bottom: .4rem; }
.field-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.field-row input { flex: 1 1 220px; font: inherit; padding: .75em 1em; border-radius: 999px; border: 3px solid var(--charcoal); background: var(--white); color: var(--charcoal); min-width: 0; }
.field-row input:focus-visible { outline-color: var(--charcoal); }
.form-note { min-height: 1.6em; margin-top: .6rem !important; font-weight: 600; }

/* Footer */
.site-footer { background: var(--charcoal); color: #D9D5CC; padding-block: 3rem; text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 1rem; }
.footer-inner > img { width: 150px; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a, .site-footer a { color: var(--teal); font-weight: 600; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .hero-inner, .book-feature, .signup { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-logo { margin-inline: auto; }
  .lede { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .hero-art img { width: min(280px, 70%); }
  .book-cover img { width: min(300px, 80%); margin-inline: auto; }
  .soon-grid { grid-template-columns: 1fr; }
  .merch-grid, .merch-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: .9rem; }
  .nav li:not(:last-child) { display: none; }
  .brand img { width: 120px; }
  .facts { grid-template-columns: 1fr; }
  .samples { gap: .6rem; }
  .hero-art { display: none; }      /* cover already shows in the Books section */
  h2 { font-size: 2.05rem; }
  .soon-tile { aspect-ratio: 4 / 3; }
  .soon-tile img { object-position: center 60%; }
  .price-row { justify-content: center; }
  .book-info { text-align: center; }
  .facts li { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
.section-dark p > .btn.is-soon { background: var(--charcoal); border-color: #5A5F67; }

/* Redbubble product grid (real mockups) */
.rb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 2rem auto 1rem; max-width: 900px; }
.rb-card { display: flex; flex-direction: column; align-items: center; padding: .8rem .8rem 1.2rem; }
.rb-card h3 { font-size: 1.45rem; margin: 1rem 0 .1rem; }
.rb-card .price { font-size: 1.9rem; margin-bottom: .9rem; }
.rb-card .btn { margin-top: auto; font-size: 1.05rem; }
.rb-photo { width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #F2F2F2; display: grid; position: relative; }
.rb-photo img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; transition: opacity .25s ease; }
@media (max-width: 1000px) { .rb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .rb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } }
@media (max-width: 560px) {
  .rb-card { padding: .5rem .5rem .9rem; }
  .rb-card h3 { font-size: 1.1rem; }
  .rb-card .price { font-size: 1.5rem; }
  .rb-card .btn { font-size: .9rem; padding: .6em 1em; }
}
