@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/bitter-normal-400.woff2) format('woff2'); }
@font-face { font-family: 'Bitter'; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/bitter-italic-700.woff2) format('woff2'); }
@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/bitter-normal-700.woff2) format('woff2'); }
:root {
  --yellow: #E9B824;
  --black: #0a0a0a;
  --bg: #c3cbd2;
  --fox: #C8451E;
  --ink: #111;
  --paper: #F4F1EA;
  --mono: "Courier New", Courier, ui-monospace, monospace;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* 1080p is the reference: above it, everything scales up with the screen so 1440p and 4K keep the same proportions */
html { font-size: max(16px, .8333vw); }
body { background: var(--bg); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* the quote: fixed behind everything, never scrolls */
/* svh: the height with the phone's browser toolbar showing. It never changes while scrolling, so the quote does not jump. */
.bg { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; z-index: 0; display: flex; align-items: center; padding: calc(3.5rem + 2vh) 4vw 3vh; pointer-events: none; }
.bg blockquote { width: 100%; color: var(--yellow); font-style: italic; font-weight: 700; font-size: 6vw; line-height: .96; letter-spacing: -.02em; }
.fox { color: var(--fox); }

.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 3.5rem; padding: 0 4vw; background: var(--black); }
.brand { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; text-decoration: none; color: var(--yellow); }
.bar .fox { color: #E2562B; }
.fox-btn { all: unset; cursor: pointer; display: block; line-height: 0; padding: .3rem .2rem; }
.fox-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.fox-btn:hover .walker { filter: brightness(1.25); }
.walker { height: 2.8rem; width: auto; }
/* scrolled: the bar and the wordmark fade away, the fox stays */
.bar { transition: background-color .3s; }
.brand { transition: opacity .3s; }
.bar.scrolled { background: transparent; pointer-events: none; }
.bar.scrolled .brand { opacity: 0; }
.bar.scrolled .fox-btn { pointer-events: auto; }

/* pieces scroll over it */
main { position: relative; z-index: 2; padding: 2.5rem 5vw 14vh; display: flex; flex-direction: column; gap: 22vh; }
.piece { all: unset; display: block; cursor: pointer; position: relative; width: max(27vw, min(38vw, 520px)); }
.piece:nth-child(odd)  { align-self: flex-start; margin-left: 4vw; }
.piece:nth-child(even) { align-self: flex-end; margin-right: 4vw; }
.piece:nth-child(3n)   { width: max(21.9vw, min(30vw, 420px)); }
.piece:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.piece .ph { position: relative; aspect-ratio: 3 / 4; background: #d9d7d2; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.piece img { width: 100%; height: 100%; object-fit: cover; }
.piece .line { display: flex; justify-content: space-between; margin-top: .7rem; padding: .35rem .6rem; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; width: max-content; max-width: 100%; gap: 1.5rem; }
.piece .line b { color: var(--yellow); }
.piece.sold img { filter: grayscale(1) brightness(.55); }
.piece.sold .ph::after { content: "SOLD"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: clamp(2.5rem, 7vw, 6rem); letter-spacing: .08em; color: var(--paper); transform: rotate(-12deg); text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.piece.sold .line b { color: #777; text-decoration: line-through; }

footer { position: relative; z-index: 2; text-align: center; padding: 0 1rem 3rem; }
footer a { display: inline-block; background: var(--ink); color: var(--paper); padding: .4rem .8rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .15em; text-decoration: none; }
footer a:hover { color: var(--yellow); }

/* detail */
dialog { border: none; margin: auto; width: min(56rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); background: var(--paper); color: var(--ink); overflow: auto; }
dialog[open] { display: grid; grid-template-columns: 1.1fr 1fr; }
dialog::backdrop { background: rgba(0,0,0,.8); }
.close { position: absolute; top: .5rem; right: .75rem; z-index: 2; background: var(--ink); color: var(--yellow); border: none; width: 2.4rem; height: 2.4rem; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.p-photos { display: flex; flex-direction: column; gap: 3px; background: var(--ink); }
.p-photos img { width: 100%; height: auto; background: #d9d7d2; }
.p-info { position: sticky; top: 0; align-self: start; min-height: min(100%, 36rem); padding: 2.5rem 2rem; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.p-no, .p-meta, .p-price, .btn { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.p-no { font-size: .75rem; color: #6b6860; }
.p-info h1 { font-size: 2.2rem; line-height: 1.05; }
.p-meta { font-size: .8rem; }
.p-price { font-size: 1.6rem; font-weight: 700; letter-spacing: 0; }
.btn { display: inline-block; background: var(--ink); color: var(--yellow); padding: .85rem 1.5rem; font-weight: 700; font-size: .85rem; text-decoration: none; border: 2px solid var(--ink); margin-top: auto; }
.btn:hover { background: transparent; color: var(--ink); }
.btn.off { background: transparent; border-color: #8a8780; color: #8a8780; pointer-events: none; }

@media (max-width: 760px) {
  main { gap: 14vh; }
  .piece, .piece:nth-child(3n) { width: 74vw; margin-left: 0; margin-right: 0; }
  .piece:nth-child(odd) { align-self: flex-start; }
  .piece:nth-child(even) { align-self: flex-end; }
  dialog[open] { grid-template-columns: 1fr; }
}

/* about */
#about[open] { display: block; width: min(46rem, calc(100% - 1.5rem)); background: var(--ink); color: var(--paper); padding: 3.5rem 2.25rem 2.75rem; }
#about .close { background: var(--yellow); color: var(--ink); }
#about blockquote { font-weight: 700; font-style: italic; color: var(--yellow); font-size: clamp(1.9rem, 5.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.01em; }
#about .fox { color: #E2562B; }
#about .a-by { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(#8a8780); margin: 1.1rem 0 2.25rem; }
#about p { font-weight: 400; font-size: 1.08rem; line-height: 1.6; max-width: 38rem; }
#about p + p { margin-top: 1.1rem; }
#about p.a-by + p { margin-top: 0; }
#about .a-give { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 2px solid var(--yellow); }

/* shop (2026-10-20): only drawn when /api/shop/state says enabled */
.p-sub { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #6b6860; }
.p-sub:empty { display: none; }
#buy[open], #thanks[open] { display: block; width: min(34rem, calc(100% - 1.5rem)); }
#thanks[open] .p-info { position: static; padding: 3rem 2rem 2.5rem; }
.b-form { padding: 2.5rem 2rem 2rem; display: flex; flex-direction: column; gap: .8rem; }
.b-form h1 { font-size: 2rem; line-height: 1.05; margin-bottom: .4rem; }
.b-form label { display: flex; flex-direction: column; gap: .25rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.b-form .opt { color: #6b6860; text-transform: none; letter-spacing: 0; }
.b-form input, .b-form select { font: inherit; font-family: var(--serif); font-size: 1rem; letter-spacing: 0; text-transform: none; padding: .6rem .65rem; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; width: 100%; }
.b-form input:focus-visible, .b-form select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.b-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: .8rem; }
.b-row [hidden], .b-form [hidden] { display: none; }
.b-sum { border-top: 2px solid var(--ink); margin-top: .4rem; padding-top: .6rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.b-sum div { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.b-sum .b-total { border-top: 1px solid var(--ink); margin-top: .35rem; padding-top: .5rem; font-weight: 700; font-size: 1rem; }
.b-form .b-agree { flex-direction: row; align-items: flex-start; gap: .6rem; font-size: .75rem; letter-spacing: .04em; line-height: 1.35; margin-top: .3rem; }
.b-form .b-agree input { width: 1.2rem; height: 1.2rem; margin-top: .05rem; flex: none; accent-color: var(--ink); }
.b-err { color: #9b1c1c; font-weight: 700; min-height: 1.2em; font-size: .95rem; }
.b-fine { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #6b6860; }
#b-pay { align-self: flex-start; cursor: pointer; margin-top: 0; font-family: var(--mono); }
#b-pay:disabled { opacity: .55; cursor: progress; }
@media (max-width: 760px) {
  .b-row { grid-template-columns: 1fr 1fr; }
  .b-row label:first-child { grid-column: 1 / -1; }
  .b-form { padding: 2.75rem 1.25rem 1.5rem; }
}
