/* FBDM Lab. A workbench: dark wood-black, paper-white text, one amber. */
:root {
  --bg: #13110d;
  --panel: #1c1914;
  --panel2: #231f18;
  --line: #342e24;
  --fg: #ece6da;
  --dim: #a39b8c;
  --amber: #e0a947;
  --amber-soft: #e0a94722;
  --head: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--body); }
a { color: var(--amber); }
a:hover { color: #f2c46d; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px max(clamp(16px, 4vw, 48px), calc((100% - 1240px) / 2 + 48px)); background: #13110de8; backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); }
.brand { font: 700 20px var(--head); color: var(--fg); text-decoration: none; letter-spacing: .02em; }
.jumps { display: flex; gap: 22px; }
.jumps a { color: var(--dim); text-decoration: none; font-size: 15px; }
.jumps a:hover { color: var(--fg); }

main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.over { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.open { padding: clamp(28px, 6vh, 72px) 0 clamp(20px, 4vh, 40px); max-width: 820px; }
h1 { font: 600 clamp(34px, 5vw, 58px)/1.08 var(--head); margin: 0 0 18px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); margin: 0 0 10px; }
.dim { color: var(--dim); }

.part { padding: 28px 0 40px; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
h2 { font: 600 34px var(--head); margin: 0 0 4px; }
.sub { color: var(--dim); margin: 0 0 18px; }
h3 { font: 600 14px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
  margin: 26px 0 12px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.small { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; }
.shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0c0b09; border-bottom: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s; }
a.shot:hover img { transform: scale(1.03); }
.body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
h4 { font: 600 20px var(--head); margin: 0; }
.line { margin: 0; }
.idea { margin: 2px 0 0; padding: 8px 12px; border-left: 3px solid var(--amber); background: var(--amber-soft);
  border-radius: 0 6px 6px 0; }
.idea .over { font-size: 11px; margin-bottom: 2px; }
.idea p { margin: 0; font-style: italic; font-size: 15px; }
.more { margin: 0; padding-left: 18px; font-size: 15px; color: var(--dim); }
.more li { margin: 2px 0; }
.go { margin-top: auto; padding-top: 6px; font-size: 15px; text-decoration: none; }
.go:hover { text-decoration: underline; }
.small .card h4 { font-size: 18px; }
.small .line { font-size: 15px; }

.worked { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.worked-card { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--amber); border-radius: 10px; padding: 16px 18px; }
.worked-card .said { margin: 0; font: italic 17px/1.5 var(--head); color: var(--fg); }
.worked-card .means { margin: 0; font-size: 15px; color: var(--dim); }
.worked-card .close { margin: auto 0 0; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.idea-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.idea-card h4 { font-size: 18px; margin-bottom: 6px; }
.idea-card p { margin: 0; color: var(--fg); font-size: 15px; font-style: italic; }

.foot { border-top: 1px solid var(--line); margin-top: 20px; padding: 30px clamp(16px, 4vw, 48px) 48px;
  text-align: center; }
.foot p { margin: 6px auto; max-width: 640px; }
#donate-link { display: inline-block; padding: 9px 20px; border: 1px solid var(--amber); border-radius: 999px;
  text-decoration: none; font-weight: 600; }
#donate-link:hover { background: var(--amber); color: var(--bg); }

@media (max-width: 1100px) { .grid.small { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .grid, .ideas, .worked { grid-template-columns: repeat(2, 1fr); }
  .grid.small { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid, .ideas, .grid.small, .worked { grid-template-columns: 1fr; }
  .jumps { gap: 14px; }
}
