:root {
  --bg: #0b1220;
  --paper: #0f172a;
  --card: #111827;
  --muted: #9ca3af;
  --text: #f9fafb;
  --accent: #f59e0b;
  --accent2: #22c55e;
  --line: rgba(255, 255, 255, .10);
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
  --radius: 18px;
  --max: 1040px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg), #050814);
  color: var(--text);
  font-family: var(--sans)
}

a {
  color: inherit
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, .82);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap
}

.brand .mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(245, 158, 11, .12);
}

.brand .title {
  font-weight: 700;
  font-size: 16px
}

.brand .sub {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .62);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.topnav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .02);
}

.topnav a:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--line);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 0px 18px
}

.hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: radial-gradient(1200px 400px at 20% 0%, rgba(245, 158, 11, .22), transparent 60%), radial-gradient(900px 500px at 80% 10%, rgba(34, 197, 94, .18), transparent 55%), #0b1220;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  align-items: stretch
}

.hero-inner.hero-inner--titled {
  grid-template-areas:
    "title title"
    "kicker kicker"
    "copy side"
    "quick quick";
  row-gap: 0;
  column-gap: 20px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr
  }

  .hero-inner.hero-inner--titled {
    grid-template-areas:
      "title"
      "kicker"
      "copy"
      "side"
      "quick";
  }
}

.hero-copy {
  padding: 26px 26px 22px
}

.recipe-title {}

.hero-inner.hero-inner--titled>.recipe-title {
  grid-area: title;
  margin: 0;
  width: 100%;
  padding: 26px 26px 10px;
}

.hero-inner.hero-inner--titled>.kicker {
  grid-area: kicker;
  display: block;
  width: calc(100% - 52px);
  margin: 0 26px 6px;
  border-radius: 14px;
  padding: 10px 12px;
}

.hero-copy.hero-copy--stack {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.hero-inner.hero-inner--titled>.hero-copy {
  grid-area: copy;
}

.hero-inner.hero-inner--titled>.hero-side {
  grid-area: side;
}

.hero-inner.hero-inner--titled>.quick-jump-card {
  grid-area: quick;
  margin: 0 18px 22px;
}

.hero-copy.hero-copy--stack>.sub {
  margin: 0
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04)
}

.kicker b {
  color: #fff
}

h1 {
  margin: 14px 0 10px;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -.02em
}

.sub {
  color: rgba(255, 255, 255, .78);
  font-size: 15.5px;
  line-height: 1.45;
  margin: 0 0 16px
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px
}

.badge {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03)
}

.badge span {
  color: rgba(255, 255, 255, .68)
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .86);
}

.hero-media {
  padding: 18px;
  display: flex;
  align-items: center
}

.hero-side {
  padding: 18px;
  display: flex;
  flex-direction: column
}

.hero-side .hero-media {
  padding: 0
}

.alink {
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, .4)
}

.alink:hover {
  border-bottom-color: rgba(255, 255, 255, .8)
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line)
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px
}

.nav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02)
}

.nav a:hover {
  background: rgba(255, 255, 255, .06)
}

.nav-tight {
  margin-top: 10px
}

.section {
  margin-top: 22px
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr
  }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card .pad {
  padding: 18px
}

h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -.01em
}

h3 {
  margin: 0 0 8px;
  font-size: 16px
}

p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.55
}

.small {
  color: rgba(255, 255, 255, .72);
  font-size: 13px
}

.callout {
  border-left: 4px solid var(--accent);
  background: rgba(245, 158, 11, .08);
  padding: 14px 14px;
  border-radius: 12px
}

.callout strong {
  color: #fff
}

.code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  line-height: 1.5
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden
}

.table th {
  text-align: left;
  background: rgba(255, 255, 255, .07);
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
  padding: 12px
}

.table td {
  padding: 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: rgba(255, 255, 255, .82)
}

.table tr:nth-child(even) td {
  background: rgba(255, 255, 255, .02)
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px
}

.t {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  padding: 10px 10px
}

.t b {
  display: block;
  font-family: var(--mono);
  font-size: 12px
}

.t span {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  margin-top: 4px
}

.figure {
  margin: 0
}

.figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line)
}

.figcap {
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .68)
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px
}

.step {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  align-items: start
}

@media (max-width: 900px) {
  .step {
    grid-template-columns: 1fr
  }
}

.step>* {
  min-width: 0
}

.step .meta {
  padding: 18px
}

.step .meta .label {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 6px
}

.step .meta h3 {
  font-size: 18px;
  margin: 0 0 8px
}

.step .meta ul {
  margin: 10px 0 0 18px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.5
}

.step .meta p,
.step .meta li {
  overflow-wrap: anywhere
}

.step-figure {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start
}

.step-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover
}

@media (max-width: 900px) {
  .step-figure img {
    max-height: none
  }
}

.step .media {
  padding: 18px
}

.step .media .ph {
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, .25);
  padding: 14px;
  background: rgba(255, 255, 255, .02)
}

.step .media .ph::before {
  content: "";
  display: block;
  height: 200px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MDAiIGhlaWdodD0iNjAwIj48cmVjdCB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgZmlsbD0iIzExMTgyNyIvPjx0ZXh0IHg9IjUwJSIgeT0iNTAlIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNikiIGZvbnQtc2l6ZT0iMzAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPkltYWdlIENvbWluZyBTb29uPC90ZXh0Pjwvc3ZnPg==");
  background-size: cover;
  background-position: center;
}

.hero-media .frame {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
}

.hero-media svg {
  display: block;
  width: 100%;
  height: auto
}

.code-spaced {
  margin-top: 10px
}

.callout-spaced {
  margin-top: 12px
}

footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 18px 8px 18px;
}

footer .tiny {
  font-family: var(--mono);
  letter-spacing: .35px;
  text-transform: uppercase;
  opacity: .9;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 12px 0
}

.quick-jump-card hr {
  border-top-color: rgba(255, 255, 255, .24);
}

.mt10 {
  margin-top: 10px;
}

@media (max-width: 700px) {
  .topnav {
    display: none
  }
}
