/* Exhausted Humans. The site has its own type and colours, never the products' (the user,
   27.10.2026): white, near-black, one grey, no accent. The pictures bring the colour.
   Brief: BRANDS/exhausted-humans/2_MARKETING/brand/site-direction.md, "The home page, decided 27.10". */
:root {
  color-scheme: light;
  --bg:     #ffffff;
  --ink:    #111111;
  --ink-2:  #333333;
  --grey:   #6b6b6b;
  --line:   #e7e7e7;
  --soft:   #f5f5f5;
  --sans:   "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --screen: "VT323", ui-monospace, monospace;
  --wrap:   1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --top:    61px;
  --ease:   cubic-bezier(.2, .8, .2, 1);
  /* the one shadow every cut-out object and product shares */
  --lift:   drop-shadow(0 24px 22px rgba(0, 0, 0, .16)) drop-shadow(0 4px 4px rgba(0, 0, 0, .08));
  --lift-s: drop-shadow(0 12px 12px rgba(0, 0, 0, .14)) drop-shadow(0 2px 3px rgba(0, 0, 0, .08));
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--top); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.label { display: block; font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin: 0; }
.btn {
  display: inline-block; padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; text-decoration: none; font: 600 16px/1.2 var(--sans);
  transition: transform .15s var(--ease), background-color .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { background: #9a9a9a; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #2b2b2b; } }

/* ── the header ──────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 0 var(--gutter); background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.brand { font: 800 15px/1 var(--sans); letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.cols { display: flex; gap: 26px; justify-content: flex-end; }
.cols a { font: 500 15px/1 var(--sans); text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1.5px solid transparent; white-space: nowrap; }
.cols a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cols a:hover { color: var(--ink); } }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 14px/1 var(--sans);
}
.cart-n:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: 12px; }
@media (max-width: 760px) {
  :root { --top: 96px; }
  .top { grid-template-columns: 1fr auto; grid-template-rows: 52px 44px; gap: 0 12px; height: var(--top); }
  /* all three names on one row, down to a 320 px phone (measured 27.10.2026) */
  .cols { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 12px; align-items: center; }
  .cols a { font-size: min(13px, 3.6vw); letter-spacing: -.01em; }
}

/* ── the cut-out objects ─────────────────────────────────────── */
.obj { position: relative; container-type: inline-size; }
.obj img { width: 100%; filter: var(--lift); }
.obj.tall img { width: auto; max-height: 82svh; margin: 0 auto; }
/* the television words: live text on blank screens (screens measured off tvs-v1.png) */
.screen {
  position: absolute; width: 24.4%; height: 27.7%; display: grid; place-items: center;
  font: 4.6cqw/1 var(--screen); letter-spacing: .06em; color: #cdeeff;
  text-shadow: 0 0 6px rgba(160, 220, 255, .75), 0 0 18px rgba(120, 200, 255, .35);
}

/* ── the home page ───────────────────────────────────────────── */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(16px, 3svh, 40px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  min-height: calc(100svh - var(--top));
}
.hero-copy { container-type: inline-size; min-width: 0; }
/* the wordmark never leaves its column: EXHAUSTED is 5.54 em wide, so 17.6 per cent of the column
   is its ceiling and it can never reach under Martin's cubicle (the user, 27.10.2026) */
.wm { font: 800 min(9.6vw, 15svh, 17.6cqi)/.86 var(--sans); letter-spacing: -.055em; text-transform: uppercase; margin: 0; }
.sub { font: 500 clamp(18px, 1.8vw, 23px)/1.35 var(--sans); color: var(--ink-2); margin: 24px 0 0; max-width: 22em; }
.hero-obj img { width: auto; max-width: 100%; max-height: calc(100svh - var(--top) - 72px); margin-left: auto; }

.sec {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  min-height: min(100svh, 900px);
}
.sec.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.sec.flip .sec-pic { order: 2; }
.sec-pic { display: block; }
.sec-pic .obj img { transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .sec-pic:hover .obj img { transform: translateY(-4px); } }
/* each sentence of a slogan is its own line and never breaks (the user, 27.10.2026). The type
   is sized off the column: the longest sentence, "Motivation is a product.", is 10.07 em, so
   9.6 per cent of the column always fits it, and every section shares that one size. */
.sec-copy, .open-copy { container-type: inline-size; min-width: 0; }
.slogan { display: block; font: 800 min(60px, 9.6cqi)/1.04 var(--sans); letter-spacing: -.04em; margin: 14px 0 28px; }
.slogan .ln { display: block; white-space: nowrap; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; padding-bottom: 48px; gap: 28px; }
  .wm { font-size: 17.6cqi; }
  .hero-obj img { max-height: none; width: 100%; }
  .sec, .sec.flip { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding-top: 40px; padding-bottom: 56px; }
  .sec.flip .sec-pic { order: 0; }
  .obj.tall img { max-height: 64svh; }
  .slogan { margin-bottom: 20px; }
}

/* ── a collection page ───────────────────────────────────────── */
.open {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-top: clamp(32px, 6svh, 72px); padding-bottom: clamp(32px, 6svh, 72px);
}
.open .obj img { max-height: 52svh; width: auto; max-width: 100%; margin: 0 auto; }
.open .obj.tall img { max-height: 56svh; }
/* the TV words are placed in percent of .obj, so .obj has to be exactly the picture's size: when
   the height cap narrowed the picture inside a wider box, the words slid off their screens */
.open .obj.tvs { width: 100%; max-width: calc(52svh * 1600 / 1097); margin-inline: auto; }
.open .obj.tvs img { max-height: none; width: 100%; }
.open-copy { margin: 0; font-weight: inherit; }
.open-copy .slogan { margin-bottom: 0; }

.group { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 36px 28px; margin-top: 24px; }
/* cards in a row line up: the picture, the title and the price share rows */
.card { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 0; text-decoration: none; }
.card-im { position: relative; aspect-ratio: 1; }
/* any proportion fits the square: portrait caps and posters, square tees and mugs */
.card-im img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; transition: transform .4s var(--ease); }
.card-im.lift img { filter: var(--lift-s); }
.card.tagged { grid-row: span 4; }
.card-c { margin-top: 12px; color: var(--grey); font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.card-c + .card-t { margin-top: 4px; }
.picks { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.picks .slogan { margin: 0; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-t { font: 600 15px/1.3 var(--sans); margin-top: 12px; }
.card-p { font: 500 15px/1.3 var(--sans); color: var(--grey); margin-top: 4px; align-self: end; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .card:hover .card-im img { transform: translateY(-3px) scale(1.02); } }
/* a poster in the room, laid over the flat sheet and brought up on hover. A tap is not a hover: on a
   touch screen :hover latches on the last thing touched, so the room stays behind (hover: hover) */
.card-im img.card-room { inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: none; transform: none !important; transition: opacity .28s var(--ease); }
@media (hover: hover) { .card:hover .card-im img.card-room { opacity: 1; } }
.card:focus-visible .card-im img.card-room { opacity: 1; }
@media (max-width: 760px) {
  .open { grid-template-columns: 1fr; }
  .open .obj img, .open .obj.tall img { max-height: 40svh; }
  .open .obj.tvs { max-width: calc(40svh * 1600 / 1097); }
  .open .obj.tvs img { max-height: none; }
  .grid, .grid.four { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .card-t, .card-p { font-size: 14px; }
}

/* ── the footer ──────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--grey); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot .brand { color: var(--ink); margin-right: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.foot nav a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { color: var(--ink); } }

/* ── the product panel, over the page ────────────────────────── */
dialog { padding: 0; border: 0; color: var(--ink); background: #fff; }
dialog::backdrop { background: rgba(17, 17, 17, .38); }
.panel { width: min(1040px, calc(100vw - 32px)); max-height: calc(100svh - 32px); border-radius: 16px; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.panel[open] { animation: rise .28s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.gallery { padding: clamp(16px, 3vw, 32px); }
.gallery-main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.gallery-main[data-zoom="true"] { cursor: zoom-out; }
.gallery-main img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform .28s var(--ease); }
.gallery-main.lift img { filter: var(--lift); }
.gallery-main[data-zoom="true"] img { transform: scale(2.4); }
/* a finger cannot hover, so the sign that a photo opens is drawn */
@media (hover: none) {
  .gallery-main::after { content: '+'; position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 500 20px/30px var(--sans); text-align: center; }
}
/* the photo on the whole screen, assets/zoom.js: the ground is set from the panel */
.zoom { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; touch-action: none; }
.zoom-pic { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .28s var(--ease); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.zoom-x { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; font: 500 22px/1 var(--sans); }
@media (prefers-reduced-motion: reduce) { .gallery-main img, .zoom-pic { transition: none; } }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumbs button { width: 64px; height: 64px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.info { padding: clamp(20px, 3vw, 40px); padding-left: clamp(4px, 1vw, 12px); display: flex; flex-direction: column; gap: 18px; }
.info h2 { font: 800 clamp(26px, 2.8vw, 36px)/1.05 var(--sans); letter-spacing: -.03em; margin: 4px 0 0; padding-right: 44px; }
.price { margin: 0; font: 600 20px/1 var(--sans); font-variant-numeric: tabular-nums; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 10px; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-select { width: 100%; padding: 12px 40px 12px 16px; border: 1px solid var(--line); border-radius: 999px; background-color: #fff; color: var(--ink); cursor: pointer; font: 500 16px/1.2 var(--sans); appearance: none; -webkit-appearance: none; background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px,6px 6px;background-repeat:no-repeat; }
@media (hover: hover) and (pointer: fine) { .opt-select:hover { border-color: var(--ink); } }
.opt-list button {
  min-width: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font: 500 14px/1 var(--sans); transition: border-color .15s, background-color .15s, color .15s;
}
.opt-list button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .opt-list button:hover { border-color: var(--ink); } }
.add { width: 100%; padding: 16px 22px; }
.note { margin: -8px 0 0; font-size: 13px; color: var(--grey); min-height: 1.3em; }
.facts { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.facts li { display: flex; justify-content: space-between; gap: 24px; padding: 9px 0; border-top: 1px solid var(--line); }
.facts li span:first-child { flex: none; padding-top: 2px; color: var(--grey); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.facts li span:last-child { text-align: right; }
.drawers { margin-top: -18px; }
.drawer { border-top: 1px solid var(--line); }
.drawer:last-child { border-bottom: 1px solid var(--line); }
.drawer summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; cursor: pointer; list-style: none; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: '+'; font-size: 18px; font-weight: 500; color: var(--grey); transition: transform .28s var(--ease); }
.drawer[open] summary::after { transform: rotate(45deg); }
.drawer-body { padding: 2px 0 14px; font-size: 14px; color: var(--ink-2); }
.drawer-body p { margin: 0 0 8px; }
.sizes { width: 100%; margin-bottom: 14px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sizes caption { margin-bottom: 4px; text-align: left; color: var(--grey); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.sizes th, .sizes td { padding: 5px 0; border-top: 1px solid var(--line); text-align: right; font-weight: 400; }
.sizes th { color: var(--grey); }
.sizes th:first-child, .sizes td:first-child { text-align: left; }
@media (prefers-reduced-motion: reduce) { .drawer summary::after { transition: none; } }
.x {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: 500 22px/1 var(--sans);
}
@media (max-width: 760px) {
  .panel { width: 100vw; max-width: 100vw; max-height: 94svh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .panel-grid { grid-template-columns: 1fr; }
  .info { padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); }
  /* small enough that Add to cart is on the first screen of the sheet */
  .gallery { padding: 12px 16px 0; }
  .gallery-main { aspect-ratio: auto; height: min(30svh, 76vw); }
  .thumbs { margin-top: 6px; }
  .thumbs button { width: 48px; height: 48px; }
  .info { gap: 14px; }
}

/* ── the cart, from the right ─────────────────────────────────── */
.cart { width: min(440px, 100vw); max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0 0 0 auto; }
.cart[open] { display: flex; flex-direction: column; animation: slide .28s var(--ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font: 800 20px/1 var(--sans); margin: 0; }
.cart-head .x { position: static; float: none; margin: 0; }
.lines { list-style: none; margin: 0; padding: 0 20px; overflow: auto; flex: 1; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-im { width: 72px; height: 72px; display: grid; place-items: center; }
.line-im img { width: 100%; height: 100%; object-fit: contain; }
.line-t { font: 600 14px/1.3 var(--sans); margin: 0; }
.line-o { font-size: 13px; color: var(--grey); margin: 2px 0 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty span { min-width: 20px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.line-p { font: 600 14px/1 var(--sans); text-align: right; font-variant-numeric: tabular-nums; }
.line-x { display: block; margin-top: 10px; border: 0; background: none; padding: 0; color: var(--grey); font-size: 13px; text-decoration: underline; cursor: pointer; }
.cart-foot { padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sum { display: flex; justify-content: space-between; font: 600 16px/1 var(--sans); }
.cart-empty { padding: 28px 20px; color: var(--grey); }

/* ── reduced motion: nothing moves ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The legal pages: long text at a reading width, in the site's own type. */
.legal { max-width: 720px; padding-top: 40px; padding-bottom: 64px; line-height: 1.55; }
.legal h1 { font-size: 34px; line-height: 1.1; margin: 0 0 20px; }
.legal h2 { font-size: 22px; line-height: 1.2; margin: 36px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 22px; }

/* Shipping, returns and payment, above the footer of every page. The payment marks are the
   schemes' own files (public/img/pay), so the row adds only the spacing and a hairline. */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.trust > div { padding: clamp(36px, 5vw, 64px) var(--gutter); border-right: 1px solid var(--line); text-align: center; }
.trust > div:last-child { border-right: 0; }
.trust-mark { display: block; line-height: 0; }
.trust h3 { margin: 14px 0 8px; font: 600 16px/1.2 var(--sans); }
.trust p { margin: 0; font-size: 15px; color: var(--grey); }
.pay { display: flex; justify-content: center; gap: 5px; margin: 0 auto; max-width: 306px; }
.pay img { flex: 0 1 38px; min-width: 0; width: 38px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 860px) {
  .trust { grid-template-columns: 1fr; }
  .trust > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust > div:last-child { border-bottom: 0; }
}
