:root {
  --ink: #102e43;
  --paper: #ffffff;
  --mist: #edf4f3;
  --coral: #e55d46;
  --sun: #f2c744;
  --teal: #167b78;
  --grass: #4d7d55;
  --line: #d5e0df;
  --muted: #5f7380;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.45; }
body.no-scroll { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.announcement { height: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 40; height: 66px; padding: 0 32px; display: grid; grid-template-columns: 190px 1fr 190px; align-items: center; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.brand { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 29px; font-weight: 900; color: var(--coral); }
.desktop-nav { height: 100%; display: flex; align-items: center; justify-content: center; gap: 28px; font-size: 13px; font-weight: 700; }
.desktop-nav > a, .nav-trigger { height: 100%; padding: 0; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 5px; }
.desktop-nav > a:hover, .nav-trigger:hover, .nav-item:focus-within .nav-trigger, .nav-item:hover .nav-trigger { border-color: var(--coral); }
.nav-trigger svg { width: 14px; height: 14px; transition: transform .18s ease; }
.nav-item { height: 100%; display: flex; align-items: center; }
.nav-item:hover .nav-trigger svg, .nav-item:focus-within .nav-trigger svg { transform: rotate(180deg); }
.mega-menu { position: absolute; top: 100%; left: 0; right: 0; padding: 0 32px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-7px); transition: opacity .16s ease, transform .16s ease, visibility .16s; background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 34px rgba(16,46,67,.12); }
.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega-inner { width: min(1220px, 100%); min-height: 270px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.35fr 270px; gap: 46px; align-items: stretch; }
.mega-intro { padding: 34px 0; align-self: center; }
.mega-intro > span { color: var(--teal); font-size: 10px; font-weight: 900; }
.mega-intro h2 { margin: 9px 0 10px; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 26px; line-height: 1.08; }
.mega-intro p { margin: 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 400; }
.mega-intro a { display: inline-flex; align-items: center; gap: 7px; color: var(--coral); font-size: 12px; }
.mega-intro a svg { width: 15px; }
.mega-links { padding: 34px 0; display: grid; grid-template-columns: 1fr 1fr; align-content: center; column-gap: 34px; }
.mega-links a { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.mega-links a:hover { color: var(--coral); }
.mega-visual { min-height: 270px; background-image: url("assets/categories.png"); background-repeat: no-repeat; background-size: 400% 100%; }
.header-actions { display: flex; justify-content: flex-end; gap: 6px; }
.icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; position: relative; padding: 0; border: 0; background: transparent; cursor: pointer; }
.icon-button svg { width: 21px; height: 21px; stroke-width: 1.8; }
.cart-button span { position: absolute; right: 2px; top: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; background: var(--coral); color: white; font-size: 10px; font-weight: 800; }
.menu-button { display: none; }
.mobile-menu { display: none; position: fixed; inset: 96px 0 auto 0; z-index: 45; max-height: calc(100dvh - 96px); overflow-y: auto; padding: 8px 24px 26px; background: white; border-bottom: 1px solid var(--line); }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; list-style: none; font-weight: 800; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 18px; transition: transform .18s ease; }
.mobile-menu details[open] summary svg { transform: rotate(180deg); }
.mobile-menu details div { padding: 0 0 10px 16px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.mobile-menu details a { padding: 9px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.mobile-menu .mobile-primary-link { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 800; }

.hero { position: relative; min-height: 680px; height: 78vh; max-height: 780px; display: flex; align-items: center; overflow: hidden; color: white; background: url("assets/hero.png") center center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(8, 35, 48, .38); }
.hero-content { position: relative; z-index: 2; width: min(620px, 48%); margin-left: max(6vw, 52px); }
.eyebrow { display: inline-block; margin-bottom: 18px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.eyebrow.dark { color: var(--teal); }
.hero h1 { margin: 0 0 20px; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 64px; line-height: 1.02; }
.hero p { max-width: 560px; margin: 0 0 28px; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--sun); color: var(--ink); }
.button.light { background: white; color: var(--ink); }
.button.ink { background: var(--ink); color: white; }
.button.full { width: 100%; }
.hero-proof { position: absolute; z-index: 2; left: max(6vw, 52px); right: 32px; bottom: 24px; display: flex; gap: 24px; font-size: 10px; font-weight: 800; }
.hero-proof span { padding-left: 14px; border-left: 3px solid var(--sun); }

.category-band, .shop-section { padding: 86px 32px; }
.section-heading { width: min(1400px, 100%); margin: 0 auto 30px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading h2, .fit-copy h2, .story-section h2 { margin: 0; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 42px; line-height: 1.08; }
.section-heading p { max-width: 480px; margin: 0; color: var(--muted); font-size: 15px; }
.category-grid { width: min(1400px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-tile { min-width: 0; border: 1px solid var(--line); background: white; }
.category-image, .product-photo, .search-thumb { background-image: url("assets/categories.png"); background-repeat: no-repeat; background-size: 400% 100%; }
.category-image { aspect-ratio: 4 / 5; background-color: var(--mist); }
.crop-swim { background-position: 0 center; }
.crop-rain { background-position: 33.333% center; }
.crop-snow { background-position: 66.666% center; }
.crop-outdoor { background-position: 100% center; }
.category-copy { padding: 20px; }
.category-copy > span { color: var(--teal); font-size: 10px; font-weight: 800; }
.category-copy h3 { margin: 8px 0; font-size: 24px; }
.category-copy p { min-height: 44px; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.category-copy b { display: flex; align-items: center; gap: 7px; color: var(--coral); font-size: 12px; }
.category-copy svg { width: 15px; }

.shop-section { background: var(--mist); }
.text-button, .text-link { border: 0; padding: 0; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--teal); font-weight: 800; cursor: pointer; }
.text-button svg, .text-link svg { width: 16px; }
.tabs { width: min(1400px, 100%); margin: 0 auto 22px; display: flex; gap: 6px; overflow-x: auto; }
.tabs button { min-width: 110px; height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 3px; background: white; font-weight: 800; cursor: pointer; }
.tabs button.is-active { background: var(--ink); color: white; border-color: var(--ink); }
.product-grid { width: min(1400px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-grid[hidden] { display: none; }
.product-card { min-width: 0; background: white; border: 1px solid var(--line); }
.product-photo { position: relative; aspect-ratio: 4 / 4.7; background-color: #dfe9e6; }
.product-photo.alt { background-size: 430% 108%; }
.product-photo.zoom { background-size: 470% 112%; }
.product-photo.far { background-size: 370% 100%; }
.badge { position: absolute; top: 12px; left: 12px; padding: 6px 8px; border-radius: 2px; background: var(--sun); font-size: 9px; font-weight: 900; }
.badge.coral { background: var(--coral); color: white; }
.wish { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; }
.wish svg { width: 18px; }
.product-info { padding: 17px; }
.product-info > span { color: var(--teal); font-size: 10px; font-weight: 800; }
.product-info h3 { min-height: 46px; margin: 7px 0 5px; font-size: 19px; }
.product-info p { min-height: 56px; margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.product-info > div { display: flex; justify-content: space-between; align-items: center; }
.product-info > div b { font-size: 16px; }
.product-info button { min-width: 72px; height: 36px; padding: 0 10px; border: 1px solid var(--ink); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: white; font-size: 12px; font-weight: 800; cursor: pointer; }
.product-info button svg { width: 14px; }
.product-info button.is-added { background: var(--grass); border-color: var(--grass); color: white; }

.fit-section { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 650px; }
.fit-image { background-image: url("assets/categories.png"); background-size: cover; background-position: center; }
.fit-copy { padding: 80px max(5vw, 52px); display: flex; flex-direction: column; justify-content: center; background: var(--sun); }
.fit-copy p { max-width: 590px; color: #324c58; font-size: 16px; }
.fit-copy ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 16px; }
.fit-copy li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.fit-copy li svg { width: 24px; margin-top: 2px; }
.fit-copy li span { display: grid; font-size: 13px; color: #324c58; }
.fit-copy li b { color: var(--ink); font-size: 14px; }
.fit-copy .button { align-self: flex-start; }

.story-section { padding: 110px max(12vw, 60px); background: var(--ink); color: white; }
.story-section > * { max-width: 980px; }
.story-kicker { display: block; margin-bottom: 22px; color: var(--sun); font-size: 11px; font-weight: 900; }
.story-section h2 { font-size: 46px; }
.story-section p { max-width: 850px; margin: 24px 0; color: #d8e3e8; font-size: 17px; }
.story-section blockquote { margin: 32px 0; padding-left: 20px; border-left: 4px solid var(--coral); font-family: "Trebuchet MS", Arial, sans-serif; font-size: 26px; font-weight: 800; }
.story-section .text-link { color: var(--sun); }
.journal-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.journal-strip > div { min-height: 210px; padding: 42px; border-right: 1px solid var(--line); }
.journal-strip > div:last-child { border: 0; }
.journal-strip span { color: var(--teal); font-size: 10px; font-weight: 800; }
.journal-strip h3 { max-width: 300px; margin: 13px 0 28px; font-size: 24px; }
.journal-strip a { color: var(--coral); font-size: 12px; font-weight: 800; }

footer { padding: 60px 32px 28px; display: grid; grid-template-columns: 1.4fr .7fr .7fr 1.2fr; gap: 40px; background: #f5f8f7; }
footer > div, footer form { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.footer-brand p { max-width: 330px; color: var(--muted); }
footer b { margin-bottom: 7px; }
footer form label { display: flex; margin-top: 10px; }
footer input { min-width: 0; flex: 1; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px 0 0 3px; background: white; }
footer form button { width: 72px; border: 0; border-radius: 0 3px 3px 0; background: var(--ink); color: white; font-weight: 800; }
footer small { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

.cart-drawer { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(430px, 100%); padding: 24px; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .25s ease; background: white; box-shadow: -12px 0 40px rgba(16,46,67,.18); }
.cart-drawer.is-open { transform: translateX(0); }
.drawer-head, .dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.drawer-head span, .dialog-head span { color: var(--teal); font-size: 10px; font-weight: 900; }
.drawer-head h2, .dialog-head h2 { margin: 4px 0 0; font-size: 28px; }
.cart-items { flex: 1; overflow-y: auto; padding: 24px 0; }
.empty-state { color: var(--muted); font-size: 14px; }
.cart-line { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line > div { display: grid; gap: 3px; }
.cart-line span { color: var(--muted); font-size: 11px; }
.cart-line > div:last-child { grid-template-columns: auto 34px; align-items: center; }
.remove-item { width: 34px; height: 34px; }
.cart-footer { padding-top: 18px; border-top: 1px solid var(--line); }
.cart-footer > div { display: flex; justify-content: space-between; margin-bottom: 16px; }
.cart-footer small { display: block; margin-top: 10px; text-align: center; color: var(--muted); }

dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 28px; border: 0; border-radius: 5px; color: var(--ink); }
dialog::backdrop { background: rgba(5,24,34,.68); }
.search-box { height: 52px; margin: 24px 0 15px; padding: 0 15px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--mist); }
.search-box svg { width: 19px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.search-results { max-height: 430px; overflow-y: auto; }
.search-result { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: white; text-align: left; cursor: pointer; }
.search-thumb { width: 64px; height: 64px; background-size: 400% 100%; }
.search-result span:nth-child(2) { display: grid; }
.search-result small { color: var(--muted); }
.quiz-choices { margin: 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quiz-choices button { min-height: 120px; padding: 14px; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; gap: 8px; background: white; font-weight: 800; cursor: pointer; }
.quiz-choices button:hover { background: var(--pale, #fff6dc); border-color: var(--sun); }
.quiz-choices svg { width: 26px; }
.quiz-result { min-height: 120px; padding: 20px; display: grid; align-content: center; background: var(--mist); }
.quiz-result span { color: var(--teal); font-size: 10px; font-weight: 900; }
.quiz-result strong { margin: 4px 0; font-size: 22px; }
.quiz-result p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; }
  .mobile-menu.is-open { display: block; }
  .hero { min-height: 620px; height: 74vh; background-position: 60% center; }
  .hero-content { width: min(560px, 66%); margin-left: 36px; }
  .hero h1 { font-size: 52px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-section { grid-template-columns: 1fr; }
  .fit-image { min-height: 460px; }
  footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .announcement { font-size: 10px; }
  .site-header { height: 60px; padding: 0 14px; }
  .brand { font-size: 25px; }
  .header-actions { gap: 0; }
  .mobile-menu { top: 90px; }
  .hero { min-height: 610px; height: 72vh; max-height: 680px; align-items: flex-end; background-position: 66% center; }
  .hero::before { background: rgba(8,35,48,.48); }
  .hero-content { width: auto; margin: 0; padding: 0 20px 96px; }
  .hero h1 { font-size: 39px; }
  .hero p { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-proof { left: 20px; right: 20px; bottom: 18px; gap: 8px; justify-content: space-between; }
  .hero-proof span { padding-left: 7px; font-size: 8px; }
  .category-band, .shop-section { padding: 58px 14px; }
  .section-heading { display: block; }
  .section-heading h2, .fit-copy h2 { font-size: 34px; }
  .section-heading p, .text-button { margin-top: 14px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .category-copy { padding: 13px; }
  .category-copy h3 { font-size: 19px; }
  .category-copy p { display: none; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-info { padding: 12px; }
  .product-info h3 { min-height: 42px; font-size: 15px; }
  .product-info p { display: none; }
  .product-info button { min-width: 40px; width: 40px; }
  .product-info button span { display: none; }
  .fit-image { min-height: 330px; }
  .fit-copy { padding: 54px 20px; }
  .story-section { padding: 70px 20px; }
  .story-section h2 { font-size: 34px; }
  .story-section p { font-size: 15px; }
  .story-section blockquote { font-size: 22px; }
  .journal-strip { grid-template-columns: 1fr; }
  .journal-strip > div { min-height: 150px; padding: 30px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr 1fr; padding: 45px 20px 24px; gap: 30px 18px; }
  .footer-brand, footer form { grid-column: 1 / -1; }
  .quiz-choices { grid-template-columns: 1fr 1fr; }
  dialog { padding: 20px; }
}
