/* ==========================================================================
   oneshot.show
   Deep-space palette, generous negative space, one photograph doing the work.
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/SpaceGrotesk-normal-300_700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/InstrumentSerif-normal-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/InstrumentSerif-italic-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono-normal-400_600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:            #04060b;
  --bg-lift:       #080d16;
  --panel:         rgba(255, 255, 255, 0.026);
  --panel-hover:   rgba(255, 255, 255, 0.048);
  --line:          rgba(255, 255, 255, 0.085);
  --line-strong:   rgba(255, 255, 255, 0.17);
  --text:          #e9edf4;
  --muted:         #9aa6b9;
  --dim:           #66738a;
  --accent:        #d4714e;
  --accent-soft:   rgba(212, 113, 78, 0.14);
  --earth:         #8ab8e8;

  --sans:  'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1260px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--accent-soft); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* Darken the left third so the wordmark always has a black field to sit on,
   and melt the bottom edge into the page below. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right,
      rgba(4, 6, 11, 0.45) 0%,
      rgba(4, 6, 11, 0.12) 28%,
      rgba(4, 6, 11, 0) 52%),
    linear-gradient(to bottom,
      rgba(4, 6, 11, 0.35) 0%,
      rgba(4, 6, 11, 0) 20%,
      rgba(4, 6, 11, 0) 86%,
      rgba(4, 6, 11, 0.45) 96%,
      var(--bg) 100%);
}

.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  /* Heavier bottom padding lifts the copy off the lunar horizon. */
  padding: clamp(5rem, 12vh, 9rem) var(--gutter) clamp(8rem, 19vh, 13rem);
}

.hero__copy {
  max-width: 34rem;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  margin: 0 0 clamp(1.5rem, 4vh, 2.75rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.85em;
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 8.5vw, 6.4rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-indent: 0.11em;
}

.hero__tagline {
  margin: clamp(0.9rem, 2.4vh, 1.5rem) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  line-height: 1.15;
  color: var(--earth);
  letter-spacing: 0.005em;
}

.hero__lede {
  margin: clamp(1.6rem, 4vh, 2.4rem) 0 0;
  max-width: 27rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.075rem);
  line-height: 1.72;
}

.hero__jump {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding: 0.85em 1.5em;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: rgba(4, 6, 11, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}

.hero__jump:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.hero__jump svg { transition: transform 0.35s; }
.hero__jump:hover svg { transform: translateY(3px); }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ── Main plate ──────────────────────────────────────────────────────────── */

.plate {
  position: relative;
  padding-block: clamp(5rem, 13vh, 9.5rem) clamp(4rem, 10vh, 7rem);
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-lift) 45%, var(--bg) 100%);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: start;
}

/* ── Manifesto (the side column) ─────────────────────────────────────────── */

.manifesto {
  position: sticky;
  top: clamp(2.5rem, 10vh, 6rem);
}

.manifesto__orb {
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: clamp(1.6rem, 4vh, 2.4rem);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 0 44px -6px rgba(138, 184, 232, 0.4);
}

.manifesto__orb img { width: 100%; height: 100%; object-fit: cover; }

.manifesto h2 {
  margin: 0 0 1.35rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: 0.004em;
}

.manifesto p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  max-width: 34ch;
}

.manifesto__kicker {
  margin: clamp(1.8rem, 4vh, 2.5rem) 0 0;
  padding-left: 1.15rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.42;
  color: var(--text);
  max-width: 30ch;
}

/* ── Resources ───────────────────────────────────────────────────────────── */

.section-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 clamp(1.75rem, 4vh, 2.5rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-label b {
  font-weight: 500;
  color: var(--accent);
}

.cards {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.15rem);
}

.card {
  --card-pad: clamp(1.3rem, 2.6vw, 1.9rem);
  position: relative;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.4s, background 0.4s, transform 0.4s;
}

/* Image assets lead with the image — it says more than the description does. */
.card__media {
  display: block;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) var(--card-pad);
  border-bottom: 1px solid var(--line);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  overflow: hidden;
  background: #0a0f1a;
}

.card__media img {
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card__media img { transform: scale(1.015); }

.card:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.card__top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.chip {
  flex: none;
  padding: 0.3em 0.62em;
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
  max-width: 52ch;
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  margin-top: 1.3rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.card__file {
  margin-right: auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--dim);
  overflow-wrap: anywhere;
}

.card__file span { color: var(--line-strong); padding-inline: 0.45em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.62em 1.05em;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.btn:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #180a03;
  font-weight: 600;
}

.btn--primary:hover { background: #e08159; border-color: #e08159; color: #180a03; }

.btn svg { flex: none; }

.btn[data-copied='1'] { border-color: var(--earth); color: var(--earth); background: rgba(138, 184, 232, 0.12); }

/* Inline preview */
.peek {
  margin-top: 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.peek > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.3s;
}

.peek > summary::-webkit-details-marker { display: none; }
.peek > summary:hover { color: var(--text); }
.peek > summary::before {
  content: '+';
  font-size: 0.95rem;
  line-height: 1;
  color: var(--accent);
}
.peek[open] > summary::before { content: '\2212'; }

.peek pre {
  margin: 0.95rem 0 0;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.42);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.68;
  color: #c6d0de;
  tab-size: 2;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vh, 4rem);
  background: var(--bg);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer p {
  margin: 0;
  max-width: 52ch;
  color: var(--dim);
  font-size: 0.83rem;
  line-height: 1.7;
}

.footer__credits {
  display: grid;
  gap: 0.55rem;
}

.footer a { color: var(--muted); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.footer a:hover { color: var(--accent); }

.footer__mark {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  body { font-size: 16px; }

  .hero__media img { object-position: 50% 50%; }

  .hero__scrim {
    background:
      linear-gradient(to bottom,
        rgba(4, 6, 11, 0.78) 0%,
        rgba(4, 6, 11, 0.35) 34%,
        rgba(4, 6, 11, 0) 56%,
        rgba(4, 6, 11, 0.8) 88%,
        var(--bg) 100%);
  }

  .hero { align-items: flex-start; }

  /* Sit the copy high so it clears the Earth in the portrait crop. */
  .hero__inner { padding-top: clamp(3.25rem, 7vh, 5rem); }

  .layout {
    grid-template-columns: 1fr;
    gap: clamp(3.5rem, 9vh, 5rem);
  }

  /* Links first on small screens — that is what people came for. */
  .resources { order: 1; }
  .manifesto { order: 2; position: static; }

  .manifesto p { max-width: none; }
  .manifesto__kicker { max-width: none; }
}

@media (max-width: 560px) {
  .card__foot .btn { flex: 1 1 auto; justify-content: center; }
  .card__file { margin-right: 0; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
