/* /logan — ggstudios.org look: monochrome, Quad Black pixel type, WebGPU effects. */
@font-face { font-family: "Quad Black"; font-weight: 400 900; font-display: block; src: url(/fonts/quad-black.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter Variable"; font-weight: 100 900; font-display: swap; src: url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2) format("woff2"); }

:root {
  --bg: #fff; --fg: #0a0a0a; --muted: #737373; --border: #e5e5e5; --radius: .625rem;
  --sans: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  --head: Archivo, "Inter Variable", sans-serif;
  --quad: "Quad Black", Archivo, sans-serif;
}
.dark { --bg: #05060a; --fg: #fafafa; --muted: #a1a1a1; --border: #ffffff1a; background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, p { margin: 0; }
svg { display: block; }
::selection { background: #0a0a0a; color: #fafafa; }

.wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
.quad { font-family: var(--quad); font-weight: 400; }

.skip { position: fixed; top: .75rem; left: .75rem; z-index: 60; transform: translateY(-5rem); background: #0a0a0a; color: #fff; padding: .5rem .75rem; border-radius: .5rem; font-size: .875rem; transition: transform .15s; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid #a1a1a180; outline-offset: 2px; border-radius: 4px; }

/* ── header ── */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; color: #fafafa; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, color .3s; }
.bar.solid { background: #05060acc; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: #ffffff1a; }
.bar.light { background: #ffffffd9; color: #0a0a0a; border-color: #e5e5e5; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar-in { display: flex; align-items: center; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; }
.brand svg { width: 2.25rem; height: auto; flex-shrink: 0; }
.brand .quad { font-size: 1.05rem; line-height: 1; white-space: nowrap; }

/* ── canvases ── */
.fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ── hero: the particles ARE the heading; the real <h1> stays for screen readers / no-GPU ── */
.hero { position: relative; height: 100svh; min-height: 32rem; overflow: hidden; isolation: isolate; display: grid; place-items: center; touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.hero .fx { z-index: -1; }
.hero-name { font-size: clamp(3rem, 15vw, 13rem); line-height: .95; text-align: center; padding: 0 1rem; }
.gpu .hero-name { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── about ── */
.sec { padding: 7rem 0; }
.about { max-width: 46rem; }
.eyebrow { font-size: .875rem; font-weight: 500; color: var(--muted); margin-bottom: .75rem; }
.h2 { font-family: var(--head); font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; font-weight: 600; letter-spacing: -.025em; }
.prose { margin-top: 1.5rem; display: grid; gap: 1rem; color: var(--muted); font-size: 1.125rem; text-wrap: pretty; }

/* ── big scotland ── */
.scot { position: relative; height: max(130svh, 56rem); overflow: hidden; }
.scot .fx { cursor: crosshair; }

/* ── footer ── */
.foot { border-top: 1px solid #ffffff1a; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.social { display: flex; gap: .25rem; }
.social a { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .5rem; color: var(--muted); transition: background-color .15s, color .15s; }
.social a:hover { background: #ffffff14; color: var(--fg); }
.social svg { width: 1rem; height: 1rem; }
.foot-legal { padding-bottom: 2.5rem; font-size: .75rem; color: var(--muted); }
.foot-legal a { text-underline-offset: 3px; }

/* ── reveal on scroll ── */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ── ?edit mode ── */
.editing [data-edit] { outline: 1.5px dashed #8a8a8a; outline-offset: 4px; border-radius: 3px; cursor: text; }
.editing [data-edit]:hover { outline-color: #3b82f6; }
.editing [data-edit]:focus { outline: 2px solid #3b82f6; }
.editbar { position: fixed; z-index: 70; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 2rem); padding: .5rem .5rem .5rem 1rem; border-radius: .875rem; background: #0a0a0af2; color: #fafafa; border: 1px solid #ffffff26; box-shadow: 0 20px 50px -20px #000; font-size: .8125rem; }
.editbar button { font: inherit; font-weight: 500; height: 2rem; padding: 0 .75rem; border-radius: .5rem; border: 1px solid #ffffff26; background: #ffffff12; color: inherit; cursor: pointer; }
.editbar button:hover { background: #ffffff26; }
.editbar button.primary { background: #fafafa; color: #0a0a0a; border-color: transparent; }
.editbar .status { color: #a1a1a1; min-width: 6rem; }
