/* D.R. Made It — public site. Phone first, no build step. */
:root {
  --bg: #fafaf9;
  --card: #ffffff;
  --ink: #0a0a0b;
  --muted: #55565b;
  --line: #e4e4e6;
  --red: #d7141e;       /* logo red, darkened slightly so text/buttons pass contrast */
  --red-dark: #b0101a;
  --radius: 10px;
  --display: "Michroma", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---- Home: header ----
   The header is the logo carved straight into wood, so it doubles as the logo and the buttons start
   high on the screen. (Settings can bring back the round logo; it then sits on the arch like before.) */
.hero {
  height: 190px;
  background-size: cover;
  background-position: center;
  background-color: #c9a77c;
}
@media (min-width: 600px) {
  .hero { height: 260px; }
}
.profile {
  position: relative;
  margin-top: -28px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 28px 28px 0 0;
  padding: 16px 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.profile.has-logo { margin-top: -44px; border-radius: 50% 50% 0 0 / 44px 44px 0 0; padding-top: 0; gap: 10px; }
.profile-logo {
  width: 124px;
  height: 124px;
  margin-top: -62px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--bg);
  object-fit: contain;
  box-shadow: 0 4px 14px rgb(0 0 0 / .12);
}
.profile-name {
  margin: 6px 0 0;
  font: 400 24px/1.2 var(--display);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.profile-bio { margin: 0; color: var(--muted); font-size: 15px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.socials a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: color .15s, background .15s;
}
.socials a:hover { color: var(--red); background: rgb(0 0 0 / .04); }

/* ---- Link buttons ---- */
.links { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 24px; }
.link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  min-height: 64px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s;
}
.link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgb(0 0 0 / .07); }
.link:active { transform: translateY(0); }
.link.is-featured { border: 2px solid var(--red); padding: 5px; }
.link-thumb {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
}
.link-icon { display: grid; place-items: center; background: var(--ink); color: #fff; }
.link-title { flex: 1; font-weight: 500; font-size: 16px; }
.link-chev { color: #8a8b90; padding-right: 6px; display: flex; }

/* ---- Inner pages ---- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(0px, calc((100% - 560px) / 2));
}
.top-nav { display: none; }
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  text-decoration: none;
  font: 400 14px var(--display); letter-spacing: 1.5px; text-transform: uppercase;
}
.topbar-brand img { width: 40px; height: 40px; border-radius: 50%; }
.page { padding: 18px 16px 28px; }
.page.center { text-align: center; }
.page-title { margin: 0 0 12px; font: 400 22px/1.3 var(--display); letter-spacing: 1.5px; text-transform: uppercase; }
.prose p { margin: 0 0 1em; }
.about-photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px;
  background: var(--red); color: #fff;
  border: 0; border-radius: 8px;
  font: 600 16px var(--body);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: rgb(0 0 0 / .04); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.site-footer p { margin: 0 0 4px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- Shared bits for inner pages ---- */
.page-lede { margin: -6px 0 20px; color: var(--muted); }
.crumb { display: inline-block; margin-bottom: 10px; color: var(--muted); font-size: 14px; text-decoration: none; }
.crumb:hover { color: var(--ink); }
.notice { padding: 10px 12px; border-radius: 8px; background: #fff4d6; font-size: 14px; }
.btn-sm { min-height: 44px; font-size: 15px; padding: 0 16px; }
.btn-wide { width: 100%; margin: 4px 0 14px; }
.rule-title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font: 400 13px var(--display); letter-spacing: 2px; text-transform: uppercase;
}
.rule-title::after { content: ""; flex: 1; height: 2px; background: var(--red); }


/* Cards (tool lists, calculators) */
.cards { display: flex; flex-direction: column; gap: 8px; }
.card {
  display: flex; align-items: center; gap: 12px; padding: 6px; min-height: 64px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgb(0 0 0 / .07); }
.card-img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.card-img-empty { display: grid; place-items: center; background: var(--ink); color: #fff; }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.card-body b { font-weight: 600; }
.card-body small { color: var(--muted); font-size: 14px; }

/* Tool list items */
.tool-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tool { display: flex; gap: 14px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tool-img { width: 96px; height: 96px; object-fit: contain; border-radius: 6px; background: #fff; flex-shrink: 0; }
.tool-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.tool-name { margin: 0; font-size: 16px; font-weight: 600; }
.tool-note { margin: 0; color: var(--muted); font-size: 14px; }

/* File shop */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 99px; background: var(--card);
  text-decoration: none; font-size: 14px; font-weight: 500;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin-top: 12px; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.tile img, .tile-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eaeaeb; margin-bottom: 4px; transition: transform .12s ease; }
.tile:hover img { transform: translateY(-2px); }
.tile b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.tile small { color: var(--muted); font-size: 13px; }
.free { color: var(--red); font-weight: 600; }

.gallery {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px 6px; padding: 0 16px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); scroll-snap-align: center; }
.gallery-hint { margin: 0 0 10px; color: var(--muted); font-size: 13px; text-align: center; }
.meta { margin: -6px 0 12px; color: var(--muted); }
.get-box { margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.get-form { display: flex; flex-direction: column; gap: 10px; }
.get-form label { font-weight: 600; }
.get-form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; min-height: 44px; }
.get-form .check input { width: 22px; height: 22px; accent-color: var(--red); }
.get-form input[type=email] {
  font: inherit; font-size: 16px; min-height: 50px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 8px; width: 100%;
}
.get-form input[type=email]:focus { border-color: var(--ink); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde8e9; color: #8b0f15; }
.ok { margin: 0; }
.specs { margin: 16px 0; display: grid; gap: 4px 0; }
.specs dt { font: 400 11px var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.specs dd { margin: 0; }
.tag { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 10px; border-radius: 99px; background: #ececee; font-size: 13px; font-weight: 600; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 14px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* Videos page */
.video-list { display: grid; gap: 18px; margin-bottom: 20px; }
@media (min-width: 520px) { .video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.video-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; font-weight: 500; }
.video-card img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: var(--radius); background: #eaeaeb; }

/* ---- Pages & categories made in admin ---- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 520px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-card { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #eaeaeb; text-decoration: none; }
.cat-card img, .cat-card-empty { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.cat-card:hover img { transform: scale(1.03); }
.cat-card-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px;
  background: rgb(10 10 11 / .82); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3;
}
.page-hero { display: block; margin: 0 0 12px; }
.page-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.masonry { columns: 2 150px; column-gap: 8px; margin-top: 16px; }
.masonry a { display: block; margin-bottom: 8px; break-inside: avoid; }
.masonry img { width: 100%; border-radius: 6px; background: #eaeaeb; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.tt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 14px; }
@media (min-width: 520px) { .tt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tt-card { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #111; color: #fff; text-decoration: none; }
.tt-card img, .tt-empty { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.tt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(0 0 0 / .5); font-size: 18px; padding-left: 3px;
}
.tt-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 10px;
  background: linear-gradient(transparent, rgb(0 0 0 / .85)); font-size: 13px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tt-empty { color: #fff; }
.tt-tiktok .tt-empty { background: #111; }
.tt-instagram .tt-empty { background: linear-gradient(135deg, #5b3bd1, #c13584 55%, #f58529); }
.tt-facebook .tt-empty { background: #1765d8; }
.tt-link .tt-empty { background: #333; }
.tt-card:not(:has(img)) .tt-title { background: none; font-size: 15px; }

/* ---- Toolbox ---- */
.howto { margin-top: 28px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.howto h2 { margin: 0 0 8px; font-size: 17px; }
.howto ol { margin: 0 0 8px; padding-left: 20px; }
.howto li { margin-bottom: 6px; }
.howto p { margin: 0; color: var(--muted); }
.card-img.app-icon { border-radius: 14px; }
.page-files { margin: 14px 0; }

/* ---- Home: carved board stays centered on the screen; see-through white scrolls in front of it ---- */
.page-bg {
  --w: min(100vw, 560px);
  position: fixed; top: 0; left: 50%; z-index: -1; /* behind everything in the page, above the page color */
  width: var(--w); height: 100vh; height: 100lvh;
  transform: translateX(-50%);
  background-color: #d8bb92;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.hero-space { height: 28px; } /* just room for the arch: it starts at the top of the page */
.is-home main, .is-home .site-footer { position: relative; z-index: 1; }
.is-home .profile,
.is-home .hero-space ~ .links,
.is-home .hero-space ~ .home-sec { background: rgb(250 250 249 / .38); margin: 0; }
.is-home .site-footer { background: rgb(250 250 249 / .7); border-top: 0; }
.is-home .link { background: rgb(255 255 255 / .74); border-color: rgb(255 255 255 / .6); }
.is-home .profile-bio { color: #2a2a2e; font-weight: 500; }

/* Links typed into text (descriptions, pages, About) */
.prose a, .specs a { color: var(--red-dark); text-decoration-thickness: 1.5px; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* ---- Home sections under the buttons: videos, files, shop tools ---- */
/* Each section is a big button-style card: name + "All ›" on top, three thumbnails under */
html { overflow-x: clip; } /* nothing may ever push the page sideways */
.links:has(+ .home-sec) { padding-bottom: 8px; }
.home-sec { padding: 0 16px 8px; }
.home-sec:last-of-type { padding-bottom: 24px; }
.sec-card { display: flex; flex-direction: column; gap: 4px; padding: 2px 6px 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.is-home .sec-card { background: rgb(255 255 255 / .74); border-color: rgb(255 255 255 / .6); }
.sec-head { display: flex; align-items: center; gap: 6px; min-height: 40px; padding-left: 6px; text-decoration: none; color: inherit; }
.sec-title { flex: 1; margin: 0; font-weight: 500; font-size: 16px; }
.sec-all { font-size: 14px; color: var(--muted); }
.home-sec .thumbs { padding: 0; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.thumb { display: flex; flex-direction: column; gap: 4px; text-decoration: none; min-width: 0; }
.thumb img, .thumb-empty { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 8px; background: #eaeaeb; display: block; transition: transform .12s ease; }
.thumb-empty { display: grid; place-items: center; color: var(--muted); }
.thumb:hover img { transform: translateY(-2px); }
.thumb-title { font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.pill-red { background: var(--red); }
.is-home .home-sec .card { background: rgb(255 255 255 / .74); border-color: rgb(255 255 255 / .6); }
.mw-box { margin: 4px 0 16px; }
.mw-box .btn-wide { margin: 0; }
.mw-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Short-form videos are vertical: tall thumbnails (YouTube's thumbnail is cropped to the middle) */
.thumb-crop { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 9 / 16; background: #111; }
.thumbs-tall .thumb .thumb-crop img { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; transform: scale(1.06); }
.thumbs-tall .thumb:hover .thumb-crop img { transform: scale(1.06) translateY(-2px); }
.thumbs-square .thumb img, .thumbs-square .thumb-empty { aspect-ratio: 1; }

/* Title on a see-through bar across the bottom of each thumbnail */
.thumb-crop, .thumb-media { position: relative; display: block; overflow: hidden; border-radius: 8px; }
.thumb-media { aspect-ratio: 9 / 16; background: #eaeaeb; }
.thumb-media img, .thumb-media .thumb-empty { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.thumb-bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 6px;
  background: linear-gradient(to top, rgb(10 10 11 / .82), rgb(10 10 11 / .62) 70%, transparent);
  color: #fff; font-size: 12px; font-weight: 600; line-height: 1.25;
}
.thumb-bar > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.thumb-tag { display: block; margin-bottom: 1px; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #c9f0d2; }
.thumb-tag.is-paid { color: #ffb3b6; }
.thumbs-tall .thumb .thumb-crop img { transform: scale(1.06); }

/* ---- Tidy-up pass ---- */
/* Long titles step down so they don't take three lines */
.page-title.is-long { font-size: 17px; line-height: 1.35; letter-spacing: 1px; }
/* Lists inside text stay tight; normal paragraphs get room */
.prose .p-list { line-height: 1.55; }
.specs dd.prose p:last-child { margin-bottom: 0; }
/* Footer links on inner pages */
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 0 0 10px; }
.foot-nav a { padding: 8px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.foot-nav a[aria-current] { background: var(--ink); color: #fff; }
.about-socials { margin-top: 18px; }
.btn-top { margin-top: 16px; }
.page .thumbs-tall { margin-top: 4px; }
.page .thumbs-tall .thumb-bar { font-size: 12.5px; }
/* Inner pages: the carved board sits faintly behind, the page on a soft white sheet in front */
.is-inner .page-bg-inner { opacity: .55; }
.is-inner main, .is-inner .site-footer, .is-inner .topbar { position: relative; z-index: 1; }
.is-inner main { background: rgb(250 250 249 / .9); }
.is-inner .topbar { background: rgb(250 250 249 / .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.is-inner .site-footer { background: rgb(250 250 249 / .9); border-top: 0; }
@media (min-width: 600px) { .is-inner main { border-radius: 0 0 var(--radius) var(--radius); } }


/* ================= Laptop & desktop (the phone layout above stays as is) ================= */
@media (min-width: 900px) {
  /* Wider pages; the home page keeps its link-in-bio column */
  .is-inner main { max-width: 1080px; }
  .topbar { padding: 0 max(24px, calc((100% - 1080px) / 2)); }
  .topbar-brand { padding: 12px 0; font-size: 15px; }
  .top-nav { display: flex; gap: 4px; }
  .top-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
  .top-nav a:hover { background: rgb(0 0 0 / .05); }
  .top-nav a[aria-current] { background: var(--ink); color: #fff; }
  .is-inner .foot-nav { display: none; } /* the top bar has the links now */
  .page { padding: 36px 40px 56px; }
  .page-title { font-size: 28px; margin-bottom: 16px; }
  .page-title.is-long { font-size: 24px; line-height: 1.3; }
  .page-lede { font-size: 17px; max-width: 640px; }

  /* Grids get more columns */
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
  .page .thumbs-tall { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .howto { max-width: 640px; }
  .tt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .masonry { columns: 3 220px; }

  /* Reading pages (About, builds): comfortable line length */
  article.page:not(:has(.file-layout)) { max-width: 760px; margin: 0 auto; }
  .prose { font-size: 17px; line-height: 1.65; }

  /* File page: photos on the left (they stay put), details on the right */
  .file-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .file-media { position: sticky; top: 20px; }
  .gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 0; padding: 0; }
  .gallery img { aspect-ratio: 1; }
  .gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .gallery-hint { display: none; }
  .file-info .page-title { margin-top: 0; }

  /* Home: the carved board fills the whole screen; the column floats in front of it */
  .is-home .page-bg { width: 100vw; background-size: 0 0; overflow: hidden; }
  .is-home .page-bg::before, .is-home .page-bg::after {
    content: ''; position: absolute; background-image: inherit; background-repeat: no-repeat; background-position: center;
  }
  .is-home .page-bg::before { inset: -60px; background-size: cover; filter: blur(28px) brightness(.9); } /* soft wood out to the edges */
  .is-home .page-bg::after { inset: 0; background-size: auto 100%; }                                    /* the carved board itself, sharp, centered */
  .is-home main { max-width: 600px; box-shadow: 0 0 60px rgb(0 0 0 / .18); }
  .is-home .site-footer { max-width: 600px; margin: 0 auto; width: 100%; }

  /* Inner pages: same idea, very faint */
  .is-inner .page-bg-inner { width: 100vw; opacity: .35; }
  .is-inner main { box-shadow: 0 0 50px rgb(0 0 0 / .06); }
}
.get-form .fine { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.unsub { max-width: 520px; margin: 0 auto; text-align: center; }
.unsub .btn { margin-top: 8px; }
.btn-3d { margin: 0 0 14px; }
