:root {
  --felt: #f4ecd9;       /* cream fleece */
  --felt-2: #eadfc5;
  --ink: #2b2118;
  --muted: #6d5d4c;
  --board: #2c7a3d;      /* RAM circuit board */
  --board-dark: #1f5a2c;
  --chip: #1c1a18;
  --gold: #e0b03c;       /* contact pins */
  --horn: #b47f48;
  --stitch: #8a6b45;
  --display: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--felt); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.5;
  background-image: radial-gradient(rgba(138,107,69,.10) 1px, transparent 1.4px); background-size: 7px 7px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; margin: 0; text-wrap: balance; }

/* buttons: felt patches with a stitched edge */
.btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-block; text-align: center; font-family: var(--display); font-weight: 700;
  font-size: 1.45rem; letter-spacing: .02em; padding: .65rem 1.9rem; border-radius: 14px; background: var(--board); color: #fff8e6;
  outline: 2px dashed rgba(255,248,230,.75); outline-offset: -7px; box-shadow: 0 5px 0 var(--board-dark); transition: transform .08s, box-shadow .08s, background .15s; }
.btn:hover { background: #33894a; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--board-dark); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn.gold { background: var(--gold); color: var(--ink); outline-color: rgba(43,33,24,.55); box-shadow: 0 5px 0 #a87f1f; }
.btn.gold:hover { background: #ecc257; }
.btn.gold:active { box-shadow: 0 1px 0 #a87f1f; }
.btn.quiet { background: transparent; color: var(--ink); font-size: 1.1rem; padding: .55rem 1.1rem; box-shadow: none; outline: 2px dashed var(--stitch); outline-offset: -2px; }
.btn.quiet:hover { background: var(--felt-2); }
.btn.quiet:active { transform: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 1rem; padding-top: clamp(1.5rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(3.4rem, 9.2vw, 7.6rem); letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--board); }
.lead { font-size: clamp(1.15rem, 2.1vw, 1.45rem); max-width: 30ch; margin: 1.4rem 0 1.8rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; }
.cta .btn:first-child { font-size: 1.8rem; padding: .8rem 2.6rem; }
.hero-copy { padding-bottom: clamp(2rem, 6vw, 5rem); }
.hero-art { align-self: end; position: relative; }
/* name label in front of the picture, like a caption on a puppet show */
.nameplate { position: absolute; left: 2%; bottom: 9%; margin: 0; padding: .55rem 1.2rem .6rem; background: var(--chip); color: #fff8e6; border-radius: 12px;
  outline: 2px dashed rgba(224,176,60,.8); outline-offset: -6px; box-shadow: 0 5px 0 rgba(43,33,24,.25); transform: rotate(-3deg); font-family: var(--display); line-height: 1.1; }
.nameplate strong { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; }
.nameplate span { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 18px 14px rgba(43,33,24,.22)); }

/* the edge of a RAM stick: gold contact pins with a notch */
.pins { height: 26px; background:
    linear-gradient(var(--board), var(--board)) 62% 0 / 22px 100% no-repeat,
    repeating-linear-gradient(90deg, var(--gold) 0 9px, var(--board) 9px 14px);
  border-top: 6px solid var(--board); }
.board { background: var(--board); color: #fff8e6;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 22px 22px; }

.quote { padding: clamp(2.2rem, 5vw, 3.6rem) 0; text-align: center; }
.quote p { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.05; margin: 0; text-wrap: balance; }
.quote cite { display: block; margin-top: .8rem; font-style: normal; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: #cfe6c8; }

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.kicker { font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--horn); margin: 0 0 .6rem; font-size: 1rem; }
h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); }

.steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.steps li { counter-increment: step; background: #fbf6ea; border-radius: 18px; padding: 1.5rem 1.4rem 1.6rem; outline: 2px dashed var(--stitch); outline-offset: -9px; box-shadow: 0 3px 0 var(--felt-2); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: var(--chip); color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; }
.steps h3 { font-size: 1.7rem; margin-bottom: .45rem; }
.steps p { margin: 0; color: var(--muted); }

.film { background: var(--chip); color: #fff8e6; }
.film .kicker { color: var(--gold); }
.film video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; margin-top: 1.8rem; box-shadow: 0 0 0 6px #2c2824; }
.film .note { color: #b9ad9c; margin: 1rem 0 0; font-size: 1rem; }

/* sign up */
.signup-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.signup-grid p { max-width: 34ch; color: #e4f0dd; }
form.card { background: var(--felt); color: var(--ink); border-radius: 20px; padding: clamp(1.3rem, 3vw, 2rem); outline: 2px dashed var(--stitch); outline-offset: -10px; display: grid; gap: 1rem; }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
label small { font-weight: 400; color: var(--muted); }
input, textarea { font: inherit; color: var(--ink); background: #fffdf6; border: 2px solid #cbb994; border-radius: 10px; padding: .65rem .8rem; width: 100%; }
textarea { min-height: 5.5rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--board); outline-offset: 1px; border-color: var(--board); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.msg { margin: 0; min-height: 1.4em; font-size: 1rem; }
.msg.bad { color: #a3271f; }
.done { text-align: center; padding: 1.2rem .5rem; }
.done h3 { font-size: 2.2rem; margin-bottom: .5rem; }
.done p { color: var(--muted); max-width: none; margin: 0 0 1.3rem; }

footer { padding: 2.2rem 0 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: .92rem; color: var(--muted); }
.aji { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); padding: .35rem .8rem .35rem .45rem; border-radius: 99px; background: #fbf6ea; outline: 2px dashed var(--stitch); outline-offset: -2px; }
.aji img { width: 26px; height: 26px; }
.aji:hover { background: #fff; }

/* follow-my-builds modal */
dialog { border: 0; padding: 0; background: transparent; width: min(30rem, 100% - 2rem); color: var(--ink); }
dialog::backdrop { background: rgba(28,26,24,.62); }
.modal { position: relative; background: var(--felt); border-radius: 20px; padding: 1.8rem 1.6rem 1.5rem; outline: 2px dashed var(--stitch); outline-offset: -10px; box-shadow: 0 8px 0 var(--board-dark), 0 26px 50px rgba(0,0,0,.35); }
.modal h2 { font-size: 2.3rem; margin-bottom: .6rem; }
.modal p { margin: 0 0 1rem; }
.modal form { display: flex; gap: .6rem; flex-wrap: wrap; }
.modal form input { flex: 1 1 12rem; }
.modal .btn { font-size: 1.2rem; padding: .55rem 1.3rem; }
.x { all: unset; cursor: pointer; position: absolute; top: .9rem; right: 1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; }
.x:hover { background: var(--felt-2); }
.x:focus-visible { outline: 3px solid var(--ink); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { width: min(26rem, 88%); margin-inline: auto; }
  .steps, .signup-grid, .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---- site nav ---- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.4rem; padding: 1rem 0 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .03em; }
.nav .brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; font-size: 1.3rem; }
.nav .brand img { width: 38px; height: 38px; border-radius: 50%; outline: 2px dashed var(--stitch); outline-offset: 2px; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; padding: .3rem 0; }
.nav ul a:hover, .nav ul a[aria-current] { box-shadow: 0 3px 0 var(--board); }
.nav a:focus-visible, figure a:focus-visible, .more:focus-visible { outline: 3px solid var(--board); outline-offset: 3px; border-radius: 4px; }

/* ---- pictures ---- */
.intro { max-width: 56ch; margin: 1rem 0 0; color: var(--muted); }
.board .intro, .film .intro { color: #e4f0dd; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
figure.pic { margin: 0; background: #fbf6ea; border-radius: 16px; padding: .55rem .55rem .2rem; box-shadow: 0 3px 0 var(--felt-2); outline: 2px dashed var(--stitch); outline-offset: -2px; }
figure.pic img { width: 100%; height: auto; border-radius: 10px; }
figure.pic figcaption { padding: .65rem .35rem .6rem; font-size: .98rem; line-height: 1.35; }
.film figure.pic, .board figure.pic { color: var(--ink); }
.more { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.teaser { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.teaser img { border-radius: 14px; box-shadow: 0 0 0 6px var(--board-dark); }
.teaser p { color: #e4f0dd; max-width: 38ch; }

/* ---- making-of page ---- */
.page-head { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(3rem, 8vw, 6.4rem); letter-spacing: -.01em; }
.page-head h1 em { font-style: normal; color: var(--board); }
.page-head .lead { max-width: 46ch; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.facts li { background: var(--chip); color: #fff8e6; border-radius: 12px; padding: .6rem 1.1rem .65rem; font-size: .95rem; line-height: 1.2; }
.facts b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.step { display: flex; align-items: baseline; gap: .9rem; }
.step .n { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 9px; background: var(--chip); color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 1.7rem; transform: translateY(-.35rem); }
.board .step .n { background: var(--gold); color: var(--ink); }
.prose { max-width: 62ch; }
.prose p { margin: 1rem 0 0; }
.board .prose, .film .prose { color: #f1f6ea; }
.row-pics { display: grid; gap: .9rem; margin-top: 2rem; }
.row-pics.five { grid-template-columns: repeat(5, 1fr); }
.row-pics.three { grid-template-columns: repeat(3, 1fr); }
.row-pics.anchors { grid-template-columns: repeat(9, 1fr); gap: .5rem; }
.row-pics figure { margin: 0; }
.row-pics img { width: 100%; height: auto; border-radius: 10px; }
.row-pics figcaption { font-size: .9rem; margin-top: .4rem; line-height: 1.3; }
.row-pics .won img { box-shadow: 0 0 0 5px var(--gold); }
.row-pics .won figcaption { font-weight: 700; }
.lock { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 1.5rem; align-items: start; margin-top: 2rem; }
.lock > figure { margin: 0; }
.lock > figure img { border-radius: 12px; box-shadow: 0 0 0 5px var(--gold); }
.lock figcaption { font-size: .9rem; margin-top: .6rem; }
.lock .row-pics { margin-top: 0; grid-template-columns: repeat(5, 1fr); }
.wide-pic { display: block; margin-top: 2rem; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 6px var(--felt-2); background: #fff; }
.film .wide-pic { box-shadow: 0 0 0 6px #2c2824; }
.scroll-x { overflow-x: auto; }
.scroll-x img { min-width: 900px; }
blockquote.block, pre.block { margin: 1.6rem 0 0; background: #fbf6ea; color: var(--ink); border-radius: 14px; padding: 1.2rem 1.4rem; outline: 2px dashed var(--stitch); outline-offset: -8px; font-size: .98rem; line-height: 1.55; max-width: 78ch; }
pre.block { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.story { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; margin-top: 2rem; }
.story figure { margin: 0; background: #2c2824; border-radius: 12px; overflow: hidden; }
.story img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.story figcaption { padding: .55rem .7rem .75rem; font-size: .86rem; line-height: 1.35; color: #b9ad9c; }
.story .tag { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.story .lyric { display: block; color: #fff8e6; font-weight: 600; margin: .2rem 0; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.videos h3 { font-size: 1.5rem; margin-top: 1.6rem; }
.videos video { margin-top: .8rem; }
.tools { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tools li { background: #fbf6ea; border-radius: 14px; padding: 1rem 1.1rem 1.1rem; outline: 2px dashed var(--stitch); outline-offset: -7px; }
.tools b { display: block; font-family: var(--display); font-size: 1.35rem; }
.tools span { color: var(--muted); font-size: .95rem; }
.endcta { text-align: center; }
.endcta .cta { justify-content: center; margin-top: 1.6rem; }

@media (max-width: 1000px) { .story { grid-template-columns: repeat(3, 1fr); } .posts { grid-template-columns: repeat(3, 1fr); } .row-pics.anchors { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 820px) {
  .shots, .teaser, .videos, .lock { grid-template-columns: 1fr; }
  .posts, .story, .tools { grid-template-columns: repeat(2, 1fr); }
  .row-pics.five { grid-template-columns: repeat(3, 1fr); }
  .lock > figure { max-width: 15rem; }
  .nav { justify-content: center; }
}
@media (max-width: 480px) { .tools { grid-template-columns: 1fr; } .row-pics.three { grid-template-columns: 1fr; } }

.lock .row-pics { align-items: start; }
img { height: auto; }
.row-pics.three img { aspect-ratio: 1 / 1; object-fit: contain; background: #6f83b3; }
.film .step .n { background: var(--gold); color: var(--ink); }
.page-head .cta .btn.quiet, .endcta .cta .btn.quiet { font-size: 1.1rem; padding: .55rem 1.1rem; }
.player .yt, .player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 14px; background: #000; margin-top: .8rem; box-shadow: 0 0 0 6px #2c2824; overflow: hidden; }
.player .yt { position: relative; cursor: pointer; }
.player .yt img { width: 100%; height: 100%; object-fit: cover; }
.player .yt span { position: absolute; inset: 0; margin: auto; width: 4.6rem; height: 3.2rem; display: grid; place-items: center; border-radius: 12px; background: var(--gold); color: var(--ink); font-size: 1.5rem; box-shadow: 0 4px 0 #a87f1f; }
.player .yt:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
