/* Palette: charcoal with a coral-to-crimson lead accent and one ice-blue second accent. Lines are the motif. */
:root {
  color-scheme: dark;
  --bg: #1E1E20;
  --surface: #26262A;
  --ink: #F1ECE8;
  --muted: #A9A3A6;
  --line: #3C3A40;
  --faint: rgba(241, 236, 232, .05);
  --accent: #F2735F;      /* coral */
  --accent-line: #E2554F;
  --accent2: #8FB4E8;     /* ice blue, used for the second stroke and corner hatching */
  --focus: #F2735F;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background-color: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* very low contrast line grid */
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--faint) 31px 32px);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -4rem; background: var(--ink); color: var(--bg); padding: .5rem .75rem; z-index: 5; }
.skip:focus { top: 8px; }

/* stack of thin horizontal rules */
.rules { height: 9px; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 4px); }

.bar { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.bar nav { display: flex; gap: 20px; }

/* link with a tracing underline */
a.trace { text-decoration: none; background: linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 0 2px no-repeat; padding-bottom: 2px;
  border-bottom: 1px solid var(--line); transition: background-size .35s ease; }
a.trace:hover, a.trace:focus-visible { background-size: 100% 2px; }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-in { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { color: var(--accent); margin: 0 0 16px; }
h1 { font-size: clamp(2.6rem, 11vw, 5.5rem); line-height: 1; margin: 0; font-weight: 700; letter-spacing: -.03em; }
.strokes { display: inline-block; position: relative; }
/* offset parallel strokes behind the name */
.strokes::before, .strokes::after { content: ""; position: absolute; left: -12px; right: -12px; height: 1px; background: var(--accent-line); z-index: -1; transform-origin: left; animation: draw .9s ease both; }
.strokes::before { bottom: -8px; }
.strokes::after { bottom: -14px; left: 12px; right: -28px; animation-delay: .15s; background: var(--accent2); opacity: .75; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tagline { font-size: clamp(1.2rem, 4vw, 1.6rem); margin: 36px 0 4px; color: var(--ink); }
.aside { margin: 0; color: var(--muted); }
/* diagonal hatching band on the right */
.hatch { z-index: -1; position: absolute; top: 0; bottom: 0; right: 0; width: min(38%, 26rem);
  background: repeating-linear-gradient(135deg, var(--accent-line) 0 1px, transparent 1px 9px); opacity: .5;
  -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }

/* hero art: the wallpaper (assets/space.jpg), subdued and masked so it melts into the page. */
.hero { --w: clamp(760px, 74vw, 1040px); --r: max(16px, calc((100% - 64rem) / 2 + 16px)); }
.art { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.art-img { position: absolute; width: var(--w); height: auto; max-width: none; opacity: .72;
  left: calc(74% - var(--w) * .51); top: calc(50% - var(--w) * .2643);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to right, transparent 0, #000 38%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); }
/* HUD corner brackets */
.tick { position: absolute; width: 14px; height: 14px; border: 0 solid var(--accent2); opacity: .8; --bw: min(34%, 26rem); }
.t1 { top: 24px; right: calc(var(--r) + var(--bw)); border-width: 1px 0 0 1px; }
.t2 { top: 24px; right: var(--r); border-width: 1px 1px 0 0; }
.t3 { bottom: 24px; right: var(--r); border-width: 0 1px 1px 0; }
.t4 { bottom: 24px; right: calc(var(--r) + var(--bw)); border-width: 0 0 1px 1px; }
.lbl { position: absolute; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #A9A3A6; }
.l-tl { top: 32px; right: calc(var(--r) + 14px); }
.l-br { bottom: 32px; right: calc(var(--r) + 14px); }

/* sections */
.section { padding-top: 24px; padding-bottom: 72px; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 32px 0 24px; }
h2 { font-size: 1.6rem; margin: 0; letter-spacing: -.01em; }
.num { color: var(--accent); margin-right: 8px; vertical-align: middle; }
.head p { margin: 0; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 24px; }
.card { position: relative; background-color: var(--surface); border: 1px solid var(--line); padding: 24px 20px 20px; overflow: hidden;
  --cut: 18px; --edge: var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  /* ruled-paper rhythm */
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, var(--faint) 27px 28px);
  transition: transform .25s ease, border-color .25s ease; }
.card > * { position: relative; }
.card h3 { margin: 4px 0 8px; font-size: 1.25rem; line-height: 1.25; }
.card p { margin: 0 0 8px; }
.card p.mono { margin-bottom: 4px; }
.links { display: flex; gap: 20px; margin-top: 20px !important; }
.corner { position: absolute !important; top: 0; right: 0; width: 72px; height: 72px;
  background: repeating-linear-gradient(135deg, var(--accent2) 0 1px, transparent 1px 7px);
  clip-path: polygon(100% 0, 0 0, 100% 100%); opacity: .55; transition: transform .4s ease, opacity .3s; }
/* the 1px border follows the chamfered corner */
.card::after { content: ""; position: absolute; left: 0; bottom: 0; width: var(--cut); height: var(--cut); pointer-events: none;
  background: linear-gradient(45deg, transparent calc(50% - .75px), var(--edge) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)); }
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--accent-line); --edge: var(--accent-line); }
.card:hover .corner, .card:focus-within .corner { transform: translate(-5px, 5px); opacity: .9; }
.ghost { border-style: dashed; background-color: transparent; }
.ghost h3, .ghost p:not(.mono) { color: var(--muted); }

footer { padding-bottom: 32px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 20px; }
.foot p { margin: 0; }

@media (min-width: 901px) { .hero-in { min-height: 420px; display: flex; flex-direction: column; justify-content: center; } }
@media (max-width: 900px) {
  .hero { --w: clamp(560px, 150vw, 900px); }
  .hero-in { padding-bottom: 300px; }
  .art-img { left: calc(50% - var(--w) * .51); top: calc(100% - 160px - var(--w) * .2643); }
  .tick, .lbl { display: none; }
}
@media (max-width: 520px) {
  .hero-in { padding-top: 48px; padding-bottom: 300px; }
  .hatch { width: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
