@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-0.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "BRÍO Brush";
  src: url("/assets/brio-brush.woff2?v=2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --panel: #0c0905;
  --gold: #ffc744;
  --pale: #fff3ce;
  --white: #fff;
  --muted: #e5d8bc;
  --line: #9a701b;
  --body: "DM Sans", Arial, sans-serif;
  --display: "BRÍO Brush", "DM Sans", sans-serif;
  --metal: linear-gradient(105deg,#a15f0a 0%,#ffc94c 22%,#fff2b6 46%,#ecad25 65%,#d28a0a 84%,#ffd46a 100%);
  --glow: 0 3px 16px #f0a51d45, inset 0 0 8px #ffcf5952;
}
*,*::before,*::after { box-sizing: border-box; }
body { margin: 0; position: relative; isolation: isolate; background: var(--black); color: var(--white); font: 1rem/1.4 var(--body); }
body::before,body::after {
  content: ""; position: absolute; width: clamp(128px,22vw,330px); aspect-ratio: 1;
  background: url("/assets/gold-corner.webp") top left / contain no-repeat;
  z-index: -1; pointer-events: none; opacity: .9;
}
body::before { top: 0; left: 0; }
body::after { right: 0; bottom: 0; rotate: 180deg; }
body:has(dialog[open]) { overflow: hidden; }
main { position: relative; }
img { display: block; max-width: 100%; height: auto; }
h1,h2,p,figure,fieldset { margin: 0; }
svg { display: block; width: 1.4em; height: 1.4em; flex: 0 0 auto; }
button,input,textarea,select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 2px solid var(--pale); outline-offset: 4px; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 8; padding: 10px 14px; background: var(--gold); color: var(--black); translate: 0 -160%; }
.skip:focus { translate: 0; }

.site-header {
  width: min(100% - 44px,1180px); margin: auto; min-height: 125px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.home-header { position: absolute; z-index: 3; min-height: 0; width: auto; display: block; top: 17px; right: max(25px,calc((100vw - 1130px) / 2)); }
.header-label { display: inline-flex; align-items: center; justify-self: start; gap: 10px; font-size: 1.02rem; font-weight: 900; text-transform: uppercase; text-shadow: 0 1px 5px #000; }
.header-label svg { color: var(--gold); filter: drop-shadow(0 1px 3px #000); }
.header-brand { width: clamp(156px,21vw,278px); align-self: center; }
.header-brand img,.home-lockup img,.carolina-banner img,.footer-brand img { mix-blend-mode: screen; }
.header-tools { display: flex; justify-content: end; align-items: center; gap: 10px; }
.language-switch { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 9px; color: var(--gold); font-size: .85rem; font-weight: 850; }
.language-switch:hover { background: #ffcc4922; }
.icon-button { position: relative; border: 0; border-radius: 9px; background: transparent; color: var(--white); display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.16rem; }
.icon-button:hover { background: #ffcc4922; color: var(--gold); }
.home-header .icon-button { font-size: 1.28rem; }


.home-wrap { width: min(100% - 42px,740px); margin: 0 auto; text-align: center; padding: 14px 0 16px; }
.home-lockup { width: min(88%,454px); margin: 0 auto 9px; }
.home-lockup img { width: 100%; height: auto; }
.motto { font-size: clamp(.69rem,1.65vw,1rem); font-weight: 850; letter-spacing: .22em; text-transform: uppercase; text-align: center; text-wrap: balance; }
.home-wrap > .motto { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 18px; font-style: italic; }
.home-wrap > .motto::before,.home-wrap > .motto::after { content: ""; width: clamp(14px,5vw,48px); height: 2px; background: linear-gradient(90deg,transparent,var(--gold),var(--pale)); flex: 0 0 auto; }
.home-wrap > .motto::after { scale: -1 1; }

.social-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(8px,1.5vw,17px); }
.social-card {
  display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 104px; padding: 12px 5px 10px;
  border: 2px solid var(--gold); border-radius: 22px; background: #040303; box-shadow: var(--glow); line-height: 1.12;
}
.social-card img { width: 37px; height: 37px; margin-bottom: 4px; object-fit: contain; }
.social-card:first-child img { background: white; border-radius: 100%; }
.social-card:nth-child(2) img { filter: invert(1) drop-shadow(-1px 0 #00e5ee) drop-shadow(1px 1px #ff2352); }
.social-card:nth-child(3) img {
  filter: invert(1); padding: 4px; border-radius: 10px;
  background: radial-gradient(circle at 28% 108%,#000d8b,#0089ce 26%,#00a4a7 45%,#42ab24 70%,#dbc944);
}
.social-card strong { font-size: clamp(.72rem,1.8vw,1.04rem); text-transform: uppercase; }
.social-card span { font-size: clamp(.68rem,1.55vw,.94rem); }
.icon-button,.social-card,.rim-button,.collab-options button { transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.social-card:hover,.rim-button:hover { border-color: var(--pale); background: #1b1204; }

.gold-button,.rim-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 9px 23px; border: 2px solid var(--gold); border-radius: 999px; text-align: center; font-weight: 900; }
.gold-button { background: var(--metal); color: #0a0702; box-shadow: var(--glow); text-transform: uppercase; transition: filter .18s ease; }
.gold-button:hover { filter: brightness(1.14); }
.rim-button { color: var(--gold); background: #050403; box-shadow: var(--glow); }
.rim-button > svg { width: 1.65em; height: 1.65em; }
.shop-hero { width: 100%; min-height: 69px; margin-top: 17px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding-inline: clamp(19px,5vw,47px); font: 400 clamp(2.2rem,6vw,3.65rem)/1 var(--display); border-color: #ffe392; }
.shop-hero svg { width: .92em; height: .92em; stroke-width: 2.2; }
.home-links { display: grid; justify-items: center; gap: 10px; margin-top: 14px; }
.home-links a { min-width: min(100%,330px); }
.home-links a:first-child { width: min(100%,480px); }
.home-links a:last-child { width: min(100%,350px); }
.home-links strong,.home-links small { display: block; }
.home-links strong { font: 400 clamp(1.25rem,3.2vw,1.9rem)/1.05 var(--display); text-transform: uppercase; }
.home-links small { color: var(--white); font-size: .72rem; font-weight: 650; }

.site-footer { width: min(100% - 42px,740px); margin: 25px auto 0; text-align: center; padding: 14px 0 25px; }
.footer-actions {
  display: flex; justify-content: center; align-items: center; gap: clamp(12px,4.2vw,55px); padding: 13px 5px;
  background: linear-gradient(90deg,transparent,#ffc131,#fff5cb,#ffc131,transparent) top/100% 2px no-repeat,
              linear-gradient(90deg,transparent,#9a6210,#fdce54,#9a6210,transparent) bottom/100% 1px no-repeat;
}
.footer-actions a { font-size: clamp(.69rem,2vw,.9rem); letter-spacing: .24em; text-transform: uppercase; font-weight: 900; }
.footer-actions a:hover { color: var(--gold); }
.footer-brand { display: inline-grid; justify-items: center; margin: 12px 0 0; }
.footer-brand img { width: 93px; }
.footer-brand span { font-size: .69rem; font-weight: 850; letter-spacing: .32em; text-transform: uppercase; }

.reading { width: min(100% - 52px,910px); margin: 0 auto; text-align: center; }
.brush-heading {
  width: fit-content; max-width: 100%; margin: auto; padding: 8px clamp(25px,6vw,76px);
  background: var(--metal); color: #0b0700; font: 400 clamp(2.35rem,6vw,4.7rem)/1 var(--display); text-transform: uppercase;
  mask: url("/assets/paint-stroke.svg") center / 100% 100% no-repeat;
}
.carolina-banner { margin: -26px auto 17px; }
.carolina-banner img { margin: auto; width: min(100%,790px); }
.story-title { display: flex; align-items: center; justify-content: center; gap: .34em; font: 400 clamp(1.82rem,4.6vw,3.4rem)/1.05 var(--display); margin: 0 auto 21px; text-align: center; text-wrap: balance; }
.story-title svg { width: .86em; height: .86em; color: var(--gold); filter: drop-shadow(0 3px 7px #ffb93e51); }
.story-copy { max-width: 66ch; margin: clamp(25px,4vw,42px) auto 0; text-align: left; font-size: clamp(.98rem,2.1vw,1.15rem); line-height: 1.65; }
.story-copy p + p { margin-top: 14px; }
.drop-gallery { margin-block: clamp(36px,6vw,65px); }
.drop-gallery .story-title { color: var(--gold); font-size: clamp(1.75rem,4.4vw,2.7rem); }
.drop-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.drop-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #0c0905; color: var(--pale); }
.drop-card:is(:hover,:focus-visible) { border-color: var(--gold); }
.drop-card strong { padding: 9px 11px; font-size: .9rem; line-height: 1.28; }
.drop-cover { position: relative; display: block; flex: none; width: 100%; aspect-ratio: 4/5; overflow: hidden; }
.drop-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.drop-play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #080603d9; color: var(--gold); border: 1px solid var(--gold); }
.drop-play svg { width: 22px; height: 22px; fill: currentColor; }
.motto-banner { margin-top: 38px; font-size: clamp(1.9rem,5.5vw,4rem); text-wrap: balance; }
.about-watch { margin-top: 22px; }

.collab { max-width: 820px; }

.collab-brand .motto { font-size: clamp(.69rem,1.65vw,.87rem); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.collab h1,.collab h2 { font: 400 clamp(2.05rem,5.6vw,4.7rem)/1 var(--display); text-transform: uppercase; text-wrap: balance; }
.collab h1 { margin: 18px 0 8px; display: flex; align-items: center; justify-content: center; gap: .3em; }
.collab h1 em { color: var(--gold); font-style: normal; }
.collab h1 svg { color: var(--gold); width: .92em; height: .92em; }
.collab-intro { max-width: 54ch; font-size: clamp(.96rem,2.3vw,1.2rem); margin: 0 auto 17px; text-wrap: balance; }
.mission { padding: 12px clamp(12px,4vw,40px) 18px; border: 1px solid var(--gold); border-radius: 20px; background: radial-gradient(ellipse at 50% 0,#211404,transparent 72%),#070503; box-shadow: var(--glow); }
.mission summary { display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; list-style: none; color: var(--gold); font: 400 clamp(1.7rem,4.6vw,2.8rem)/1 var(--display); text-transform: uppercase; }
.mission summary::-webkit-details-marker { display: none; }
.mission summary svg { width: .86em; height: .86em; }
.mission summary svg:last-child { width: .55em; rotate: 90deg; }
.mission[open] summary svg:last-child { rotate: -90deg; }
.mission-body { max-width: 64ch; margin: 9px auto 0; }
.mission-body p+p { margin-top: 8px; }
.mission-body strong { color: var(--pale); }
.mission-motto { font-size: clamp(1.2rem,3.55vw,2.25rem); margin-top: 14px !important; }
.collab h2 { margin: 25px auto 12px; font-size: clamp(1.8rem,4.6vw,3.25rem); }
.collab-options { display: grid; gap: 8px; }
.collab-options button {
  width: 100%; display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; gap: 12px;
  padding: 9px 13px; text-align: left; border: 1px solid var(--gold); border-radius: 12px; background: #0b0804; box-shadow: inset 0 -3px 9px #a7670c26;
}
.collab-options button:hover,.collab-options button.is-selected { background: #251803; }
.collab-options button > svg { width: 29px; height: 29px; color: var(--gold); }
.collab-options button > svg:last-child { width: 18px; height: 18px; }
.collab-options strong,.collab-options small { display: block; }
.collab-options strong { font-size: clamp(1rem,2.9vw,1.44rem); line-height: 1.15; }
.collab-options small { color: var(--muted); font-size: clamp(.74rem,2vw,.92rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; text-align: left; }
.form-grid label { font-weight: 780; font-size: .89rem; }
.form-grid label small { color: var(--muted); font-weight: 400; }
.form-wide { grid-column: 1/-1; }
.form-grid input,.form-grid select,.form-grid textarea { display: block; width: 100%; margin-top: 3px; min-height: 44px; padding: 9px 11px; border: 1px solid #d8ba75a6; border-radius: 8px; background: #0a0805; color: white; }
.form-grid textarea { resize: vertical; }
.idea-form { scroll-margin-top: 18px; }
.idea-form .gold-button { margin: 16px auto 0; width: min(100%,430px); }
.form-status { color: var(--pale); margin: 13px auto 0; }

.shop-page { display: flex; flex-direction: column; min-height: 100svh; }
.shop-page main { display: grid; flex: 1 0 auto; place-items: center; }
.shop-launch {
  width: min(100% - 40px,890px); margin-inline: auto; min-height: clamp(360px,49svh,520px);
  padding-block: clamp(38px,8svh,81px); text-align: center;
  display: grid; justify-items: center; align-content: center; gap: 14px;
}
.launch-crown { width: clamp(52px,9vw,92px); mix-blend-mode: screen; margin-bottom: 4px; }
.shop-launch h1 {
  color: var(--gold); font: 400 clamp(3.5rem,11vw,8.35rem)/.95 var(--display);
  text-transform: uppercase; text-wrap: balance;
}
.shop-launch p { max-width: 34ch; color: var(--pale); font-size: clamp(1rem,2.1vw,1.28rem); }
.shop-launch .gold-button { margin-top: 10px; }
.shop-footer { display: grid; grid-template-columns: repeat(3,1fr); width: min(100% - 42px,1080px); margin: 16px auto 0; padding: 11px 0 9px; border-block: 1px solid var(--line); }
.shop-footer :is(a,button) { display: grid; justify-items: center; gap: 3px; min-height: 48px; font-size: .79rem; text-transform: uppercase; font-weight: 900; background: none; border: 0; }
.shop-footer :is(a,button)+:is(a,button) { border-left: 1px solid #b97b186e; }
.shop-footer svg { width: 24px; height: 24px; color: var(--gold); }

.drawer {
  position: fixed; inset: 14px 14px auto auto; margin: 0; width: min(390px,calc(100% - 28px)); max-height: calc(100% - 28px); padding: 15px 17px 20px;
  overflow: auto; border: 2px solid var(--gold); border-radius: 21px; background: #090703; color: white; box-shadow: var(--glow);
}
.drawer[open] { animation: drawer-in .22s ease-out both; }
@keyframes drawer-in { from { opacity: .4; translate: 8px -4px; } }
.drawer::backdrop { background: #000a; }
.drawer.is-drop { inset: 0; margin: auto; width: min(480px,calc(100% - 26px)); max-height: calc(100% - 26px); }
.drop-frame { margin-inline: auto; width: min(100%,330px); height: min(58dvh,560px); overflow: hidden; border-radius: 8px; background: #000; }
.drop-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.drop-source { display: flex; width: fit-content; margin: 14px auto 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 7px; }
.drawer-head h2 { font: 400 2.05rem/1 var(--display); text-transform: uppercase; color: var(--gold); }
.drawer-head .icon-button { flex: 0 0 42px; width: 42px; }
.drawer-menu { display: grid; }
.drawer-menu :is(a,button) {
  display: flex; align-items: center; gap: 11px; padding: 11px 4px; min-height: 47px; border: 0; border-bottom: 1px solid #95701c88; background: transparent; color: white; text-align: left; font-weight: 900; text-transform: uppercase;
}
.drawer-menu :is(a,button):hover { color: var(--gold); }
.drawer-menu :is(a,button) svg { color: var(--gold); }
.drawer-menu small { margin-left: auto; color: var(--gold); }
.drawer-copy { color: var(--muted); margin: 5px 0 12px; }
.drawer-copy a { text-decoration: underline; color: var(--pale); }
.drawer-body-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; }
.drawer-body-actions .rim-button { min-height: 39px; padding: 6px 13px; font-size: .86rem; }
.analytics-settings { width: min(100% - 36px, 520px); margin: 0 auto 24px; color: var(--muted); font-size: .85rem; }
.analytics-settings summary { cursor: pointer; text-align: center; color: var(--white); }
.analytics-settings p { margin-block: 8px; }
.analytics-settings a { color: var(--pale); text-decoration: underline; }
.analytics-options { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-options button { min-height: 42px; padding: 6px 14px; border: 1px solid currentColor; border-radius: 20px; background: var(--black); color: var(--gold); }
.analytics-options button:is(:hover,[aria-pressed="true"]) { background: var(--gold); color: var(--black); }
@media (max-width: 660px) {
  .site-header { width: calc(100% - 24px); min-height: 84px; gap: 4px; }
  .home-header { width: auto; right: 10px; top: 8px; min-height: 0; }
  .header-brand { width: clamp(105px,33vw,162px); }
  .header-label { gap: 3px; font-size: clamp(.65rem,2.55vw,.92rem); }
  .header-tools { gap: 3px; }
  .language-switch { min-width: 34px; font-size: .76rem; }
  .header-tools .icon-button { width: clamp(31px,9vw,42px); height: 42px; font-size: .92rem; }
  .home-wrap { width: calc(100% - 30px); padding-top: 29px; }
  .home-lockup { width: min(90%,390px); }
  .home-wrap > .motto { margin-bottom: 13px; gap: 6px; }
  .social-card { min-height: 83px; border-radius: 15px; border-width: 1.5px; padding-block: 8px; }
  .social-card img { width: 28px; height: 28px; margin-bottom: 3px; }
  .shop-hero { min-height: 56px; margin-top: 12px; padding-inline: 15px; }
  .home-links { margin-top: 11px; gap: 8px; }
  .home-links .rim-button { min-height: 41px; padding: 6px 12px; border-width: 1.5px; }
  .home-links small { font-size: .69rem; }
  .site-footer { width: calc(100% - 34px); margin-top: 12px; }
  .reading { width: calc(100% - 30px); }
  .carolina-banner { margin-top: -1px; }
  .drop-grid { grid-template-columns: 1fr; gap: 9px; }
  .drop-card { display: grid; grid-template-columns: 110px minmax(0,1fr); align-items: center; }
  .drop-cover { aspect-ratio: 1.45; }

  .shop-launch { width: calc(100% - 32px); min-height: clamp(310px,47svh,420px); padding-block: 38px; }
  .shop-footer { width: calc(100% - 32px); margin-top: 8px; }
}
@media (max-width: 380px) {
  .home-links a { min-width: 0; }
  .social-card span { font-size: .69rem; }
  .social-card strong { font-size: .69rem; }
  .collab-options button { grid-template-columns: 30px 1fr 18px; padding: 8px; gap: 6px; }
  .collab-options button > svg { width: 23px; height: 23px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer[open] { animation: none; }
  .icon-button,.social-card,.rim-button,.gold-button,.collab-options button { transition: none; }
}
