/* n8bomb.com: Notion-style layout carried over from Simple.ink. */
:root {
  --text: #37352f;
  --muted: #787774;
  --line: #e9e9e7;
  --bg: #fff;
  --accent: #d9730d;
  --black: #000;
  --charcoal: #26241f;
  --yellow-bright: #ffc83d;
  --button: #b85c00;
  --button-hover: #9a4d00;
  --max: 1200px;

  --gray: #787774;   --gray-bg: #f1f1ef;
  --brown: #9f6b53;  --brown-bg: #f4eeee;
  --orange: #d9730d; --orange-bg: #fbecdd;
  --yellow: #cb912f; --yellow-bg: #fbf3db;
  --green: #448361;  --green-bg: #edf3ec;
  --blue: #337ea9;   --blue-bg: #e7f3f8;
  --purple: #9065b0; --purple-bg: #f4f0f7;
  --pink: #c14c8a;   --pink-bg: #f9eef3;
  --red: #d44c47;    --red-bg: #fdebec;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); } /* the footer's black carries on to the bottom of short pages */
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Rubik", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
a { color: inherit; text-decoration: underline; text-decoration-color: rgba(55, 53, 47, .4); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
img, video { max-width: 100%; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 16px; min-height: 45px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.nav-icon { width: 22px; height: 22px; object-fit: contain; }
.crumbs { display: flex; gap: 6px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: .5; }

/* cover + title */
.cover { height: 30vh; min-height: 160px; max-height: 280px; overflow: hidden; }
.cover { position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.dim img { filter: brightness(.65); }
.cover-title { position: absolute; inset: 0; display: flex; align-items: center; max-width: var(--max); margin: 0 auto; padding: 0 48px; color: #fff; font-size: clamp(36px, 6vw, 72px); font-weight: 700; line-height: 1.1; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.page { max-width: 900px; margin: 0 auto; padding: 40px 16px 48px; }
.page.full { max-width: var(--max); padding-left: 48px; padding-right: 48px; }
.page-icon { display: block; width: 100px; height: 100px; object-fit: contain; font-size: 78px; line-height: 100px; }
.has-cover .page-icon { margin-top: -82px; position: relative; }
.page-title { font-size: 40px; font-weight: 400; line-height: 1.2; margin: 16px 0 24px; }

/* full-screen opening section, with the cover image behind the words */
.hero { position: relative; display: flex; align-items: center; min-height: calc((100vh - 45px) / 2); min-height: calc((100svh - 45px) / 2); overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: center; width: 100%; max-width: var(--max); margin: 0 auto; padding: 32px 48px; }
.hero-art { display: flex; justify-content: center; }
.hero .page-icon { width: clamp(160px, 22vw, 280px); height: clamp(160px, 22vw, 280px); }
.hero .page-title { margin: 0 0 12px; font-size: clamp(30px, 5vw, 60px); font-weight: 500; }
.hero blockquote { margin: 0; font-size: clamp(16px, 2vw, 22px); }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 24px 16px; }
  .hero .page-icon { width: 96px; height: 96px; }
}

/* text blocks */
.text { margin: 2px 0; padding: 3px 2px; min-height: 1.5em; white-space: pre-wrap; word-wrap: break-word; }
.indent { padding-left: 1.5em; }
h2, h3, h4 { font-weight: 400; line-height: 1.3; margin: 1.6em 0 4px; }
h2 { font-size: 1.875em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }
.column > :first-child, .callout-body > :first-child { margin-top: 0; }
blockquote { margin: 6px 0; padding: 3px 14px; border-left: 3px solid currentColor; font-size: 1.05em; white-space: pre-wrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
hr.spaced { margin: 40px 0; }
ul, ol { margin: 4px 0; padding-left: 1.7em; }
li { padding: 3px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 85%; background: rgba(135, 131, 120, .15); color: #eb5757; padding: .2em .4em; border-radius: 4px; }
pre.code { background: #f7f6f3; padding: 24px 20px; border-radius: 4px; overflow-x: auto; white-space: pre-wrap; }
pre.code code { background: none; color: inherit; padding: 0; }

/* callouts */
.callout { display: flex; gap: 10px; padding: 14px 16px 14px 12px; margin: 4px 0; border-radius: 4px; border: 1px solid transparent; }
.icon-dark { filter: brightness(0); }
.callout .icon { flex: none; width: 24px; height: 24px; font-size: 20px; line-height: 24px; text-align: center; object-fit: contain; }
.callout-body { flex: 1; min-width: 0; white-space: pre-wrap; }
.callout-body .text { padding: 0; }
.callout-body .text + .text { margin-top: 10px; }

/* columns */
.columns { display: flex; gap: 46px; margin: 8px 0; }
.column { min-width: 0; }
@media (max-width: 760px) {
  .columns { flex-direction: column; gap: 8px; }
  .column { flex: 1 1 auto !important; }
  .page.full { padding-left: 16px; padding-right: 16px; }
  .cover-title { padding: 0 16px; }
  .page-title { font-size: 32px; }
  .has-cover .page-icon { width: 72px; height: 72px; margin-top: -56px; font-size: 56px; line-height: 72px; }
}

/* media */
figure { margin: 8px 0; max-width: 100%; }
figure img, figure video { display: block; width: 100%; height: auto; border-radius: 2px; }
figcaption { color: var(--muted); font-size: 14px; padding-top: 6px; }
.ratio { position: relative; aspect-ratio: 16 / 9; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed iframe { width: 100%; border: 0; display: block; }
.pdf object { width: 100%; border: 1px solid var(--line); }
.raw-embed { margin: 8px 0; }
.raw-embed iframe { max-width: 100%; }

/* project cards: rows line up across the grid, so images, titles and buttons all align */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; margin: 8px 0; }
.card { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
.card figure { margin: 0; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; }
.card-title { margin: 20px 0 2px; font-size: 1.375em; }
.card-subtitle { margin: 0 0 12px; color: var(--muted); font-weight: 500; }
.card-body .text { margin: 0; padding: 0; }
.card-body .text + .text { margin-top: 12px; }
.feature { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 16px 40px; align-items: start; margin: 8px 0; }
.feature-head { grid-column: 1 / -1; }
.feature-head .card-title { margin-top: 0; }
.feature-head .card-subtitle { margin-bottom: 0; }
.feature figure { margin: 0; }
.about { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px 40px; align-items: start; margin: 8px 0; }
.about figure { margin: 0; }
.icon-row { display: flex; justify-content: space-between; margin-top: 12px; }
.icon-row a { display: block; line-height: 0; }
.icon-row a:hover { opacity: .7; }
.icon-row img { width: 28px; height: 28px; object-fit: contain; }
.about .card-title { margin-top: 0; }
.about .card-title + .card-body { margin-top: 12px; }
.button { display: inline-block; justify-self: start; align-self: end; margin-top: 20px; padding: 10px 20px; border-radius: 4px; background: var(--button); color: #fff; font-weight: 500; text-decoration: none; }
.button:hover { background: var(--button-hover); }
.button.disabled, .button.disabled:hover { background: #d3d1cb; color: #6f6e69; cursor: not-allowed; }
@media (max-width: 760px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .card { grid-row: auto; grid-template-rows: none; }
  .feature, .about { grid-template-columns: minmax(0, 1fr); }
  .about-side { max-width: 240px; }
}

/* characters side by side: round picture with the name beside it, description below */
.characters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 46px; margin: 8px 0; }
.character-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.character-head img { flex: none; width: 140px; height: 140px; object-fit: contain; }
.character-head h3 { margin: 0; }
@media (max-width: 760px) {
  .characters { grid-template-columns: minmax(0, 1fr); }
}

/* link to a document, with its icon and title instead of the full address */
.file-link { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 8px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; font-weight: 500; text-decoration: none; }
.file-link:hover { background: rgba(55, 53, 47, .06); }
.file-link img { flex: none; width: 22px; height: 20px; }
.file-link span { min-width: 0; overflow-wrap: anywhere; }

/* column holding an embedded document, on black */
.doc-column { padding: 0 8px; background: var(--black); }
.doc-column iframe { background: var(--black); }

/* picture gallery: click a picture to see it larger */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 16px 0; }
.gallery-item { display: block; text-decoration: none; font-weight: 500; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.gallery-item span { display: block; margin-top: 8px; }
.gallery-item:hover span { color: var(--accent); }
.lightbox { max-width: min(92vw, 1400px); max-height: 92vh; padding: 12px; border: 0; border-radius: 6px; background: var(--bg); color: var(--text); }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 72px); margin: 0 auto; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; font-weight: 500; }
.lightbox-close { padding: 4px 12px; border: 1px solid var(--line); border-radius: 4px; background: none; color: inherit; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* full-width section banner */
.banner { margin: 56px calc(50% - 50vw) 48px; padding: 14px 16px; background: var(--black); color: var(--yellow-bright); font-size: clamp(24px, 4vw, 40px); font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-align: center; text-transform: uppercase; }
.page > .banner:first-child { margin-top: -40px; } /* sits right against the hero, above the page's top padding */

/* full-width dark panel, its contents lined up with the page's text */
.band { margin: 16px calc(50% - 50vw) 40px; padding: 28px calc(50vw - 50%); background: var(--charcoal); color: #fff; }
.band h2 { margin: 0 0 12px; color: var(--yellow-bright); }
.band blockquote { margin: 0; border-left-color: var(--yellow-bright); }
.page > .band:first-child { margin-top: -40px; } /* sits right against the image above it */
.band a { text-decoration-color: currentColor; }
.band .attribution { display: block; margin-top: 4px; color: #bdbab0; font-size: .6em; }
.band-row { display: flex; gap: 20px; } /* small picture beside the quote, cropped to the quote's height */
.band-row figure { position: relative; flex: 0 0 200px; margin: 0; }
.band-row img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.band-row blockquote { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .band-row { display: block; }
  .band-row figure { aspect-ratio: 16 / 9; margin-bottom: 16px; }
}

/* equal-width columns of short lists, each under a dark heading */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 16px; }
.info-head { margin: 0 0 8px; padding: 10px 12px; border-radius: 4px; background: var(--charcoal); color: var(--yellow-bright); font-size: 1em; font-weight: 700; letter-spacing: .04em; }
.info-grid .text, .info-grid ul { margin: 0; }

/* black bar with one line of text scrolling across it non-stop. The text appears twice in the page so the loop has no seam. */
.ticker { padding: 14px 0; overflow: hidden; font-size: clamp(18px, 2.5vw, 24px); line-height: 1.35; text-align: left; }
.ticker-track { display: flex; width: max-content; animation: ticker 120s linear infinite; }
.ticker-track span { white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { padding: 14px 16px; text-align: center; }
  .ticker-track { display: block; width: auto; animation: none; }
  .ticker-track span { white-space: normal; }
  .ticker-track span[aria-hidden] { display: none; }
}

/* contact row: the links are spaced to run the same height as the picture beside them */
.contact figure { margin: 0; }
.contact .column:first-child { display: flex; align-items: center; }
.contact .column:last-child { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
.contact .callout { margin: 0; padding-top: 10px; padding-bottom: 10px; }

/* links to other pages */
.page-link { display: flex; align-items: center; gap: 8px; padding: 4px 2px; text-decoration: none; font-weight: 500; }
.page-link span:last-child { border-bottom: 1px solid rgba(55, 53, 47, .16); }
.page-link:hover { background: rgba(55, 53, 47, .06); }
.icon.small { width: 20px; height: 20px; font-size: 18px; line-height: 20px; object-fit: contain; }
.mention { white-space: nowrap; }
.icon.inline { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .3em; vertical-align: -.15em; object-fit: contain; font-size: 1em; line-height: 1; }
h2 strong, h3 strong, h4 strong { font-weight: 500; }
.muted { color: var(--muted); }

/* bookmarks */
.bookmark { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.bookmark:hover { background: rgba(55, 53, 47, .03); }
.bm-title { font-size: 14px; }
.bm-desc { font-size: 12px; color: var(--muted); }
.bm-link { font-size: 12px; display: flex; gap: 6px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.favicon { width: 16px; height: 16px; }

/* toggles + tables */
details.toggle { margin: 4px 0; }
details.toggle summary { cursor: pointer; padding: 3px 2px; }
details.toggle > :not(summary) { padding-left: 1.5em; }
.table-wrap { overflow-x: auto; margin: 8px 0; }
table { border-collapse: collapse; font-size: 14px; }
td, th { border: 1px solid var(--line); padding: 7px 9px; vertical-align: top; text-align: left; }
th { background: #f7f6f3; font-weight: 500; }

/* Notion colors */
.c-gray { color: var(--gray); }       .c-gray_background { background: var(--gray-bg); }
.c-brown { color: var(--brown); }     .c-brown_background { background: var(--brown-bg); }
.c-orange { color: var(--orange); }   .c-orange_background { background: var(--orange-bg); }
.c-yellow { color: var(--yellow); }   .c-yellow_background { background: var(--yellow-bg); }
.c-green { color: var(--green); }     .c-green_background { background: var(--green-bg); }
.c-blue { color: var(--blue); }       .c-blue_background { background: var(--blue-bg); }
.c-purple { color: var(--purple); }   .c-purple_background { background: var(--purple-bg); }
.c-pink { color: var(--pink); }       .c-pink_background { background: var(--pink-bg); }
.c-red { color: var(--red); }         .c-red_background { background: var(--red-bg); }
.callout.c-orange_background { border-color: #f5d9bd; }
h2 .c-orange, h3 .c-orange, h4 .c-orange { font-weight: 500; }

.footer { padding: 24px 16px 40px; background: var(--black); color: var(--yellow-bright); text-align: center; font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Custom CSS carried over from Simple.ink */
.test-btn {
  font-size: 18px;
  background: linear-gradient(180deg, #112 40%, #132);
  color: #FFF;
  width: 80%;
  height: 50px;
  border-radius: 5px;
  border: 2px;
padding: 7px;
}

.test-btn:hover {
  transform: scale(1.01) rotate(0turn);
  transition-duration: 500ms;
  opacity: 1;
}

.test-btn:active {
  background: linear-gradient(100deg, #F2FC9F 40%, #EDBB91);
  color: #B05977;
}
