/* fonts: self-hosted latin subsets (SIL Open Font License 1.1, see /fonts/OFL-*.txt) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
/* A night desert drawn live, with a short column of cards over it. One dark look by choice. */
:root {
  color-scheme: dark;
  --bg: #080504;
  --text: #ecdcc4;
  --muted: rgba(236, 220, 196, 0.62);
  --accent: #f2a53b;                    /* amber */
  --hi: #ffe3b6;
  --line: rgba(242, 165, 59, 0.22);
  --card: rgba(14, 8, 5, 0.66);
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
/* while the DeFi card is open: eyes of blue */
body.ibad { --accent: #8ab8ff; --hi: #dde9ff; --line: rgba(138, 184, 255, 0.28); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--accent); color: var(--bg); }
canvas#desert { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 5, 4, 0.9) 0, rgba(8, 5, 4, 0.7) 34%, rgba(8, 5, 4, 0) 66%),
              repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0 1px, rgba(0, 0, 0, 0) 1px 3px); }

main { position: relative; z-index: 2; box-sizing: border-box; width: min(100%, 600px); min-height: 100dvh; margin-left: clamp(0px, 5vw, 88px);
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding-block: 56px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.kicker { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); transition: color 0.8s; }
h1 { margin: 2px 0 8px; font: 600 clamp(64px, 17vw, 148px)/0.9 var(--display); letter-spacing: -0.01em; color: var(--hi);
  text-shadow: 0 0 28px rgba(242, 165, 59, 0.25); position: relative; transition: color 0.8s; }
h1::before, h1::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
h1::before { color: #ff6a3d; animation: g1 5s infinite steps(1); }
h1::after { color: #8ab8ff; animation: g2 4.3s infinite steps(1); }
@keyframes g1 { 0%, 94%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 95% { clip-path: inset(18% 0 58% 0); transform: translateX(4px); } 97% { clip-path: inset(62% 0 14% 0); transform: translateX(-5px); } }
@keyframes g2 { 0%, 91%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 92% { clip-path: inset(40% 0 38% 0); transform: translateX(-4px); } }
.lede { margin: 0; max-width: 40ch; font-size: 18px; color: var(--muted); text-wrap: balance; }

.cards { display: flex; flex-direction: column; gap: 10px; }
details { border: 1px solid var(--line); background: var(--card); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color 0.3s; }
details[open], details:hover { border-color: var(--accent); }
summary { list-style: none; display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary:focus-visible, .btn:focus-visible, .mail:focus-visible, .copy:focus-visible, .next:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
.n { font: 400 12px/1 var(--mono); color: var(--accent); letter-spacing: 0.08em; }
.t b { display: block; font: 600 25px/1.1 var(--display); color: var(--hi); }
.t small { display: block; font-size: 15px; color: var(--muted); }
.pm { width: 14px; height: 14px; position: relative; color: var(--accent); }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform 0.3s; }
.pm::after { transform: rotate(90deg); }
details[open] .pm::after { transform: rotate(0); }
.body { padding: 0 18px 18px calc(18px + 3ch + 16px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; animation: rise 0.35s ease-out both; }
.body p { margin: 0; max-width: 46ch; }
.body strong { color: var(--hi); font-weight: 500; }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } }
ul.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
ul.tags li { font: 400 13px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line); color: var(--text); }
ul.feat { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
ul.feat li::before { content: "◆ "; color: var(--accent); font-size: 10px; vertical-align: 2px; }
.btn { font: 500 14px/1 var(--mono); color: var(--bg); background: var(--accent); padding: 11px 14px; text-decoration: none; letter-spacing: 0.02em; transition: background 0.8s; }
.btn:hover { background: var(--hi); }
.soon { font: 400 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #ff7a4d; }

html { scroll-behavior: smooth; }
.next { align-self: flex-start; font: 500 12px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); text-decoration: none; padding: 10px 0; animation: bob 2.4s ease-in-out infinite; }
.next:hover { color: var(--hi); }
@keyframes bob { 50% { transform: translateY(4px); } }

/* the second screen: the ask, alone */
.close { position: relative; z-index: 2; box-sizing: border-box; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; text-align: center;
  padding-block: 72px calc(64px + env(safe-area-inset-bottom, 0px)); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  background: radial-gradient(ellipse 70% 60% at 50% 48%, rgba(8, 5, 4, 0.86), rgba(8, 5, 4, 0.55) 60%, rgba(8, 5, 4, 0)); }
.asks { margin: 0; display: flex; flex-direction: column; gap: 0.06em; font: 600 clamp(40px, 6.6vw, 100px)/1 var(--display); color: var(--hi); text-shadow: 0 0 36px rgba(242, 165, 59, 0.22); transition: color 0.8s; }
@media (min-width: 721px) { .asks span { white-space: nowrap; } }
@media (max-width: 720px) { .asks { gap: 0.4em; } .asks span { text-wrap: balance; } }
.asks i { font-style: normal; color: var(--accent); transition: color 0.8s; }
.btn.big { font: 600 clamp(21px, 2.6vw, 25px)/1 var(--display); padding: 20px 28px; box-shadow: 0 0 36px rgba(242, 165, 59, 0.3); }
.close .row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }
.mail { font: 600 clamp(24px, 5vw, 30px)/1.1 var(--display); color: var(--hi); text-decoration: none; border-bottom: 2px solid var(--accent); overflow-wrap: anywhere; }
.mail:hover { color: var(--accent); }
.copy { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: transparent; border: 1px solid var(--line); padding: 9px 12px; cursor: pointer; border-radius: 0; }
.copy:hover { border-color: var(--accent); }
.close:target .btn.big { animation: ping 1.2s ease-out 2; }
@keyframes ping { 50% { box-shadow: 0 0 64px var(--accent); } }


@media (max-width: 720px) {
  .scrim { background: linear-gradient(180deg, rgba(8, 5, 4, 0.55), rgba(8, 5, 4, 0.82) 30%, rgba(8, 5, 4, 0.82) 70%, rgba(8, 5, 4, 0.5)),
                       repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0 1px, rgba(0, 0, 0, 0) 1px 3px); }
  main { margin-left: 0; justify-content: flex-start; padding-block: 40px; }
  .scrim { transition: opacity 1s; }
  body.ibad .scrim { opacity: 0.4; }
  body.ibad details { background: rgba(3, 6, 16, 0.38); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
  body.ibad ul.tags li { background: rgba(3, 6, 16, 0.72); }
  .body { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  h1::before, h1::after, .body, .next, .close:target .btn.big { animation: none; }
  html { scroll-behavior: auto; }
  .pm::before, .pm::after, .scrim { transition: none; }
}

/* the 404 page: no canvas, just the night sky's gradient */
body.lost { background: linear-gradient(180deg, #040203 0%, #120806 45%, #2e160a 75%, #55290f 100%) fixed; }
body.lost h1 { font-size: clamp(48px, 11vw, 112px); }
body.lost main { gap: 28px; }
body.lost .btn { align-self: flex-start; }
