/* caioms.info — "daylight cyberpunk"
   White page, near-black ink, one neon accent. Remove every cyber touch and it should still be a good plain site. */

@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #0a0a0f;
  --muted: #5b5b66;
  --rule: #e6e6ea;
  --accent: #d4005a;   /* links, active nav — 5.3:1 on white */
  --neon: #ff2a6d;     /* decorative only */
  --cyan: #05d9e8;     /* decorative only */

  --font-display: "Chakra Petch", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --text: 680px;
  --wide: 1100px;
  --gutter: 16px;
  --cut: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--neon); color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- links: glitch on hover ---------- */
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-shadow .15s; }
a:hover { text-shadow: 1px 0 var(--neon), -1px 0 var(--cyan); }
a:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

/* ---------- layout ---------- */
.wrap { max-width: calc(var(--text) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 18px; }
.wordmark { font: 700 22px/1 var(--font-display); letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--accent); }
.wordmark:hover { text-shadow: 1px 0 var(--neon), -1px 0 var(--cyan); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 400 12.5px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a i { font-style: normal; color: var(--rule); margin-right: 4px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--neon); }
.nav a[aria-current="page"] i { color: var(--accent); }

/* ---------- type ---------- */
main, main.wrap { padding-top: 56px; padding-bottom: 72px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: 1.5rem; margin-top: 6px; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; line-height: 1.55; margin-top: 18px; }

.cursor::after {
  content: ""; display: inline-block; width: .5em; height: .82em; margin-left: .08em;
  background: var(--neon); vertical-align: -.04em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.label {
  display: block; font: 400 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.label b { font-weight: 400; color: var(--accent); }

section { border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 22px; }
section > .label { margin-bottom: 14px; }

/* ---------- elsewhere links ---------- */
.elsewhere { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; font: 400 13px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.elsewhere a { text-decoration: none; color: var(--ink); }
.elsewhere a::after { content: " ↗"; color: var(--accent); }
.elsewhere a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-top: 20px; padding-bottom: 36px; font: 400 11.5px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- photography ---------- */
.hero-photo { margin: 36px 0 0; }
.gallery { columns: 2 340px; column-gap: 14px; margin-top: 8px; }
.shot { break-inside: avoid; margin: 0 0 14px; position: relative; }
.shot a { display: block; text-shadow: none; }
.shot img { width: 100%; background: #f3f3f5; }
.shot figcaption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 5px 12px 5px 9px;
  background: var(--ink); color: #fff;
  font: 400 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  border-left: 2px solid var(--neon);
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
  pointer-events: none;
}
.shot:hover figcaption, .shot:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .shot figcaption { opacity: 1; transform: none; } }

/* ---------- recommendations ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0 0; padding: 0; list-style: none; font: 400 12.5px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.tabs a { text-decoration: none; color: var(--muted); }
.tabs a:hover { color: var(--accent); }
.recs { list-style: none; margin: 0; padding: 0; }
.recs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 9px 0; border-bottom: 1px dashed var(--rule); }
.recs li:last-child { border-bottom: 0; }
.recs .t { font-weight: 600; }
.recs .a { order: 1; flex: 1; color: var(--muted); font-size: .92rem; }
.recs .y { order: 2; font: 400 12.5px/1.6 var(--font-mono); color: var(--muted); white-space: nowrap; }
.recs .note { order: 3; flex-basis: 100%; color: var(--muted); font-style: italic; font-size: .95rem; margin: 4px 0 2px; padding-left: 12px; border-left: 2px solid var(--neon); }
@media (max-width: 520px) { .recs .a { flex-basis: 100%; order: 3; } .recs .y { margin-left: auto; } .recs .note { order: 4; } }
.recs--plain .note { font-style: normal; }
.recs--plain .note i { font-style: italic; }
.recs .passage { display: block; quotes: none; margin-top: 8px; font-family: var(--font-mono); font-style: normal; font-size: .82rem; line-height: 1.6; color: var(--ink); }

/* ---------- built ---------- */
.cards { display: grid; gap: 16px; margin-top: 8px; }
.card {
  position: relative; padding: 20px 22px 18px; background: var(--ink);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.card::before { /* 1px "border" that survives the clip */
  content: ""; position: absolute; inset: 1px; background: var(--bg);
  clip-path: polygon(0 0, calc(100% - 15.6px) 0, 100% 15.6px, 100% 100%, 0 100%);
}
.card > * { position: relative; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 8px 0 12px; }
.card .meta { font: 400 11.5px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card .meta b { font-weight: 400; color: var(--accent); }
.draft { color: var(--neon); }

/* ---------- 404 ---------- */
.lost h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cursor::after { animation: none; }
  a, .shot figcaption { transition: none; }
  a:hover { text-shadow: none; }
}

/* ---------- local review helper (only shown on localhost, see play.js) ---------- */
.play { position: fixed; right: 12px; bottom: 12px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 12px; font: 400 11px/1.9 var(--font-mono); text-transform: uppercase; letter-spacing: .06em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); border-left: 2px solid var(--neon); }
.play button { font: inherit; background: none; color: #fff; border: 1px solid #444; padding: 1px 7px; margin-left: 4px; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.play button[aria-pressed="true"] { border-color: var(--neon); color: var(--neon); }
.play a { font: inherit; color: #fff; border: 1px solid #444; padding: 1px 7px; margin-left: 4px; text-decoration: none; }
.play a:hover { text-shadow: none; }
.play a.on { border-color: var(--neon); color: var(--neon); }
html.show-new .is-new { background: linear-gradient(90deg, rgba(255,42,109,.08), transparent); box-shadow: inset 2px 0 0 var(--neon); padding-left: 8px; }
