/* Lobster Riot site. Palette "Boiled", type Archivo Black + Archivo.
   Shapes: buttons 6px, cards 12px, panels 24px. Shadows are hard offsets, never blurred. */

@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --red: #E5322D;
  --red-text: #C0221D;
  --ink: #14233B;
  --ink-muted: #4D5B70;
  --foam: #FFF3E2;
  --white: #FFFFFF;
  --buoy: #FFB000;
  --glass: #3CC4B2;
  --raised-dark: #1C2F4D;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --r-btn: 6px;
  --r-card: 12px;
  --r-panel: 24px;
  --line: 3px solid var(--ink);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-text); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0; line-height: 0.95; letter-spacing: -0.01em; }
p { margin: 0; }
.hero h1, .closer-panel h2, .doc h1, .lost h1 { width: fit-content; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; border: var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font: 700 16px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: var(--white);
  border: var(--line); border-radius: var(--r-btn); box-shadow: var(--shadow);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn-buoy { background: var(--buoy); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; box-shadow: 4px 4px 0 var(--ink); }
.btn-sm:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn-on-dark { color: var(--foam); background: transparent; border-color: var(--foam); box-shadow: 6px 6px 0 var(--red); }
.btn-on-dark:hover { box-shadow: 8px 8px 0 var(--red); }
.btn-on-dark:active { box-shadow: 2px 2px 0 var(--red); }
.btn-on-dark:focus-visible { outline-color: var(--foam); }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand-link { display: block; flex: none; }
.brand-link img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav a:not(.btn):hover { color: var(--red-text); text-decoration: underline; text-decoration-thickness: 3px; }

/* Hero */
.hero .wrap {
  display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px);
}
.hero h1 {
  font-size: clamp(54px, 8.4vw, 118px); line-height: 0.88;
  color: var(--red); text-shadow: 0.05em 0.05em 0 var(--ink);
  transform: skewX(-8deg); transform-origin: center;
  padding: 0 0.1em 0.08em 0;
}
.hero h1 .ink { color: var(--ink); text-shadow: 0.05em 0.05em 0 var(--red); }
.hero .lead { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; line-height: 1.45; max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; }
.hero-art { position: relative; margin: 0; padding: 40px 0 0 40px; }
.hero-photo {
  background: var(--white); border: 4px solid var(--ink); border-radius: var(--r-panel); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: rotate(2deg);
}
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-sticker { position: absolute; left: -6px; top: -8px; width: clamp(110px, 13vw, 170px); transform: rotate(-12deg); }

/* Caution tape band with slogans */
.tape-wrap { overflow: hidden; padding-block: 28px; margin-block: -28px; }
.tape {
  position: relative; margin: 0 -2vw; width: 104vw; transform: rotate(-1.6deg);
  background: var(--buoy); border-block: 4px solid var(--ink); overflow: hidden;
}
.tape::before, .tape::after {
  content: ""; display: block; height: 14px;
  background: repeating-linear-gradient(45deg, var(--ink) 0 12px, var(--buoy) 12px 24px);
}
.tape-track { display: flex; width: max-content; padding: 14px 0; }
.tape-track ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0 14px; list-style: none; }
.tape-track li { display: flex; align-items: center; gap: 28px; font: 400 clamp(22px, 2.6vw, 32px)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.tape-track li img { width: 34px; height: 34px; }

/* Sections */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { font-size: clamp(38px, 5vw, 64px); }
.section-head p { margin-top: 18px; font-size: 19px; font-weight: 500; color: var(--ink-muted); max-width: 52ch; }

/* Christmas bento */
.xmas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 22px; }
.tile {
  position: relative; display: flex; flex-direction: column; margin: 0;
  border: var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden;
  background: var(--white);
}
.tile-art { flex: 1; display: grid; place-items: center; padding: 26px 26px 8px; min-height: 0; }
.tile-art img { max-height: 230px; width: auto; object-fit: contain; }
.tile figcaption { padding: 12px 18px 16px; font: 700 14px/1.2 var(--body); letter-spacing: 0.06em; text-transform: uppercase; }
.tile-big { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--foam); box-shadow: 6px 6px 0 var(--red); }
.tile-big .tile-art { padding: 40px 40px 12px; }
.tile-big .tile-art img { max-height: 470px; }
.tile-big figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px 24px; font-size: 16px; }
.tile-buoy { background: var(--buoy); }

/* Year-round hoodies: a row of stickers */
.hoodie-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.hoodie-card {
  background: var(--white); border: var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.25s var(--ease);
}
.hoodie-card:nth-child(odd) { transform: rotate(-1.5deg); }
.hoodie-card:nth-child(even) { transform: rotate(1.2deg) translateY(14px); }
.hoodie-card:hover { transform: rotate(0) translateY(-4px); }
.hoodie-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hoodie-card p { padding: 12px 16px 16px; border-top: var(--line); font: 700 14px/1.25 var(--body); letter-spacing: 0.05em; text-transform: uppercase; }
.hoodie-card p span { display: block; margin-top: 4px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }

/* Holidays: grouped by date */
.holiday-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.holiday {
  display: flex; flex-direction: column; background: var(--white);
  border: var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden;
}
.holiday header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: var(--line); background: var(--foam); }
.holiday h3 { font-size: 22px; line-height: 1.05; }
.holiday time { flex: none; font: 700 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.holiday-wide { grid-column: span 2; }
.mugs { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); flex: 1; }
.holiday-wide .mugs { --n: 2; }
.mug { margin: 0; display: flex; flex-direction: column; }
.mug + .mug { border-left: 2px dashed #E6D6BC; }
.mug img { width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 1; object-fit: cover; }
.mug figcaption { padding: 0 20px 18px; font-weight: 700; font-size: 16px; text-align: center; }
.holiday-hot header { background: var(--buoy); }

/* Meet the Rioter */
.rioter .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: clamp(32px, 6vw, 88px); }
.rioter-panel {
  display: grid; place-items: center; aspect-ratio: 1; padding: 12%;
  background: var(--buoy); border: 4px solid var(--ink); border-radius: var(--r-panel); box-shadow: var(--shadow-lg);
}
.rioter-panel img { width: 100%; transform: rotate(-6deg); }
.rioter h2 { font-size: clamp(38px, 5vw, 64px); }
.rioter p { margin-top: 20px; font-size: 20px; font-weight: 500; max-width: 40ch; }
.rioter p + p { font-size: 17px; font-weight: 400; color: var(--ink-muted); }

/* Closing call to action */
.closer-panel {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  padding: clamp(36px, 5vw, 64px); background: var(--ink); color: var(--foam);
  border-radius: var(--r-panel); box-shadow: 10px 10px 0 var(--red);
}
.closer-panel h2 { font-size: clamp(44px, 6.4vw, 88px); color: var(--foam); text-shadow: 0.05em 0.05em 0 var(--red); transform: skewX(-8deg); transform-origin: center; }
.closer-panel p { margin-top: 18px; font-size: 19px; color: #B8C2D3; max-width: 44ch; }
.closer-panel .actions { margin-top: 0; justify-content: flex-end; }

/* Footer */
.site-footer { padding: 56px 0 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.foot-brand img { width: 40px; height: 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.foot-links a { color: var(--ink); }
.foot-links a:hover { color: var(--red-text); }

/* Plain text pages (privacy, 404) */
.doc { max-width: 720px; padding-block: 48px 96px; }
.doc h1 { font-size: clamp(44px, 6vw, 72px); color: var(--red); text-shadow: 0.05em 0.05em 0 var(--ink); transform: skewX(-8deg); transform-origin: center; }
.doc .updated { margin-top: 16px; color: var(--ink-muted); font-weight: 500; }
.doc h2 { font-size: 24px; margin-top: 44px; }
.doc p { margin-top: 14px; max-width: 64ch; }
.lost { display: grid; justify-items: start; gap: 28px; padding-block: 40px 120px; }
.lost img { width: 200px; transform: rotate(-8deg); }
.lost h1 { font-size: clamp(56px, 9vw, 120px); color: var(--red); text-shadow: 0.05em 0.05em 0 var(--ink); transform: skewX(-8deg); transform-origin: center; }
.lost p { font-size: 20px; font-weight: 500; }

/* Motion: entrance, tape and scroll reveals. All of it switches off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-photo { animation: drop-in 0.8s var(--ease) 0.1s both; }
  .hero-sticker { animation: slap 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s both; }
  .tape-track { animation: tape 38s linear infinite; }
  .tape:hover .tape-track { animation-play-state: paused; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes drop-in { from { opacity: 0; transform: rotate(9deg) translateY(40px); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes slap { from { opacity: 0; transform: rotate(-30deg) scale(1.6); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes tape { to { transform: translateX(-50%); } }

/* Tablet */
@media (max-width: 1023px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .xmas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hoodie-row { grid-template-columns: repeat(5, 240px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 12px 32px 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .hoodie-card { scroll-snap-align: start; }
  .holiday-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holiday-wide, .holiday:last-child { grid-column: span 2; }
  .holiday:last-child .mug img { max-width: 300px; }
  .rioter .wrap { grid-template-columns: 1fr 1fr; }
  .closer-panel { grid-template-columns: 1fr; }
  .closer-panel .actions { justify-content: flex-start; }
}

/* Phone */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 68px; }
  .brand-link img { height: 34px; }
  .nav a:not(.btn) { display: none; }
  .hero .lead { max-width: none; }
  .actions .btn { flex: 1 1 auto; }
  .hero-art { padding: 28px 14px 0 28px; }
  .tile-art img { max-height: 150px; }
  .tile-big .tile-art { padding: 28px 24px 8px; }
  .tile-big .tile-art img { max-height: 340px; }
  .tile-big figcaption { flex-direction: column; align-items: flex-start; }
  .xmas-grid { grid-auto-rows: minmax(190px, auto); gap: 16px; }
  .holiday-grid { gap: 16px; }
  .holiday header { flex-direction: column; gap: 6px; padding: 12px 14px; }
  .holiday h3 { font-size: 18px; }
  .mug figcaption { padding: 0 10px 14px; font-size: 14px; }
  .rioter .wrap { grid-template-columns: 1fr; }
  .rioter-panel { max-width: 320px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
