/* Shared styles. Homepage: black (like supreme.com). Inner pages: white
   and minimal (like supreme.com/news and /contact). */
:root {
  --red: #ED1C24;      /* Supreme box-logo red */
  --hot: #FF0000;      /* Supreme link-hover red */
  --mono: "Courier New", Courier, monospace;
  --logo: "Jost", Futura, "Futura PT", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --bg: #fff;
  --fg: #000;
  --muted: #777;
  --line: #ccc;
}
body[data-page="home"] { --bg: #000; --fg: #fff; --muted: #8a8a8a; --line: #333; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.08;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 400; font-size: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Supreme hover: solid red block, white text */
a:hover, a:focus-visible, button.link:hover, .hl:hover {
  background: var(--hot);
  color: #fff;
  box-shadow: 0 0 0 1px var(--hot);
  outline: none;
}
a.plain:hover, .socials a:hover, a.thumb:hover, a.card:hover,
a.plain:focus-visible, .socials a:focus-visible, a.thumb:focus-visible, a.card:focus-visible {
  background: none; box-shadow: none; color: inherit;
}
a.logo:hover, a.logo:focus-visible { background: var(--red); color: #fff; box-shadow: none; }   /* logo never changes colour */
a.card:focus-visible, a.thumb:focus-visible, a.plain:focus-visible { outline: 1px dotted var(--fg); outline-offset: 2px; }
.u { border-bottom: .5px solid currentColor; }        /* Supreme's underlined "archive" style */
.u:hover { border-color: transparent; }
.lucide, [data-lucide] { width: 12px; height: 12px; stroke-width: 1.5; flex: none; vertical-align: -2px; }

/* box logo: exactly 44px tall like supreme.com's */
.logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 10px 2px;
  background: var(--red);
  color: #fff;
  font-family: var(--logo);
  font-weight: 800;
  font-style: italic;
  font-size: 30px;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

/* ---------- inner page frame ---------- */
body:not([data-page="home"]) { height: 100vh; height: 100dvh; overflow: hidden; }
.frame { height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.scroller {
  flex: 1; min-height: 0; width: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 18px), transparent);
  outline: none;
}
.top { padding-top: 50px; text-align: center; }
.top .clock { margin-top: 16px; font-size: 13px; }
main {
  width: 100%;
  max-width: 732px;
  margin: 0 auto;
  padding: 40px 16px 40px;
}
.col { width: 408px; max-width: 100%; margin: 0 auto; }
.col-wide { width: 636px; max-width: 100%; margin: 0 auto; }

/* bottom page menu: "home ......... about experience projects" */
.pagenav {
  flex: none;
  padding-top: 16px;
  width: 636px; max-width: calc(100% - 32px);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  font-size: 13px; line-height: 1.08;
  padding-bottom: 34px;
}
.pagenav ul { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; }
.pagenav a[aria-current="page"] { font-weight: 700; }

/* footer link columns (below the fold, like supreme.com) */
.site-footer {
  width: 636px; max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 8px 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 16px;
  font-size: 11px;
}
.site-footer ul { display: grid; gap: 4px; align-content: start; }
.site-footer .r { text-align: right; }
.secret { cursor: default; user-select: none; }
.socials { display: flex; gap: 16px; }
.socials a { display: block; width: 16px; height: 16px; color: var(--muted); }
.socials a:hover { color: var(--fg); }
.socials svg { width: 16px; height: 16px; display: block; fill: currentColor; }

/* ---------- inner content building blocks ---------- */
.item { display: grid; grid-template-columns: 192px 192px; gap: 24px; width: 408px; max-width: 100%; margin: 0 auto; }
.item .media img { width: 192px; aspect-ratio: 2 / 3; object-fit: cover; }
.item .txt { display: flex; flex-direction: column; }
.item .txt .more { margin-top: auto; padding-top: 16px; display: flex; gap: 12px; }
.date { font-size: 11px; }
.title { font-size: 16px; line-height: 1.08; margin: 1px 0 10px; }
.txt p, .prose-sm p { font-size: 11px; line-height: 1.08; }
.txt p + p, .prose-sm p + p { margin-top: 11px; }
.pager { width: 192px; text-align: center; font-size: 10px; margin-top: 16px; display: flex; justify-content: center; gap: 8px; align-items: center; }
.pager button:disabled { opacity: .25; cursor: default; }
.pager button:disabled:hover { background: none; color: inherit; box-shadow: none; }

.block { margin-top: 48px; }
.block > h2 { font-size: 11px; font-weight: 700; margin-bottom: 12px; }
.rows > * + * { margin-top: 18px; }
.muted { color: var(--muted); }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); }

.list li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.list li + li { margin-top: 7px; }
.list .k { color: var(--muted); }
.entry .title { margin-bottom: 6px; }
.entry p + p { margin-top: 7px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* ---------- red curtain page transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--red);
  display: grid; place-items: center;
  color: #fff; font-family: var(--mono); font-size: 12px;
  transform: translateY(100%);
  pointer-events: none;
}
.curtain span { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease); }
.curtain.cover { transition: transform .5s var(--ease); transform: translateY(0); pointer-events: auto; }
.curtain.cover span { opacity: 1; transform: none; transition-delay: .2s; }
html.nav-in { background: var(--red); }
html.nav-in body { background: transparent; }
html.nav-in .curtain, .curtain.hold { transform: translateY(0); }
html.nav-in .curtain span, .curtain.hold span { opacity: 1; transform: none; }
.curtain.leave { transition: transform .6s var(--ease); transform: translateY(-100%); }
.curtain.leave span { opacity: 0; transition-delay: 0s; }
html.nav-in body > *:not(.curtain) { opacity: 0; }

.enter > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.enter > *:nth-child(2) { animation-delay: .06s; }
.enter > *:nth-child(3) { animation-delay: .12s; }
.enter > *:nth-child(4) { animation-delay: .18s; }
.enter > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- admin (only after the secret © login) ---------- */
.admin-dock {
  position: fixed; right: 16px; top: 16px; z-index: 900;
  display: flex; align-items: center; gap: 2px;
  background: #000; color: #fff; padding: 4px;
  font-size: 11px; animation: rise .4s both;
}
.admin-dock .who { display: flex; align-items: center; gap: 6px; padding: 0 8px; color: #aaa; }
.admin-dock .who img { width: 16px; height: 16px; border-radius: 50%; }
.admin-dock button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; color: #fff; }
.admin-dock button:hover, .admin-dock button.on { background: var(--hot); }
.admin-dock .badge { background: var(--red); padding: 0 4px; margin-left: 2px; }
body.editing main [contenteditable="true"] { outline: 1px dashed #bbb; outline-offset: 8px; }
body.editing main [contenteditable="true"]:focus { outline-color: var(--red); }
body.editing main img { cursor: copy; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1100;
  background: #000; color: #fff; padding: 8px 14px; font-size: 11px; animation: rise .3s both;
}

/* forms (contact + editor) — Supreme's contact form style */
.field { font: inherit; font-size: 11px; color: #000; background: #fff; border: 1px solid #ccc; padding: 0 12px; height: 40px; width: 100%; border-radius: 0; }
textarea.field { height: 130px; padding: 12px; resize: vertical; line-height: 1.3; }
select.field { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23000'/%3E%3C/svg%3E") no-repeat right 12px center; }
.field:focus { outline: none; border-color: #000; }
.send { background: var(--hot); color: #fff; font-weight: 700; font-size: 11px; height: 24px; padding: 0 12px; }
.send:hover { background: #000; }
.send:disabled { opacity: .5; }

.modal { position: fixed; inset: 0; z-index: 950; background: rgba(255,255,255,.96); display: grid; place-items: center; padding: 24px 16px; overflow: auto; animation: fade-in .2s both; color: #000; font-family: var(--mono); }
.modal form { width: min(700px, 100%); display: grid; gap: 16px; }
.modal h2 { font-size: 11px; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal textarea.field { height: 300px; }
.modal .hint { color: var(--muted); font-size: 10px; line-height: 1.4; }
.modal .actions { display: flex; gap: 16px; align-items: center; }

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .item { grid-template-columns: 1fr; }
  .item .media img { width: 100%; }
  .pager { width: 100%; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pagenav { justify-content: center; }
  .pagenav ul { justify-content: center; }
  .modal .row { grid-template-columns: 1fr; }
}

@media print {
  body:not([data-page="home"]), .frame { height: auto; overflow: visible; }
  .scroller { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
