/* Granary Digital Woodshop — brand tokens from the Brand Book: Deep Green #004751, Modern Green #00ed87, Oxanium. */
:root {
  --deep: #004751; --deep-2: #00353d; --green: #00ed87; --green-ink: #0a7a4b;
  --paper: #f4f3ee; --ink: #12201f; --muted: #5d6b69; --line: #dcdcd4; --white: #fff;
  --font: "Oxanium", "Segoe UI", system-ui, sans-serif;
  --radius: 14px; --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 300; color: var(--ink); background: var(--white); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--green); padding: 8px; z-index: 99; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 500; color: var(--green-ink); margin-bottom: .6em; }
.eyebrow::before { content: "— "; color: var(--green); }
.lede { font-size: 1.15rem; max-width: 60ch; }
.fine { font-size: .82rem; color: var(--muted); }
.link { font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--green); }
.link:hover { background: var(--green); }
.plain { list-style: none; padding: 0; margin: 0; } .plain li { margin: .3em 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1; }
.btn-primary { background: var(--green); color: var(--deep); border-color: var(--green); }
.btn-primary:hover { background: #2dff9f; }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { border-color: var(--green); }

/* header */
.site-header { background: var(--deep); color: var(--white); position: sticky; top: 0; z-index: 50; }
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; font-weight: 700; }
.brand-mark { width: 34px; flex: none; color: var(--green); display: block; }
.brand-mark svg { width: 100%; height: auto; display: block; }
.brand-name { display: grid; line-height: 1; gap: 3px; }
.brand-granary { font-size: .95rem; letter-spacing: .01em; }
.brand-name em { font-style: normal; color: var(--green); font-size: .72rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; }
@media (max-width: 380px) { .brand-granary { font-size: .85rem; } }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav a { color: inherit; text-decoration: none; font-weight: 500; }
.nav a:hover, .nav summary:hover { color: var(--green); }
.nav-cta { border: 1px solid var(--green); border-radius: 999px; padding: 6px 12px; }
.cart-link .cart-count { background: rgba(255,255,255,.15); border-radius: 999px; padding: 2px 8px; font-size: .8rem; }
.cart-count.has-items { background: var(--green); color: var(--deep); }
.nav-group { position: relative; }
.nav-group summary { cursor: pointer; list-style: none; font-weight: 500; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: " ▾"; font-size: .7em; }
.nav-group ul { position: absolute; top: 100%; left: 0; background: var(--deep-2); list-style: none; margin: 8px 0 0; padding: 10px; min-width: 240px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.nav-group li a { display: block; padding: 8px 10px; border-radius: 6px; }
.nav-group li a:hover { background: rgba(0,237,135,.12); }
.nav-toggle { display: none; margin-left: auto; background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 8px 12px; font-family: inherit; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--deep-2); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 6px; }
  .nav.open { display: flex; }
  .nav-group ul { position: static; box-shadow: none; background: transparent; padding-left: 12px; }
  .nav a, .nav summary { padding: 8px 0; display: block; }
}

/* hero */
.hero { background: var(--deep); color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .055;
  background-image: url("/static/brand/pattern.svg?v=195701e5"); background-size: 190px auto; background-position: right -30px top -20px;
  -webkit-mask-image: linear-gradient(100deg, transparent 34%, #000 78%); mask-image: linear-gradient(100deg, transparent 34%, #000 78%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; min-height: 72vh; padding-top: 48px; padding-bottom: 48px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .eyebrow { color: var(--green); }
.hero .btn-ghost { color: var(--white); }
.hero-cluster { position: relative; aspect-ratio: 1; }
.hero-cluster img { position: absolute; width: 62%; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.35); animation: float 9s ease-in-out infinite; }
.cluster-1 { top: 4%; left: 0; transform: rotate(-4deg); }
.cluster-2 { top: 30%; right: 0; transform: rotate(3deg); animation-delay: -3s; }
.cluster-3 { bottom: 2%; left: 14%; transform: rotate(-1.5deg); animation-delay: -6s; }
@keyframes float { 50% { translate: 0 -8px; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; min-height: 0; } .hero-cluster { max-width: 420px; } }

.ticker { background: var(--green); color: var(--deep); overflow: hidden; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 32s linear infinite; padding: 10px 0; }
.ticker-track span { padding: 0 22px; white-space: nowrap; }
.ticker-track span::after { content: "•"; margin-left: 44px; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* bands */
.band { padding: clamp(40px, 7vw, 88px) 0; }
.band-paper { background: var(--paper); }
.band-deep { background: var(--deep); color: var(--white); }
.band-deep .eyebrow, .band-deep a { color: var(--green); }
.band-deep .card { color: var(--ink); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.band-head p { color: var(--muted); }
.statement { font-size: clamp(1.7rem, 4vw, 3rem); max-width: 22ch; margin-bottom: 36px; }
.hl { background: var(--green); color: var(--deep); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-green { background: var(--green); }
.grid-3, .grid-4 { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid-3 > *, .grid-4 > *, .split > *, .product-grid > *, .hero-grid > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* cards */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,71,81,.14); }
.card-img { aspect-ratio: 4/3; background: #111; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-collection .card-img { aspect-ratio: 16/9; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-weight: 700; font-size: 1.05rem; }
.card-sub { color: var(--muted); font-size: .9rem; }
.card-price { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--deep); }
.card-price small { font-weight: 300; color: var(--muted); }
.chip { position: absolute; z-index: 2; top: 12px; left: 12px; background: var(--deep); color: var(--green); font-weight: 700; font-size: .75rem; padding: 4px 8px; border-radius: 6px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: none; }

.type-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; }
.type-list a:hover { border-color: var(--green); }
.type-list span { color: var(--muted); font-size: .85rem; }
@media (max-width: 800px) { .type-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .type-list { grid-template-columns: 1fr; } }

.cta-panel { background: var(--deep); color: var(--white); border-radius: 22px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; right: -10%; top: -40%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0,237,135,.35), transparent 60%); }
.cta-panel .eyebrow { color: var(--green); }
.cta-panel .btn-ghost { color: var(--white); }
.band-deep .cta-panel { background: var(--deep-2); }

/* page head */
.page-head { background: var(--deep); color: var(--white); padding: 40px 0 36px; position: relative; overflow: hidden; }
.page-head-img { min-height: 46vh; display: flex; align-items: flex-end; }
.page-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-head .wrap { position: relative; }
.page-head .lede p { margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; opacity: .8; }
.crumbs a { color: inherit; }
.group-title { margin-top: 36px; padding-bottom: 8px; border-bottom: 2px solid var(--green); }

/* product */
.product-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }
.product-media img { width: 100%; border-radius: var(--radius); background: #111; }
.price { font-size: 1.9rem; font-weight: 700; color: var(--deep); margin: 0 0 .5em; }
.price small { font-size: .9rem; font-weight: 300; color: var(--muted); }
.option { border: 0; padding: 0; margin: 0 0 14px; }
.option legend { font-weight: 500; margin-bottom: 6px; }
.option label { display: inline-block; margin: 0 8px 8px 0; }
.option input { position: absolute; opacity: 0; }
.option span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.option input:checked + span { border-color: var(--deep); background: var(--deep); color: var(--white); }
.option input:focus-visible + span { outline: 3px solid var(--green); }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 8px 0 6px; }
.qty-row input { width: 70px; padding: 12px; border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 1rem; }
.buy-note { background: var(--paper); border-left: 3px solid var(--green); padding: 10px 14px; border-radius: 6px; }
.facts { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--line); }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts strong { display: inline-block; min-width: 96px; font-weight: 700; color: var(--deep); }
.prose p, .prose li { max-width: 68ch; }
.prose h4 { margin: 1.4em 0 .4em; }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
details summary { cursor: pointer; font-weight: 500; }

/* cart */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.cart-table th, .cart-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cart-table input { width: 64px; padding: 8px; border: 1.5px solid var(--line); border-radius: 6px; font-family: inherit; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* footer */
.site-footer { background: var(--deep-2); color: rgba(255,255,255,.85); padding: 48px 0 28px; margin-top: 40px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.site-footer .eyebrow { color: var(--green); }
.site-footer .fine { color: rgba(255,255,255,.55); margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .hero-cluster img, .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}


/* ---- brand elements, cut from the master vectors (see scripts/build_brand_assets.py) ---- */
.footer-logo { color: var(--white); margin: 0 0 14px; }
.footer-logo svg { width: 132px; height: auto; display: block; }
.footer-logo-sub { display: block; margin-top: 8px; font-size: .72rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--green); }

/* the GD pattern, used as a watermark on deep panels */
.patterned { position: relative; overflow: hidden; }
.patterned > * { position: relative; z-index: 1; }
.patterned::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("/static/brand/pattern.svg?v=195701e5"); background-size: 190px auto; }
/* on a page head it fades in from the right so it never sits under the title */
.page-head.patterned::before { opacity: .03; background-position: right -24px center;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 72%); mask-image: linear-gradient(90deg, transparent 22%, #000 72%); }
/* the footer carries one large mark bleeding off the corner rather than the tile */
.site-footer.patterned::before { opacity: .05; background-image: url("/static/brand/logo-mark.svg?v=7290967d"); background-repeat: no-repeat;
  background-size: auto 118%; background-position: right -60px bottom -40px; }
@media (max-width: 700px) { .site-footer.patterned::before { background-size: auto 60%; background-position: right -40px bottom 0; } }

/* brand icon set */
.marks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.marks li { display: flex; flex-direction: column; gap: 10px; }
.marks svg { width: 38px; height: 38px; color: var(--deep); }
.marks-band { padding: clamp(30px, 4.5vw, 54px) 0; }
.marks strong { font-size: 1rem; }
.marks p { margin: 0; color: var(--muted); font-size: .92rem; }
.band-deep .marks svg { color: var(--green); }
.band-deep .marks p { color: rgba(255,255,255,.75); }
@media (max-width: 860px) { .marks { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 460px) { .marks { grid-template-columns: 1fr; } }

/* price: gross is the headline, the trade net price sits under it */
.price-net { margin: -.6em 0 1em; font-size: .92rem; color: var(--muted); }
.footer-address { font-style: normal; }
.cart-total td { font-weight: 700; border-top: 1px solid var(--line); }
