/* kinda — styles */

:root {
  /* kinda palette — from the K logo */
  --bg: #eecca1;      /* tan */
  --ink: #6e4333;     /* brown */
  --muted: #7d5340;
  --line: #c9a27c;
  --tile: #f4dcbc;
  --accent: #6e4333;
  --night: #6e4333;
  --paper: #eecca1;

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --pad: 24px;
  --gap: 6px;
  --hd: 104px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hd); }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 11px/1.35 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
button { cursor: pointer; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* type */
.caps {
  text-transform: uppercase;
  font-stretch: 75%;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mono { font-family: var(--mono); font-size: 11px; line-height: 1.5; font-weight: 400; }
.muted { color: var(--muted); }
.u:hover, .hd a:hover, .hd button:hover, .link:hover { text-decoration: underline; text-underline-offset: 2px; }
.rule { border: 0; border-top: 1px dashed var(--line); }

/* ---------- header ---------- */
.hd {
  position: sticky; top: 0; z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 14px var(--pad) 14px;
  background: var(--bg);
  border-bottom: 1px dashed var(--line);
}
.hd nav { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.hd nav.r { align-items: flex-end; }
.hd [aria-current="page"] { text-decoration: line-through; }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
/* wordmark: the script K is the first letter of "kinda" */
.brand .word {
  display: inline-flex; align-items: flex-end;
  font-size: 40px; line-height: .8;
  font-weight: 700; font-stretch: 62%;
  letter-spacing: -0.02em;
  text-transform: none;
}
.brand .word .k { width: auto; height: 1.2em; margin-right: -0.04em; }
.brand .word span { padding-bottom: 0.06em; letter-spacing: 0.06em; }
.brand .sub { font-size: 10px; line-height: 1.2; }
.hd .m { display: none; }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 25;
  background: var(--bg);
  padding: calc(var(--hd) + 16px) var(--pad) var(--pad);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu a { font-size: 40px; line-height: 1; font-stretch: 62%; }

/* ---------- sections ---------- */
.sec { padding: 22px var(--pad) 14px; display: grid; gap: 6px; }
.sec .mono { max-width: 680px; }
.sec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.more { padding: 6px var(--pad) 0; text-align: right; }

/* hero */
.hero { padding: var(--gap) var(--pad) 0; }
.hero .frame { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--night); }
.hero .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,0,1); }
.hero a:hover img { transform: scale(1.015); }
.hero .cap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0 0; }

/* ---------- product grid ---------- */
.toolbar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 12px var(--pad);
}
.toolbar .opts { display: flex; gap: 12px; flex-wrap: wrap; }
.toolbar .opts a, .toolbar .opts button { color: var(--muted); }
.toolbar .opts .on { color: var(--ink); }
.toolbar .opts a:hover, .toolbar .opts button:hover { color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--pad);
}
.grid[data-view="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid[data-view="8"] { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.grid[data-view="8"] .tile-cap { display: none; }

.tile { display: block; }
.tile .img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.tile .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .img img { transition: opacity .25s; }
.tile .img img.alt { opacity: 0; }
.tile:hover .img img.alt { opacity: 1; }
/* fade the first image out too, so transparent cut-outs don't show through each other */
.tile:hover .img img:not(.alt):has(~ img.alt) { opacity: 0; }
.tag { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 10px; }
.tag.light { color: var(--paper); }
.tile-cap { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0 16px; }
.tile-cap .t { min-width: 0; }
.tile.sold .tile-cap { color: var(--muted); }

/* ---------- product page ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--pad);
  padding: var(--gap) var(--pad) 0;
}
.gallery { display: grid; gap: var(--gap); }
.gallery .img { aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.gallery .img img { width: 100%; height: 100%; object-fit: cover; }
.info {
  position: sticky; top: calc(var(--hd) + 18px); align-self: start;
  display: grid; gap: 18px; max-width: 460px; padding-top: 12px;
}
.info h1 { font-size: 26px; line-height: .95; font-stretch: 62%; }
.info .price { font-size: 13px; }
.specs { display: grid; grid-template-columns: 112px 1fr; border-top: 1px dashed var(--line); }
.specs dt, .specs dd { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); }
.btn {
  display: block; width: 100%;
  background: var(--ink); color: var(--bg);
  padding: 14px 16px; text-align: center;
  transition: background .15s;
}
.btn:hover { background: #5a3528; }
.btn[disabled] { background: var(--tile); color: var(--muted); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.crumbs { display: flex; gap: 6px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* ---------- projects index ---------- */
.plist { padding: 0 var(--pad); }
.prow {
  display: grid;
  grid-template-columns: 44px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 2.4fr) 56px;
  gap: 14px; align-items: baseline;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  transition: opacity .15s;
}
.prow:last-child { border-bottom: 1px dashed var(--line); }
.plist:hover .prow { opacity: .3; }
.plist .prow:hover { opacity: 1; }
.prow .yr { text-align: right; }
.plist-head { color: var(--muted); border-top: 0; }
.plist:hover .plist-head { opacity: 1; }
.peek {
  position: fixed; z-index: 35; width: 280px; aspect-ratio: 3 / 2;
  pointer-events: none; opacity: 0; transition: opacity .15s;
  background: var(--tile);
}
.peek.on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- project page ---------- */
.proj-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--pad); padding: 22px var(--pad) 24px;
}
.proj-title { font-size: clamp(40px, 7vw, 112px); line-height: .84; font-stretch: 62%; letter-spacing: -0.01em; }
.proj-side { display: grid; gap: 16px; align-content: start; }
.proj-side .mono p + p { margin-top: 10px; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding: 0 var(--pad); }
.fig.full { grid-column: 1 / -1; }
.fig .img { overflow: hidden; background: var(--tile); aspect-ratio: 3 / 2; }
.fig.half .img { aspect-ratio: 4 / 5; }
.fig .img img { width: 100%; height: 100%; object-fit: cover; }
.fig figcaption { padding: 6px 0 10px; }
.next {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 40px var(--pad) 0; padding: 14px 0; border-top: 1px dashed var(--line);
}
.next .big { font-size: clamp(28px, 4vw, 56px); line-height: .9; font-stretch: 62%; }
.next:hover .big { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pad); padding: 22px var(--pad); }
.about .lede { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.02; font-stretch: 75%; font-weight: 500; max-width: 18em; }
.about .mono p + p { margin-top: 12px; }
.about .col { display: grid; gap: 24px; align-content: start; }

/* ---------- mark + clock ---------- */
.signoff { display: grid; justify-items: center; gap: 10px; padding: 64px var(--pad) 28px; }
.signoff .k { width: auto; height: 40px; }

/* ---------- footer ---------- */
.ft { background: var(--night); color: var(--paper); padding: 26px var(--pad) 22px; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 40px; }
.ft form { display: grid; gap: 14px; }
.ft .mono { color: #e6c299; }
.ft input {
  width: 100%; padding: 8px 0;
  border-bottom: 1px solid var(--paper);
  text-transform: uppercase; font-stretch: 75%; font-weight: 600;
}
.ft input::placeholder { color: var(--paper); opacity: 1; }
.ft .sub { background: var(--paper); color: var(--night); padding: 12px; }
.ft .sub:hover { background: var(--tile); }
.ft-links { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.ft-links a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ft-base { display: flex; justify-content: center; margin-top: 48px; color: #d4ad84; }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(238,204,161,.75); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100%);
  background: var(--bg); border-left: 1px solid var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(101%); transition: transform .35s cubic-bezier(.2,.7,0,1);
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-hd { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px dashed var(--line); }
.lines { flex: 1; overflow-y: auto; padding: 0 20px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.line .img { aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.line .img img { width: 100%; height: 100%; object-fit: cover; }
.line .meta { display: grid; gap: 6px; align-content: start; }
.qty { display: flex; gap: 10px; align-items: center; }
.qty button { color: var(--muted); padding: 0 2px; }
.qty button:hover { color: var(--ink); }
.empty { padding: 32px 0; }
.drawer-ft { padding: 16px 20px 20px; border-top: 1px dashed var(--line); display: grid; gap: 12px; }
.drawer-ft .row { display: flex; justify-content: space-between; }
.note { color: var(--muted); }
.note.warn { color: var(--accent); }

/* homepage intro (AS IS-style: plain, short) */
.intro { display: grid; gap: 2px; padding: 20px var(--pad) 18px; }

/* floating project grid */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--pad); padding: 20px var(--pad) 0; }
.pcell { display: grid; gap: 10px; justify-items: center; text-align: center; }
.pimg { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.pimg img { width: auto; height: auto; max-width: 82%; max-height: 82%; object-fit: contain; transition: transform .4s cubic-bezier(.2,.7,0,1); }
.pcell:nth-child(3n+2) .pimg img { max-width: 62%; max-height: 62%; }
.pcell:nth-child(4n+3) .pimg img { max-width: 72%; max-height: 72%; }
.pcell:hover .pimg img { transform: scale(1.04); }
.pcap { display: grid; gap: 2px; opacity: 0; transition: opacity .2s; }
.pcell:hover .pcap, .pcell:focus-visible .pcap { opacity: 1; }
@media (hover: none) { .pcap { opacity: 1; } }

/* whole-image display for concept sheets, slides, etc. */
img.contain { object-fit: contain !important; }

/* ---------- placeholders to fill ---------- */
mark.todo { background: var(--ink); color: var(--bg); padding: 0 .3em; font: inherit; }

/* ---------- long-form product pages ---------- */
.info .tagline { margin-top: 8px; font-size: 16px; line-height: 1.1; font-stretch: 75%; font-weight: 500; }
.prose p + p { margin-top: 10px; }
.tile-sum { display: none; margin: -8px 0 18px; max-width: 52ch; }
.grid[data-view="2"] .tile-sum { display: block; }

.rows { margin-top: 56px; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--pad);
  margin: 0 var(--pad); padding: 14px 0 30px; border-top: 1px dashed var(--line);
}
.row .specs { grid-template-columns: 150px 1fr; }
.row .prose { max-width: 62ch; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pad); }
.steps .n { display: block; font-size: 48px; line-height: .85; font-stretch: 62%; margin-bottom: 10px; }
.feat { list-style: none; }
.feat li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.feat li:first-child { border-top: 1px dashed var(--line); }
.feat li::before { content: "— "; }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--pad); }
.block { display: grid; gap: 4px; align-content: start; padding: 10px 0 18px; border-top: 1px dashed var(--line); }
.faq details { border-bottom: 1px dashed var(--line); }
.faq details:first-child { border-top: 1px dashed var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 62ch; padding-bottom: 12px; }
.legal { margin: 32px var(--pad) 0; padding-top: 14px; border-top: 1px dashed var(--line); max-width: 780px; }

/* waitlist + order */
.wait, .order { display: grid; gap: 10px; }
.wait input[type="email"] { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--ink); }
.wait input::placeholder { color: var(--muted); opacity: 1; }
.order-hd { display: flex; justify-content: space-between; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; }
.sizes button { padding: 9px 0; border: 1px solid var(--line); font-family: var(--mono); }
.sizes button:hover { border-color: var(--ink); }
.sizes button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* age gate */
html.locked, html.locked body { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--pad); background: var(--bg); }
.gate-box { display: grid; justify-items: center; gap: 14px; max-width: 360px; text-align: center; }
.gate-box .k { width: auto; height: 72px; }
.gate-box > .caps { font-size: 26px; line-height: 1; font-stretch: 62%; }
.gate-btns { display: grid; gap: 6px; width: 100%; }

/* ---------- 404 ---------- */
.lost { padding: 80px var(--pad); display: grid; gap: 12px; justify-items: start; }
.lost .big { font-size: 56px; line-height: .9; font-stretch: 62%; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid[data-view="8"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .prow { grid-template-columns: 36px minmax(0, 2fr) minmax(0, 1fr) 48px; }
  .prow .sum { display: none; }
}

@media (max-width: 760px) {
  :root { --pad: 16px; --gap: 4px; --hd: 62px; }
  .hd { grid-template-columns: 1fr auto; align-items: center; padding: 12px var(--pad); }
  .hd nav { display: none; }
  .brand { align-items: flex-start; text-align: left; flex-direction: row; align-items: center; gap: 10px; }
  .brand .word { font-size: 30px; }
  .brand .sub { display: none; }
  .hd .m { display: flex; gap: 16px; }

  .grid, .grid[data-view="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid[data-view="2"] { grid-template-columns: minmax(0, 1fr); }
  .grid[data-view="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .hero .frame { aspect-ratio: 4 / 5; }
  .hero .cap { flex-direction: column; gap: 2px; }

  .pdp, .proj-head, .about, .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .info { position: static; max-width: none; }
  .gallery { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .gallery .img { scroll-snap-align: start; }

  .prow { grid-template-columns: 28px minmax(0, 1fr) 40px; }
  .prow .ty { display: none; }
  .peek { display: none; }

  .figs { grid-template-columns: minmax(0, 1fr); }
  .row, .steps, .blocks { grid-template-columns: minmax(0, 1fr); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--pad); }
  .row { gap: 12px; }
  .row .specs { grid-template-columns: 112px 1fr; }
  .ft-links { align-items: flex-start; }
}

/* buttons inherit the toolbar caps */
.toolbar button { text-transform: inherit; font-stretch: inherit; font-weight: inherit; }
.gallery [hidden] { display: none; }

/* ---------- 360 spinner ---------- */
.spin-wrap { position: relative; }
.spin {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--tile) center / cover no-repeat;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.spin.grab { cursor: grabbing; }
.spin-item {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; transform-origin: 50% 92%;
  pointer-events: none; will-change: transform, opacity;
}
.spin-colors { position: absolute; top: 10px; left: 10px; z-index: 200; display: flex; gap: 4px; }
.spin-colors button { padding: 5px 9px; border: 1px solid var(--line); background: var(--tile); text-transform: inherit; font-stretch: inherit; font-weight: inherit; }
.spin-colors button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.spin-hint { position: absolute; top: 14px; right: 12px; z-index: 200; transition: opacity .4s; }
.spin.used .spin-hint { opacity: 0; }
.spin-nav { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 200; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.spin-nav > * { pointer-events: auto; }
.spin-arrow { width: 44px; height: 44px; flex: none; border: 1px solid var(--ink); background: var(--tile); font-family: var(--sans); font-size: 16px; }
.spin-arrow:hover { background: var(--ink); color: var(--bg); }
.spin-status { position: absolute; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; min-width: 9em; }
.spin-ticks { display: flex; gap: 6px; }
.spin-ticks button { width: 22px; height: 12px; padding: 4px 0; background-clip: content-box; background-color: var(--line); }
.spin-ticks button.on { background-color: var(--ink); }
.spin-ticks button:hover { background-color: var(--muted); }
.spin:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* keep the spinner within one screen; door repeats sideways so the floor always meets the feet */
.gallery .spin .spin-item { object-fit: contain; }
.spin { background-size: auto 100%; background-repeat: repeat-x; background-position: center bottom; }
@media (min-width: 761px) {
  .gallery .spin-wrap { aspect-ratio: auto; height: min(calc(100vh - var(--hd) - 48px), 125vw); }
}
/* leave room under the feet for the arrows */
.gallery .spin .spin-item { inset: 0 0 auto 0; height: calc(100% - 44px); }
/* pose names stay for screen readers only — the ticks show position */
.spin-status [data-spin-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spin-status { gap: 0; }

/* wordmark hover: the whole thing inverts inside a box (no underline) */
.hd a.brand:hover, .hd a.brand:hover * { text-decoration: none; }
.brand .word { padding: 4px 7px 3px; transition: background-color .15s, color .15s; }
.brand:hover .word, .brand:focus-visible .word { background: var(--ink); color: var(--bg); }
.brand:focus-visible { outline: none; }
/* the K drawn from the logo file as a mask, so it takes the text color */
.brand .k-mark {
  display: block; height: 1.2em; width: calc(1.2em * 406 / 640); margin-right: -0.04em;
  background: currentColor;
  -webkit-mask: url("../img/k.png") center / contain no-repeat;
          mask: url("../img/k.png") center / contain no-repeat;
}

/* shipping page — rates table followed by notes */
.specs + .prose { margin-top: 20px; }

/* spam trap on sign-up forms — hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
