/* Drunken Sailor — site styles
   Palette mirrors the design artwork: ink navy, sailcloth cream, signal red, brass, sea teal. */

@font-face {
  font-family: "Alfa Slab One";
  src: url("../fonts/AlfaSlabOne-latin.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pacifico";
  src: url("../fonts/Pacifico-latin.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1f2a38;
  --ink-2: #2b3a4d;
  --ink-3: #4d5866;
  --cream: #f5ead3;
  --paper: #fbf7ee;
  --sand: #efe0c2;
  --red: #c9452f;
  --red-dark: #a8361f;
  --brass: #e9a93b;
  --brass-soft: #f4d59a;
  --teal: #2f8078;
  --teal-dark: #256a63;
  --sky: #9fb3c8;
  --white: #fff;

  --font-display: "Alfa Slab One", "Rockwell", "Roboto Slab", "Georgia", serif;
  --font-script: "Pacifico", "Brush Script MT", cursive;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.85rem, .82rem + .15vw, .94rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + .9vw, 2rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.7vw, 2.85rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 4.1rem);

  --space-xs: .5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --space-xl: clamp(3rem, 2rem + 5vw, 6rem);

  --radius: 14px;
  --radius-s: 8px;
  --line: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-s: 3px 3px 0 var(--ink);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--red-dark); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: .005em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code { font-size: .92em; background: var(--sand); padding: .08em .35em; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brass); color: var(--ink); padding: .6rem 1rem; border: var(--line) solid var(--ink); border-radius: var(--radius-s); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.5em; height: 1.5em; flex: none; vertical-align: middle; }
.icon-xs { width: 1.1em; height: 1.1em; }
.icon-sm { width: 1.3em; height: 1.3em; }
.fine-print { font-size: var(--step--1); color: var(--ink-3); }
.h-sm { font-size: var(--step-1); }
.h-xs { font-family: var(--font-body); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 1.5rem 0 .6rem; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display); font-size: var(--step-0); line-height: 1.1; letter-spacing: .02em;
  padding: .85em 1.35em; min-height: 48px;
  color: var(--ink); background: var(--brass);
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow-s); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #b83c27; color: var(--white); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: 3px 3px 0 var(--brass); }
.btn-ghost:hover { color: var(--ink); background: var(--cream); box-shadow: 4px 4px 0 var(--brass); }
.btn-ghost-dark { background: var(--paper); }
.btn-small { font-size: var(--step--1); padding: .6em 1.1em; min-height: 42px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--red-dark); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.link-arrow:hover { color: var(--ink); }
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- header */
.site-header { background: var(--ink); color: var(--cream); position: relative; z-index: 20; border-bottom: 4px solid var(--brass); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--brass); }
.brand-mark { width: 46px; height: 46px; transition: transform .4s ease; }
.brand:hover .brand-mark { transform: rotate(-14deg); }
.brand-word { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); letter-spacing: .02em; display: inline-block; transform: rotate(-2deg); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a:not(.btn) { display: block; padding: .55rem .85rem; color: var(--cream); text-decoration: none; font-weight: 700; border-radius: 999px; }
.site-nav a:not(.btn):hover { background: var(--ink-2); color: var(--brass); }
.site-nav a[aria-current="page"] { color: var(--brass); box-shadow: inset 0 -3px 0 var(--brass); border-radius: 0; }
.site-nav { display: flex; align-items: center; gap: var(--space-s); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem;
    background: transparent; color: var(--cream); border: 2px solid var(--cream); border-radius: 999px;
    font: 700 .95rem var(--font-body); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: var(--space-s); }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: .8rem .5rem; border-radius: 0; border-top: 1px solid var(--ink-2); }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brass); padding-left: 1rem; }
  .js .site-nav:not(.is-open) { display: none; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- breadcrumbs */
.crumbs { padding-top: var(--space-s); font-size: var(--step--1); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--red-dark); }
.crumbs [aria-current] { font-weight: 700; }

/* ---------- hero */
.hero { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; padding-top: var(--space-l); }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: var(--space-l); padding-bottom: clamp(5rem, 9vw, 8rem); }
.kicker { font-family: var(--font-body); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.kicker-script { font-family: var(--font-script); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: var(--step-1); color: var(--brass); }
.hero-title { font-size: var(--step-4); color: var(--cream); margin-bottom: .4em; text-shadow: 4px 4px 0 var(--ink-2); }
.wobble { display: inline-block; color: var(--brass); }
.wobble span { display: inline-block; }
.wobble span:nth-child(1) { transform: rotate(-8deg) translateY(2px); }
.wobble span:nth-child(2) { transform: rotate(6deg) translateY(-4px); }
.wobble span:nth-child(3) { transform: rotate(-4deg) translateY(3px); }
.wobble span:nth-child(4) { transform: rotate(10deg) translateY(-2px); }
.hero-lede { font-size: var(--step-1); line-height: 1.5; max-width: 34em; color: #e9dfc9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-s); margin: var(--space-m) 0; }
.hero-note { display: flex; align-items: center; gap: .6rem; font-size: var(--step--1); color: var(--sky); }
.pulse-dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 rgba(233, 169, 59, .6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(233, 169, 59, .55); } 70% { box-shadow: 0 0 0 10px rgba(233, 169, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 169, 59, 0); } }

.hero-art { display: flex; justify-content: center; }
.porthole { position: relative; display: block; width: min(100%, 440px); aspect-ratio: 1; color: var(--ink); text-decoration: none; animation: bob 6s ease-in-out infinite; }
.porthole-glass { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, #fffaf0 0%, var(--cream) 55%, var(--sand) 100%); }
.porthole-img { width: 88%; height: 88%; margin: 6%; object-fit: contain; }
.porthole-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.porthole-label { position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%) rotate(-3deg); background: var(--red); color: var(--white); font-family: var(--font-display); padding: .35em 1.1em; border: var(--line) solid var(--ink); border-radius: 6px; white-space: nowrap; box-shadow: var(--shadow-s); }
.porthole:hover .porthole-label { background: var(--brass); color: var(--ink); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

.hero-sea { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(70px, 9vw, 120px); overflow: hidden; }
.wave { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; }
.wave-back { fill: var(--teal-dark); opacity: .55; animation: drift 26s linear infinite; }
.wave-mid { fill: var(--teal); height: 85%; animation: drift 18s linear infinite reverse; }
.wave-front { fill: var(--paper); height: 55%; animation: drift 12s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tw { animation: twinkle 4s ease-in-out infinite; }
.tw2 { animation-delay: 1.3s; }
.tw3 { animation-delay: 2.6s; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }

/* ---------- promise strip */
.promise-strip { background: var(--paper); }
.promise-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); padding-block: var(--space-m); }
.promise-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: var(--step--1); line-height: 1.45; }
.promise-list .icon { width: 2.4rem; height: 2.4rem; color: var(--teal-dark); }
.promise-list strong { display: block; font-size: var(--step-0); }

/* ---------- sections */
.section { padding-block: var(--space-xl) 0; }
.section-tight { padding-top: var(--space-m); }
.section-tint { background: var(--cream); padding-block: var(--space-xl); margin-top: var(--space-xl); border-block: var(--line) solid var(--ink); }
.section-tint + .section { }
.section-navy { background: var(--ink); color: var(--cream); padding-block: var(--space-xl); margin-top: var(--space-xl); }
.section-navy .kicker { color: var(--brass); }
.section-navy .link-arrow { color: var(--brass); }
.section-navy .link-arrow:hover { color: var(--cream); }
.section-tint + .section-navy, .section-navy + .section-tint { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-s) var(--space-m); flex-wrap: wrap; margin-bottom: var(--space-m); }
.section-title { font-size: var(--step-3); margin: 0; }
.section-title-sm { font-size: var(--step-2); margin-bottom: var(--space-s); }
.section-intro { margin: .5rem 0 0; color: var(--ink-3); max-width: 40em; }

/* ---------- page heads */
.page-head { padding-block: var(--space-l) var(--space-m); }
.page-title { font-size: var(--step-4); margin-bottom: .3em; }
.page-lede { font-size: var(--step-1); line-height: 1.5; max-width: 38em; color: var(--ink-2); }
.page-head-icon { display: flex; gap: var(--space-m); align-items: flex-start; }
.page-head-glyph { width: clamp(64px, 10vw, 110px); height: clamp(64px, 10vw, 110px); color: var(--red); background: var(--cream); border: var(--line) solid var(--ink); border-radius: 50%; padding: .8rem; box-shadow: var(--shadow); flex: none; }

/* ---------- grids & cards */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.card[hidden] { display: none; }
.card:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: 8px 9px 0 var(--ink); }
.card:nth-child(even):hover { transform: translate(-2px, -3px) rotate(.4deg); }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card-link:focus-visible { outline-offset: -6px; box-shadow: none; }
.card-media { position: relative; aspect-ratio: 1; background: var(--cream); border-bottom: var(--line) solid var(--ink); overflow: hidden; }
.card-media img, .card-media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card-media img { transform: scale(1.22); transform-origin: 50% 44%; }
.card:hover .card-media img { transform: scale(1.3); }
.card-body { padding: .9rem 1rem .4rem; display: flex; flex-direction: column; gap: .15rem; }
.card-title { font-size: var(--step-1); margin: 0; }
.card-tagline { font-size: var(--step--1); color: var(--ink-3); line-height: 1.4; }
.card-products { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: .4rem 1rem .9rem; color: var(--ink-3); }
.card-product { display: inline-flex; padding: .2rem; border-radius: 6px; }
.card-product.is-active { background: var(--brass-soft); color: var(--ink); }
.badge { position: absolute; top: .7rem; left: .7rem; font: 800 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: .45em .7em; border: 2px solid var(--ink); border-radius: 999px; transform: rotate(-6deg); }
.badge-new { background: var(--brass); color: var(--ink); }

.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; width: 100%; aspect-ratio: 1; background: repeating-linear-gradient(135deg, var(--cream) 0 14px, var(--sand) 14px 28px); color: var(--ink-3); font-size: var(--step--1); font-weight: 700; }
.placeholder svg { width: 38%; height: auto; opacity: .85; }

/* product type cards */
.type-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.type-card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-s); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.type-card:hover { transform: translateY(-3px); box-shadow: 5px 6px 0 var(--ink); color: var(--ink); }
.type-card-media { aspect-ratio: 1; border-bottom: var(--line) solid var(--ink); background: var(--cream); }
.type-card-media img { width: 100%; height: 100%; object-fit: cover; }
.type-card-body { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .55rem; padding: .75rem .85rem; }
.type-card-icon { grid-row: span 2; width: 2rem; height: 2rem; color: var(--red); }
.type-card-name { font-family: var(--font-display); font-size: var(--step-0); line-height: 1.15; }
.type-card-count { font-size: .82rem; color: var(--ink-3); }

/* theme cards (navy section) */
.theme-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.theme-card { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.1rem 1.1rem 1.2rem; border: 2px solid rgba(245, 234, 211, .35); border-radius: var(--radius); color: var(--cream); text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.theme-card:hover { border-color: var(--brass); background: var(--ink-2); color: var(--cream); }
.theme-stack { display: flex; margin-bottom: .6rem; }
.theme-thumb, .theme-stack .placeholder { width: 84px; height: 84px; border-radius: 50%; background: var(--cream); border: var(--line) solid var(--ink); box-shadow: 0 0 0 2px var(--cream); object-fit: contain; padding: 4px; }
.theme-stack > * + * { margin-left: -22px; }
.theme-card-name { font-family: var(--font-display); font-size: var(--step-1); color: var(--brass); }
.theme-card-intro { font-size: var(--step--1); line-height: 1.45; }
.theme-card-count { margin-top: auto; padding-top: .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: none; }
.step { position: relative; padding: 1.5rem 1.4rem 1.2rem; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.step h3 { font-size: var(--step-1); }
.step p { margin: 0; font-size: var(--step--1); line-height: 1.55; }
.step-num { position: absolute; top: -1rem; right: 1rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; background: var(--brass); border: var(--line) solid var(--ink); border-radius: 50%; }
.step-icon { width: 3rem; height: 3rem; color: var(--teal-dark); margin-bottom: .6rem; }

/* shanty teaser */
.shanty-card { display: grid; grid-template-columns: 1fr auto; gap: var(--space-l); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.shanty-copy p { max-width: 42em; }
.shanty-art { display: block; width: clamp(160px, 22vw, 260px); transform: rotate(3deg); transition: transform .2s ease; }
.shanty-art:hover { transform: rotate(-2deg) scale(1.03); }
.shanty-art img { border-radius: 50%; background: var(--paper); border: var(--line) solid var(--ink); }

/* ---------- shop filters */
.filters { display: grid; gap: var(--space-s); padding: var(--space-m); background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--radius); margin-bottom: var(--space-m); }
.filter-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-group legend { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .9rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: var(--step--1); cursor: pointer; transition: background-color .12s ease, box-shadow .12s ease; }
.chip:hover span { box-shadow: 2px 2px 0 var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.filter-actions { display: flex; gap: var(--space-s); align-items: center; }
.js .filters [data-filter-submit] { display: none; }
.result-count { font-weight: 700; color: var(--ink-3); margin-bottom: var(--space-s); }
.empty-state { padding: var(--space-m); border: 2px dashed var(--ink-3); border-radius: var(--radius); text-align: center; margin-top: var(--space-m); }
.empty-state[hidden] { display: none; }
.pill-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-links a { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .95rem; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: var(--step--1); }
.pill-links a:hover { background: var(--brass); color: var(--ink); }
.pill-links-center { justify-content: center; }

/* ---------- product type page */
.about-product { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-l); align-items: start; }
.colour-box { padding: var(--space-m); background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--radius); }
.swatches { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.swatch { display: inline-block; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sw, #ccc); border: 2px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); flex: none; }
.swatches-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.swatch-item { display: flex; align-items: center; gap: .55rem; font-size: var(--step--1); font-weight: 600; }

/* ---------- product (design) page */
.pdp { padding-top: var(--space-m); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-l); align-items: start; }
.pdp-media { position: sticky; top: 1rem; }
.pdp-figure { margin: 0; }
.pdp-figure[hidden] { display: none; }
.pdp-frame { background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 1; }
.pdp-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.pdp-frame img.is-swapping { opacity: .35; }
.preview-colours { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.preview-label { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: .25rem; }
.preview-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .35rem .85rem .35rem .4rem; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font: 700 var(--step--1) var(--font-body); cursor: pointer; }
.preview-btn[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.preview-btn .swatch { width: 1.5rem; height: 1.5rem; }
.pdp-themes { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.tag { display: inline-block; padding: .2rem .7rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); border: 2px solid var(--teal-dark); border-radius: 999px; text-decoration: none; }
a.tag:hover { background: var(--teal-dark); color: var(--white); }
.tag-new { background: var(--brass); color: var(--ink); border-color: var(--ink); }
.pdp-title { font-size: var(--step-4); margin-bottom: .15em; }
.pdp-tagline { font-family: var(--font-script); font-size: var(--step-2); color: var(--red-dark); line-height: 1.3; margin-bottom: .6rem; }
.product-switch { list-style: none; margin: 0 0 var(--space-m); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.product-switch a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-s); overflow: hidden; transition: box-shadow .12s ease, transform .12s ease; }
.product-switch a:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.product-switch a[aria-current="true"] { border-width: 3px; border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.switch-thumb { aspect-ratio: 1; background: var(--cream); }
.switch-thumb img, .switch-thumb .placeholder { width: 100%; height: 100%; object-fit: cover; }
.switch-thumb .placeholder-text { display: none; }
.switch-name { display: flex; align-items: center; gap: .3rem; padding: .35rem .45rem; font-size: .8rem; font-weight: 700; line-height: 1.2; }
.pdp-panel { padding: var(--space-m); background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--radius); }
.pdp-panel[hidden] { display: none; }
.pdp-panel-title { font-size: var(--step-2); }
.pdp-panel .h-xs { margin-top: 0; }
.btn-buy { width: 100%; font-size: var(--step-1); padding-block: 1rem; margin-top: .4rem; }
.buy-status { display: flex; gap: .6rem; align-items: center; margin: 1rem 0 .6rem; font-weight: 700; font-size: var(--step--1); }
.buy-status.is-live { color: var(--teal-dark); }
.pdp-panel .fine-print { margin: 0; }

.design-about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-l); align-items: start; }
.design-art { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.design-art:has(> :only-child) { grid-template-columns: 1fr; max-width: 420px; }
.art-tile { margin: 0; border: var(--line) solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); }
.art-tile img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8%; }
.art-tile-light { background: var(--paper); }
.art-tile-dark { background: var(--ink); color: var(--cream); }
.art-tile figcaption { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .5rem .8rem; border-top: var(--line) solid var(--ink); }
.art-tile-dark figcaption { border-top-color: var(--cream); }

/* ---------- prose pages */
.prose > * { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h2:first-child, .prose .kicker + h2 { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose-page { padding-bottom: var(--space-s); }
.notice { padding: 1rem 1.2rem; background: var(--brass-soft); border: var(--line) solid var(--ink); border-radius: var(--radius-s); margin-bottom: var(--space-m); }
.notice p { margin: 0; }
.theme-intro { margin-bottom: var(--space-m); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-l); align-items: start; }
.about-aside { position: sticky; top: 1rem; }
.art-card { display: block; background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; overflow: hidden; transform: rotate(2deg); transition: transform .2s ease; }
.art-card:hover { transform: rotate(0); color: var(--ink); }
.art-card img { width: 100%; padding: 6%; }
.art-card span { display: block; padding: .6rem 1rem; font-family: var(--font-display); border-top: var(--line) solid var(--ink); background: var(--brass); }
.cta-band { text-align: center; }
.cta-band p { max-width: 36em; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-s); justify-content: center; margin-top: var(--space-m); }

/* FAQ */
.faq > * { max-width: 52rem; }
.faq-group { margin-bottom: var(--space-l); }
.faq-group-title { font-size: var(--step-2); color: var(--teal-dark); }
.faq-item { background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius-s); margin-bottom: .75rem; box-shadow: var(--shadow-s); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 800; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 1.8rem; height: 1.8rem; display: grid; place-items: center; font-family: var(--font-display); background: var(--brass); border: 2px solid var(--ink); border-radius: 50%; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 1.2rem 1rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--space-l); align-items: start; }
.contact-card { padding: var(--space-m); background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-icon { width: 3rem; height: 3rem; color: var(--red); }
.contact-email { font-family: var(--font-display); font-size: var(--step-1); overflow-wrap: anywhere; }
.contact-topics li { margin-bottom: .8em; }

/* 404 + pending */
.lost { text-align: center; padding-block: var(--space-l) 0; }
.lost .page-lede { margin-inline: auto; }
.lost .kicker { justify-content: center; }
.lost-art svg { width: 130px; height: 130px; animation: spin-wobble 7s ease-in-out infinite; }
.lost .pill-links { margin-top: var(--space-m); }
@keyframes spin-wobble { 0%, 100% { transform: rotate(-20deg); } 30% { transform: rotate(160deg); } 60% { transform: rotate(80deg); } }
.pending { padding-block: var(--space-l); }
.pending-card { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--space-l); align-items: center; }
.pending-media { border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: var(--cream); transform: rotate(-1.5deg); }
.pending-body .page-title { font-size: var(--step-3); }
.pending-body .cta-actions { justify-content: flex-start; }
.pending-simple { text-align: center; max-width: 40rem; margin-inline: auto; }
.pending-simple .page-lede { margin-inline: auto; }
.pending-simple .kicker { justify-content: center; }

/* ---------- theme index */
.theme-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.theme-row-link { display: grid; grid-template-columns: auto 1fr; gap: var(--space-m); align-items: center; height: 100%; padding: 1.1rem; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.theme-row-link:hover { transform: translate(-2px, -2px); color: var(--ink); }
.theme-row-thumbs { display: grid; grid-template-columns: repeat(2, 64px); gap: 6px; }
.theme-row-thumbs img, .theme-row-thumbs .placeholder { width: 64px; height: 64px; border-radius: 10px; background: var(--cream); border: 2px solid var(--ink); object-fit: contain; padding: 3px; }
.theme-row-thumbs .placeholder-text { display: none; }
.theme-row-title { font-size: var(--step-1); margin-bottom: .2rem; }
.theme-row-intro { display: block; font-size: var(--step--1); color: var(--ink-3); line-height: 1.45; }
.theme-row-count { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); }

/* ---------- footer */
.site-footer { margin-top: var(--space-xl); color: var(--cream); }
.footer-wave { display: block; width: 100%; height: 48px; fill: var(--ink); margin-bottom: -1px; }
.footer-body { background: var(--ink); padding-block: var(--space-l) var(--space-m); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-l); }
.footer-brand p { color: #d8ccb3; font-size: var(--step--1); max-width: 26em; margin-top: 1rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--brass); }
.footer-h { font-size: var(--step-0); color: var(--brass); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.site-footer li { margin-bottom: .45rem; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-base { margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--ink-2); font-size: .85rem; color: var(--sky); }
.footer-base p { margin-bottom: .5rem; }
.rope { width: 100%; height: 16px; fill: none; stroke: var(--brass); stroke-width: 4; }

/* ---------- responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .porthole { width: min(72vw, 320px); }
  .pdp-grid, .design-about, .about-product, .about-layout, .contact-layout, .pending-card { grid-template-columns: minmax(0, 1fr); }
  .pdp-media, .about-aside { position: static; }
  .about-aside { max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pending-media { max-width: 420px; }
}
@media (max-width: 700px) {
  .promise-list { grid-template-columns: 1fr; gap: var(--space-s); }
  .shanty-card { grid-template-columns: 1fr; }
  .shanty-art { justify-self: center; }
  .page-head-icon { flex-direction: column; gap: var(--space-s); }
  .theme-row-link { grid-template-columns: 1fr; }
  .theme-row-thumbs { grid-template-columns: repeat(4, 56px); }
  .theme-row-thumbs img, .theme-row-thumbs .placeholder { width: 56px; height: 56px; }
}
@media (max-width: 420px) {
  .brand { gap: .45rem; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-word { font-size: 1.12rem; }
  .js .nav-toggle { padding: .4rem .7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .card-body { padding: .6rem .65rem .2rem; }
  .card-products { padding: .3rem .65rem .7rem; }
  .card-tagline { display: none; }
  .product-switch { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .nav-toggle { width: 46px; height: 46px; justify-content: center; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .card:nth-child(even):hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-sea, .filters, .product-switch, .preview-colours { display: none; }
  body { background: #fff; }
}
.prose .pill-links { padding-left: 0; }
.prose .pill-links li { margin: 0; }
