/* masqhead · colours sampled from the face paintings and the burst logo */
:root {
  --teal: #057060;
  --cobalt: #1876AA;
  --burst: #0270D0;
  --bubblegum: #DF90B8;
  --hotpink: #E04193;
  --lip: #C8283F;
  --paper: #FFFFFF;
  --white: #FFFFFF;
  --ink: #111111;
  --focus: var(--burst); /* focus ring; each coloured section sets its own */

  --pad: clamp(16px, 4vw, 56px);
  --line: 3px;
  --bar-h: 100px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: .03em; text-transform: uppercase; }

h1, h2, h3 {
  font-weight: 900;
  font-stretch: 66%;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.005em;
  text-wrap: balance;
}
/* same spacing in both languages, with room for Turkish İ Ü Ş marks */
h1, h2 { line-height: .96; }
/* sized so the longer line ("SAILOR ŞAPKALAR") fits on one line: both titles stay two lines */
h1 { font-size: clamp(44px, 6.7vw, 98px); }
h2 { font-size: clamp(40px, 5.6vw, 84px); }
h3 { font-size: clamp(34px, 3.4vw, 52px); }
p { text-wrap: pretty; }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- buttons and links ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--paper); --b-shadow: var(--hotpink);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px;
  background: var(--b-bg); color: var(--b-fg);
  border: var(--line) solid var(--b-border, var(--b-bg));
  font-weight: 800; font-stretch: 85%; font-size: 17px; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--b-shadow); transition-duration: .05s; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn--ink { --b-bg: var(--ink); --b-fg: var(--paper); }
.btn--paper { --b-bg: var(--paper); --b-fg: var(--ink); --b-border: var(--ink); --b-shadow: var(--ink); }
.btn--line { --b-bg: transparent; --b-fg: currentColor; --b-border: currentColor; --b-shadow: currentColor; color: inherit; }

.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size .25s var(--ease);
}

/* the spiky burst, same shape as the logo */
.burst {
  display: inline-grid; place-items: center;
  padding: 26px 30px;
  background: var(--burst); color: var(--white);
  font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 20px; line-height: 1;
  clip-path: polygon(0 18%, 16% 4%, 30% 18%, 46% 0, 60% 14%, 78% 2%, 100% 16%, 90% 40%, 100% 62%, 86% 74%, 100% 100%, 70% 88%, 52% 100%, 36% 86%, 16% 100%, 8% 78%, 0 62%, 10% 40%);
}

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
}
.bar__in { display: flex; align-items: center; gap: 24px; height: var(--bar-h); }
.bar__logo img { height: clamp(48px, 5.4vw, 78px); width: auto; position: relative; top: 7px; } /* the "q" tail makes the wordmark look high when centred */
.bar__logo { display: block; padding: 6px 0; transition: transform .2s var(--ease); }
.bar__nav { display: flex; gap: 28px; margin-left: auto; }
.bar__nav a {
  font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none; padding-block: 12px;
  background: linear-gradient(currentColor, currentColor) left 80% / 0% 2px no-repeat;
  transition: background-size .25s var(--ease);
}
.bar__end { display: flex; align-items: center; gap: 12px; }
.bar__nav + .bar__end { margin-left: 8px; }

.lang { display: flex; border: var(--line) solid var(--ink); }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 10px;
  background: transparent; border: 0;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  transition: background-color .15s;
}
.lang button + button { border-left: var(--line) solid var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- hero: one painting per visit, on its own colour ---------- */
.hero {
  --hero-bg: var(--teal); --hero-ink: var(--paper); --focus: var(--hero-ink);
  background: var(--hero-bg); color: var(--hero-ink);
  min-height: calc(100svh - var(--bar-h) - var(--line));
  display: flex; align-items: flex-end; /* content sits on the bottom edge, so the markets band meets the dark strip */
  padding-top: clamp(32px, 5vh, 64px);
  overflow: clip; /* clip, not hidden: focus or scrollIntoView must never scroll the hero sideways */
}
html[data-face="blue"] .hero { --hero-bg: var(--cobalt); --hero-ink: var(--white); }
html[data-face="pink"] .hero { --hero-bg: var(--bubblegum); --hero-ink: var(--ink); }
.hero .btn--paper { --b-shadow: var(--ink); }
html[data-face="pink"] .hero .btn--paper { --b-bg: var(--ink); --b-fg: var(--paper); --b-shadow: var(--paper); }

.hero__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero__text { min-width: 0; } /* the sliding markets row must not widen the column */
.hero__kicker { margin-bottom: 20px; }
.hero__lede { font-size: clamp(19px, 1.5vw, 23px); max-width: 44ch; margin-top: 24px; text-wrap: balance; }
.hero__fact {
  display: inline-block; margin-top: 22px; padding: 10px 14px;
  border: 2px solid currentColor; font-size: 13px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__art { position: relative; height: min(66svh, 700px); }
/* centred on the text beside it (not counting the markets band below the buttons) */
@media (min-width: 861px) { .hero__art { align-self: center; margin-bottom: 16px; } }
.hero__face {
  position: absolute; inset: 0;
  background: url("assets/brand/face-green.webp") center / contain no-repeat;
}
html[data-face="blue"] .hero__face { background-image: url("assets/brand/face-shock-blue.webp"); }
html[data-face="pink"] .hero__face { background-image: url("assets/brand/face-pink.webp"); }
.hero__burst { position: absolute; z-index: 3; right: 2%; bottom: 8%; transform: rotate(8deg); } /* sits on top of the markets band */

/* the hero enters once */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] { animation: rise .8s var(--ease) both; }
  .hero__text [data-enter]:nth-child(2) { animation-delay: .06s; }
  .hero__text [data-enter]:nth-child(3) { animation-delay: .14s; }
  .hero__text [data-enter]:nth-child(4) { animation-delay: .2s; }
  .hero__text [data-enter]:nth-child(5) { animation-delay: .26s; }
  .hero__art[data-enter] { animation: face-in 1s var(--ease) .1s backwards; } /* backwards: no lasting layer, so the sticker can sit above the band */
  .hero__burst { animation: pop .5s var(--ease) .9s backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes face-in { from { opacity: 0; transform: scale(.94) rotate(-3deg); } }
@keyframes pop { from { opacity: 0; transform: rotate(8deg) scale(.4); } }

/* ---------- tape band ---------- */
.tape {
  background: var(--ink); color: var(--paper);
  border-block: var(--line) solid var(--ink);
}
.tape ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.tape li { font-size: 14px; }
.tape li + li::before { content: "✦" / ""; margin-right: 24px; color: var(--bubblegum); }
@media (max-width: 860px) { .tape ul { justify-content: flex-start; } .tape li + li::before { margin-right: 12px; } }

/* ---------- hats ---------- */
.hats { padding-block: clamp(64px, 9vh, 112px); }
.hats__head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.hats__count { padding-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chips button {
  min-height: 44px; padding: 8px 16px;
  background: transparent; border: 2px solid var(--ink);
  font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .03em;
  transition: background-color .15s, color .15s, transform .15s var(--ease);
}
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.grid {
  display: grid; gap: 24px; margin-top: 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card { position: relative; }
.card a {
  display: block; height: 100%; text-decoration: none;
  background: var(--white); border: var(--line) solid var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card__ph { position: relative; aspect-ratio: 1; overflow: hidden; border-bottom: var(--line) solid var(--ink); background: var(--paper); }
.card__ph img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .3s var(--ease), transform .5s var(--ease);
}
.card__ph img + img { opacity: 0; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px 14px; }
.card__name { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 18px; line-height: 1.1; min-height: 2.2em; }
.card__price { white-space: nowrap; font-size: 13px; }
.card .burst { position: absolute; z-index: 2; top: -16px; right: -12px; padding: 18px 20px; font-size: 14px; transform: rotate(8deg); pointer-events: none; }
.card .burst--out { background: var(--ink); }
.card.is-out .card__ph img { filter: grayscale(1); opacity: .7; }
.grid__empty { grid-column: 1 / -1; padding: 40px 0; }

/* ---------- faces ---------- */
.faces { --focus: var(--white); background: var(--cobalt); color: var(--white); padding-block: clamp(64px, 9vh, 112px); }
.faces__in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.faces__text p { font-size: clamp(18px, 1.35vw, 21px); max-width: 38ch; margin-top: 18px; }
.stitch { display: block; width: min(100%, 420px); height: 22px; margin-top: 18px; overflow: visible; }
.stitch path { fill: none; stroke: var(--lip); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 16 12; }
@media (prefers-reduced-motion: no-preference) {
  .js .stitch { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease); }
  .js .faces.is-drawn .stitch { clip-path: inset(0 0 0 0); }
}
.faces__wall {
  display: grid; gap: 14px;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1.45fr 1fr;
  grid-template-areas: "paint mask" "eye heart";
  height: min(68svh, 640px);
}
.faces__wall img { width: 100%; height: 100%; object-fit: cover; border: var(--line) solid var(--ink); background: var(--ink); }
.w-paint { grid-area: paint; object-fit: contain !important; background: var(--teal) !important; padding: 8px; }
.w-eye { grid-area: eye; object-position: 42% 50%; }
.w-heart { grid-area: heart; object-position: 34% 50%; }
.w-mask { grid-area: mask; object-position: 60% 28%; }

/* ---------- made by hand ---------- */
.made { --focus: var(--ink); background: var(--bubblegum); color: var(--ink); padding-block: clamp(64px, 9vh, 112px); }
.made__in { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.made__photos img:nth-child(3) { object-position: 28% 45%; }
.made__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: min(68svh, 640px); }
.made__photos img { width: 100%; height: 100%; object-fit: cover; border: var(--line) solid var(--ink); }
.facts { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.facts div { border-top: var(--line) solid var(--ink); padding-top: 12px; }
.facts dt { font-weight: 500; }
.facts dd { margin-top: 4px; font-size: 17px; }
.made__by { margin-top: 24px; font-weight: 700; }

/* ---------- on heads ---------- */
.onheads { --focus: var(--paper); background: var(--ink); color: var(--paper); padding-block: clamp(64px, 9vh, 112px); }
.onheads__head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.onheads .btn--paper { --b-border: var(--paper); --b-shadow: var(--hotpink); }
.ig { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.ig a { display: block; aspect-ratio: 1; overflow: hidden; border: var(--line) solid var(--paper); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ig img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }

/* ---------- footer ---------- */
.foot { --focus: var(--paper); background: var(--teal); color: var(--paper); padding-block: 64px 28px; }
.foot__top { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.foot__logo { display: inline-block; justify-self: start; background: var(--paper); padding: 22px 30px; transform: rotate(-2deg); transition: transform .2s var(--ease); }
.foot__logo img { width: min(340px, 60vw); height: auto; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot__cols .mono { margin-bottom: 8px; font-size: 13px; }
.foot__cols a { font-size: 19px; font-weight: 700; display: inline-block; padding-block: 8px; }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 2px solid currentColor; font-size: 13px; }

/* ---------- product sheet ---------- */
.sheet {
  width: min(1080px, calc(100% - 32px)); max-height: calc(100svh - 32px);
  margin: auto; padding: 0; overscroll-behavior: contain; border: var(--line) solid var(--ink); background: var(--paper); color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.sheet::backdrop { background: rgba(17, 17, 17, .62); }
.sheet__in { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; }
.sheet__gallery { border-right: var(--line) solid var(--ink); background: var(--white); }
.sheet__main { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sheet__thumbs { display: flex; gap: 8px; padding: 10px; border-top: var(--line) solid var(--ink); flex-wrap: wrap; }
.sheet__thumbs:empty { display: none; }
.sheet__thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; background: none; }
.sheet__thumbs button[aria-current="true"] { border-color: var(--ink); }
.sheet__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sheet__info { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sheet__close {
  position: absolute; z-index: 3; top: 12px; right: 12px; width: 44px; height: 44px;
  background: var(--paper); border: var(--line) solid var(--ink); font-size: 18px; line-height: 1;
  transition: background-color .15s, transform .15s var(--ease);
}
.sheet__price { margin-top: 8px; }
.sheet h3 { padding-right: 48px; }
.sheet__desc { white-space: pre-line; }
.sheet__facts { font-size: 12px; color: var(--lip); }
.sheet__note { font-size: 15px; }

/* ---------- hover (mouse and trackpad only, so taps on phones don't leave things shifted) ---------- */
@media (hover: hover) {
  .btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--b-shadow); }
  .btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--b-shadow); }
  .link:hover, .bar__nav a:hover { background-size: 100% 2px; }
  .bar__logo:hover { transform: rotate(-3deg); }
  .lang button:not([aria-pressed="true"]):hover { background: var(--bubblegum); }
  .chips button:not([aria-pressed="true"]):hover { background: var(--bubblegum); transform: translateY(-2px); }
  .card a:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--ink); }
  .card a:hover .card__ph img { transform: scale(1.03); }
  .card a:hover .card__ph img + img { opacity: 1; }
  .ig a:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--hotpink); }
  .ig a:hover img { transform: scale(1.03); }
  .foot__logo:hover { transform: rotate(0); }
  .sheet__close:hover { background: var(--bubblegum); transform: rotate(90deg); }
}

/* ---------- next markets band (full width, bottom of the hero) ---------- */
/* full-bleed: as wide as the screen though it sits in the text column, drawn over the painting */
.markets {
  position: relative; z-index: 2; display: flex; align-items: stretch;
  width: 100vw; margin-top: 28px;
  margin-left: calc(-1 * max(var(--pad), (100vw - 1360px) / 2 + var(--pad)));
  border-top: 2px solid currentColor; background: var(--hero-bg);
  min-height: 51px; /* space is kept from the start, so nothing jumps when the sheet loads */
}
.markets[hidden] { display: none; }
.markets__label { flex: none; display: flex; align-items: center; padding: 12px var(--pad); font-size: 13px; color: var(--hero-bg); background: var(--hero-ink); }
.markets__viewport { overflow: hidden; flex: 1; min-width: 0; }
.markets__track { display: flex; width: max-content; font-size: 14px; animation: markets-slide var(--dur, 20s) linear infinite; }
.markets:hover .markets__track, .markets:focus-within .markets__track { animation-play-state: paused; }
.markets__track li { white-space: nowrap; padding: 14px 0; }
.markets__track li::after { content: "✦" / ""; margin: 0 22px; }
.markets__track a { text-decoration: none; }
.markets__track a:hover span { text-decoration: underline; }
.markets__track b { font-weight: 500; }
.markets__track span { text-transform: none; } /* names exactly as typed in the sheet (TR or EN) */
@keyframes markets-slide { to { transform: translateX(-50%); } }
/* slides for everyone, as asked; it pauses on hover and while a link in it has focus */
@media (prefers-reduced-motion: reduce) { .markets__track { animation-duration: var(--dur, 20s) !important; } }
@media (max-width: 560px) { .markets__label { padding-inline: 12px; } }

/* ---------- Instagram DM pop-up ---------- */
.promo {
  --focus: var(--ink);
  width: min(520px, calc(100% - 32px)); margin: auto; padding: 0;
  border: var(--line) solid var(--ink); background: var(--paper); color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink); overflow: visible;
}
.promo::backdrop { background: rgba(17, 17, 17, .55); }
.promo__in { position: relative; padding: 40px 32px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.promo__burst { position: absolute; top: -34px; right: 28px; font-size: 30px; padding: 26px 30px; transform: rotate(8deg); }
.promo__h { font-size: clamp(36px, 5vw, 52px); padding-right: 70px; }
.promo__p { font-size: 18px; max-width: 36ch; }
.promo__cta { margin-top: 6px; }
.promo__alt { font-weight: 700; padding-block: 10px; }
.promo__close {
  position: absolute; top: 12px; left: 12px; width: 44px; height: 44px;
  background: var(--paper); border: var(--line) solid var(--ink); font-size: 18px; line-height: 1;
}
.promo__kicker { margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .promo[open] { animation: promo-in .45s var(--ease); }
  .promo[open] .promo__burst { animation: pop .5s var(--ease) .2s both; }
}
@keyframes promo-in { from { opacity: 0; transform: translateY(24px) rotate(-1deg); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .bar__nav { display: none; }
  .bar__end { margin-left: auto; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero__in, .faces__in, .made__in, .foot__top { grid-template-columns: 1fr; }
  .hero__art { height: 40svh; }
  .made__text { order: -1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ig { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faces__wall, .made__photos { height: 70svh; }
  .sheet__in { grid-template-columns: 1fr; }
  .sheet__gallery { border-right: 0; border-bottom: var(--line) solid var(--ink); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  :root { --bar-h: 72px; }
  .bar__logo img { height: 48px; }
  .bar__end .btn { display: none; }
  .hero__actions .btn { width: 100%; }
  .hero__burst { padding: 18px 22px; font-size: 15px; }
  .faces__wall { height: auto; aspect-ratio: 4 / 5; }
  .made__photos { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: auto; aspect-ratio: 4 / 5; }
  .made__photos img:first-child { grid-row: span 2; }
  .foot__cols, .facts { grid-template-columns: 1fr; }
  .card__meta { flex-direction: column; gap: 4px; }
  .sheet { width: 100%; max-width: 100%; max-height: 100%; height: 100%; box-shadow: none; }
  .sheet__info { padding: 24px 16px 32px; }
  .sheet__close { position: fixed; }
  .sheet__buy { position: sticky; bottom: 16px; align-self: stretch; box-shadow: 0 0 0 6px var(--paper); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
