/* BHOR shared design system: used by every page (home, build-a-box, terms, returns). */
:root {
  --bg: #FFFFFF; --bg-2: #F6F4F1; --card: #FFFFFF; --ink: #111111; --ink-2: #3B3B3B; --muted: #7A7570;
  --line: rgba(17,17,17,.10); --line-2: rgba(17,17,17,.18);
  --accent: #E8501B; --accent-ink: #FFFFFF; --glass: rgba(255,255,255,.62);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2,.8,.2,1); --r: 22px; --pad: clamp(16px, 3.2vw, 40px);
  --logo: url("img/logo-sun-ink.png");
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0D0D0D; --bg-2: #161514; --card: #181716; --ink: #F4F1EC; --ink-2: #CFCAC3; --muted: #8F8880;
  --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.2);
  --accent: #FF6A2C; --glass: rgba(20,20,20,.55);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.4);
  --logo: url("img/logo-sun-white.png");
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .4s, color .4s; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; text-transform: none; }

/* type scale */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow b { color: var(--accent); font-weight: 600; }
.display { font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; }
.h-xl { font-size: clamp(44px, 8vw, 128px); }
.h-lg { font-size: clamp(36px, 5.4vw, 84px); }
.h-md { font-size: clamp(28px, 3.4vw, 48px); }
.lead { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); max-width: 46ch; }
.container { width: min(1360px, calc(100% - var(--pad) * 2)); margin: 0 auto; }
.section { padding: clamp(80px, 11vw, 160px) 0; }

/* logo (switches with theme) */
.mark { width: 30px; height: 30px; background: var(--logo) center / contain no-repeat; flex: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); transition: background .4s; }
.nav-in { height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .26em; font-size: 15px; }
.menu { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.menu a { position: relative; color: var(--ink-2); transition: color .2s; }
.menu a:hover, .menu a.on { color: var(--ink); }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.menu a:hover::after, .menu a.on::after { transform: scaleX(1); transform-origin: left; }
.tools { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.ibtn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.ibtn:hover { background: var(--bg-2); }
.ibtn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; transition: transform .25s var(--ease); }
.badge:empty, .badge[data-n="0"] { display: none; }
.badge.pop { transform: scale(1.45); }
.burger { display: none; }

/* theme switch */
.theme { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); margin-right: 6px; }
.theme button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .25s, color .25s; }
.theme button svg { width: 15px; height: 15px; }
.theme button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .01em; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s; will-change: transform; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--bg); } .btn-ink::before { background: var(--accent); } .btn-ink:hover { color: #fff; }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); } .btn-line::before { background: var(--ink); } .btn-line:hover { color: var(--bg); border-color: var(--ink); }
.btn-white { background: #fff; color: #111; } .btn-white::before { background: var(--accent); } .btn-white:hover { color: #fff; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); } .btn-glass::before { background: #fff; } .btn-glass:hover { color: #111; }
.link { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .2s, gap .3s var(--ease); }
.link:hover { border-color: var(--ink); gap: 12px; }

/* cursor (mouse devices only) */
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor * { cursor: none !important; } }
.c-dot, .c-ring { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .25s; }
.has-cursor .c-dot, .has-cursor .c-ring { opacity: 1; }
.c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
.c-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid var(--line-2); display: grid; place-items: center;
          transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s, opacity .25s; }
.c-ring span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--bg); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.c-ring.label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); border-color: transparent; }
.c-ring.label span { opacity: 1; }
.c-ring.hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--ink); }
.c-ring.down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-mask { overflow: hidden; display: block; padding-bottom: .12em; margin-bottom: -.12em; }   /* room for descenders (g, y, comma) */
.rv-mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.in .rv-mask > span, .rv-mask.in > span { transform: none; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 80px 0 0; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.foot-grid a { display: block; margin: 9px 0; color: var(--ink-2); transition: color .2s; } .foot-grid a:hover { color: var(--ink); }
.news { display: flex; gap: 8px; margin-top: 22px; max-width: 440px; }
.news input { flex: 1; min-width: 0; height: 52px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); padding: 0 20px; font: inherit; font-size: 14px; }
.news input:focus { outline: none; border-color: var(--ink); }
.legal-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px 0; margin-top: 60px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legal-row a:hover { color: var(--ink); }
/* big footer wordmark: sized to sit fully inside the footer, never cut off */
.wordmark { font-weight: 800; font-size: 22vw; line-height: .9; letter-spacing: -.05em; text-align: center; color: var(--ink); padding: 2vw 0 3vw; white-space: nowrap; user-select: none; }

/* stand-in for products whose photo isn't added yet: brand orange with the white sun mark */
.ph-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 18px;
           color: #fff; background: radial-gradient(circle at 50% 38%, #FF8A2A 0%, #FF5A0A 45%, #C93F05 100%); }
.ph-soon::before { content: ""; width: 42%; aspect-ratio: 1; background: url("img/logo-white-lg.png") center / contain no-repeat; opacity: .9; }
.ph-soon span { font-weight: 700; font-size: 15px; letter-spacing: -.01em; line-height: 1.25; max-width: 90%; }
.ph-soon small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

/* thin bar above the menu on every page; it carries the Return & Refund link */
.announce-bar { background: var(--ink); color: var(--bg); text-align: center; font-size: 13px; padding: 9px 16px; }
.announce-bar a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 160%); opacity: 0; background: var(--ink); color: var(--bg); padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); transition: transform .45s var(--ease), opacity .3s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .nav-in { grid-template-columns: auto 1fr; }
  .menu { display: none; }
  .burger { display: grid; }
  .tools .hide-sm { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; }
  .news { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv, .rv-mask > span { opacity: 1; transform: none; }
}
.announce-bar .offer-code { font: inherit; font-weight: 700; letter-spacing: .08em; color: inherit; border: 1px dashed currentColor; border-radius: 6px; padding: 1px 7px; margin: 0 2px; cursor: copy; }
@media (max-width: 640px) { .announce-bar .hide-sm { display: none; } }

/* cart drawer (opened from the bag icon on every page) */
.cd-scrim { position: fixed; inset: 0; z-index: 240; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .35s; }
.cd-scrim.on { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; z-index: 250; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg); color: var(--ink); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .5s var(--ease); box-shadow: var(--shadow); }
.cart-drawer.on { transform: none; }
.cd-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cd-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.cd-meter { padding: 0 24px; } .cd-meter:not(:empty) { padding: 16px 24px; border-bottom: 1px solid var(--line); }
.cd-meter p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; }
.cd-meter span { display: block; height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.cd-meter i { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform .5s var(--ease); }
.cd-items { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.cd-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cd-im { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.cd-im img { width: 100%; height: 100%; object-fit: cover; }
.cd-item b { font-weight: 600; font-size: 15px; } .cd-item small { display: block; color: var(--muted); font-size: 13px; }
.cd-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cd-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 34px; }
.cd-qty button { width: 32px; height: 100%; } .cd-qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: 14px; }
.cd-rm { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cd-empty { text-align: center; padding: 70px 10px; } .cd-empty b { font-size: 20px; } .cd-empty p { color: var(--ink-2); margin: 6px 0 22px; }
.cd-foot:not(:empty) { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.cd-sub { display: flex; justify-content: space-between; font-size: 17px; } .cd-sub b { font-size: 19px; }
.cd-foot p { font-size: 13px; color: var(--muted); margin: 4px 0 14px; } .cd-foot .btn { width: 100%; }

/* small pop-up sheet (Notify me, Write a review) */
.sheet { border: 0; padding: 0; background: var(--bg); color: var(--ink); border-radius: 26px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(3px); }
.sheet form { position: relative; padding: 30px; display: grid; gap: 12px; }
.sheet h3 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; padding-right: 40px; }
.sheet p { color: var(--ink-2); font-size: 15px; }
.sheet input, .sheet textarea, .sheet select { width: 100%; border-radius: 14px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); padding: 13px 16px; font: inherit; font-size: 15px; }
.sheet select { background: var(--bg); }
.sheet textarea { min-height: 110px; resize: vertical; }
.sheet input:focus, .sheet textarea:focus, .sheet select:focus { outline: none; border-color: var(--ink); }
.sheet-x { position: absolute; top: 18px; right: 18px; }

/* footer extras */
.foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
.foot-grid p { color: var(--ink-2); font-size: 14.5px; margin: 9px 0; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; margin: 0 !important; }
.socials svg { width: 18px; height: 18px; }
.pay-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pay-row .pays { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pay-row .pays span { border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; font-weight: 600; color: var(--ink-2); font-size: 12px; }
.pay-row + .legal-row { margin-top: 0; }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* cart / wishlist switch at the top of the side panel */
.cd-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.cd-tabs button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cd-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.cd-tabs small { font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; }
.cd-tabs small:empty, .cd-tabs small[data-n="0"] { display: none; }
.cd-move { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 700; }
.cd-out { font-size: 12.5px; font-weight: 600; color: var(--muted); }
dialog { margin: auto; }   /* the global margin reset would otherwise pin pop-ups to the top-left corner */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .55s ease, color .55s ease, border-color .55s ease, fill .55s ease, stroke .55s ease, box-shadow .55s ease !important; }
/* small contrast fixes so text reads well in both modes */
:root:not([data-theme="dark"]) .stars, :root:not([data-theme="dark"]) .r-stars { color: #B86E00 !important; }
.badge-t.sale { background: #D9480F !important; }
/* phone menu */
.m-menu { position: fixed; inset: 0; z-index: 260; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; padding: 0 var(--pad) 30px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; overflow-y: auto; }
.m-menu.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.m-top { height: 68px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.m-links { display: grid; padding: 18px 0; }
.m-links a { font-size: clamp(28px, 8vw, 40px); font-weight: 800; letter-spacing: -.04em; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.m-links a.on { color: var(--accent); }
.m-theme { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 24px; font-size: 14px; font-weight: 600; color: var(--muted); }
.m-theme .theme { margin: 0; } .m-theme .theme button { width: auto; padding: 0 14px; gap: 6px; display: inline-flex; font-size: 13.5px; font-weight: 600; }
@media (min-width: 901px) { .m-menu { display: none; } }

/* footer in the hero's palette: night black, a rising orange sun behind the wordmark, cream text (same in both modes) */
.foot { position: relative; isolation: isolate; background: #050403; color: #F6EFE6; border-top: 0;
        --ink: #F6EFE6; --ink-2: rgba(246,239,230,.74); --muted: rgba(246,239,230,.5); --line: rgba(246,239,230,.12); --line-2: rgba(246,239,230,.24); --bg: #050403; --bg-2: #15100D; }
.foot::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -52vw; width: 84vw; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; pointer-events: none;
                background: radial-gradient(circle, #FF7A1A 0%, #FF5A0A 26%, rgba(255,80,10,.35) 46%, rgba(255,70,10,0) 66%); }
.foot h4 { color: #FF8A3D; }
.foot-grid a:hover, .legal-row a:hover { color: #FF8A3D; }
.foot .display .serif { color: #FFB27A; }
.foot .news input { background: rgba(246,239,230,.06); border-color: rgba(246,239,230,.2); color: #F6EFE6; }
.foot .news input::placeholder { color: rgba(246,239,230,.45); }
.foot .news input:focus { border-color: #FF5A0A; }
.foot .btn-ink { background: #FF5A0A; color: #fff; } .foot .btn-ink::before { background: #F6EFE6; } .foot .btn-ink:hover { color: #1a0a02; }
.foot .socials a { border-color: rgba(246,239,230,.25); color: #F6EFE6; } .foot .socials a:hover { background: #FF5A0A; border-color: #FF5A0A; }
.foot .pay-row .pays span { border-color: rgba(246,239,230,.22); color: rgba(246,239,230,.8); }
.foot .wordmark { position: relative; color: #F6EFE6; text-shadow: 0 0 60px rgba(255,90,10,.35); }
.cd-gift { margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, #2E8B57 12%, transparent); font-size: 13.5px; color: var(--ink); text-align: center; } .cd-gift b { color: #2E8B57; }
.foot-grid a, .foot-grid p { overflow-wrap: anywhere; }
