:root {
  --page-bg: #100c18;
  --surface: rgba(19, 15, 31, 0.86);
  --surface-strong: rgba(28, 21, 45, 0.95);
  --surface-light: rgba(255, 255, 255, 0.08);
  --surface-elevated: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --text-main: #f6f0ff;
  --text-soft: #d8cee9;
  --text-muted: #ab9fc2;
  --shadow: 0 24px 60px rgba(8, 6, 15, 0.35);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1180px;
  --accent-color: #ff8ad8;
  --accent-soft: color-mix(in srgb, var(--accent-color) 35%, white);
  --accent-glow: color-mix(in srgb, var(--accent-color) 30%, transparent);
  --accent-strong: color-mix(in srgb, var(--accent-color) 65%, white);
  --surface-gradient-start: rgba(40, 29, 63, 0.88);
  --surface-gradient-end: rgba(17, 14, 30, 0.96);
  --hero-gradient-start: rgba(51, 38, 78, 0.88);
  --hero-gradient-end: rgba(18, 15, 31, 0.94);
  --orb-one: rgba(255, 255, 255, 0.08);
  --orb-two: var(--accent-glow);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background: var(--page-bg);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Segoe UI", sans-serif;
  line-height: 1.65;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at top left, var(--orb-one), transparent 32%),
    radial-gradient(circle at bottom right, var(--orb-two), transparent 28%);
  opacity: 0.95;
}

.mood-cozy-gamer {
  --surface-gradient-start: rgba(42, 29, 63, 0.88);
  --surface-gradient-end: rgba(17, 14, 30, 0.96);
  --hero-gradient-start: rgba(53, 39, 79, 0.88);
  --hero-gradient-end: rgba(18, 15, 31, 0.94);
  --orb-one: rgba(111, 215, 255, 0.12);
  --orb-two: rgba(255, 155, 214, 0.2);
}

.mood-pastel-night {
  --surface-gradient-start: rgba(52, 34, 66, 0.88);
  --surface-gradient-end: rgba(22, 16, 34, 0.96);
  --hero-gradient-start: rgba(68, 43, 92, 0.88);
  --hero-gradient-end: rgba(23, 16, 36, 0.95);
  --orb-one: rgba(205, 194, 255, 0.14);
  --orb-two: rgba(255, 180, 232, 0.18);
}

.mood-anime-glow {
  --surface-gradient-start: rgba(30, 24, 61, 0.88);
  --surface-gradient-end: rgba(11, 12, 28, 0.96);
  --hero-gradient-start: rgba(42, 33, 82, 0.9);
  --hero-gradient-end: rgba(13, 14, 31, 0.94);
  --orb-one: rgba(106, 208, 255, 0.16);
  --orb-two: rgba(255, 152, 206, 0.22);
}

.mood-starlight {
  --surface-gradient-start: rgba(26, 28, 58, 0.88);
  --surface-gradient-end: rgba(12, 17, 33, 0.97);
  --hero-gradient-start: rgba(33, 36, 74, 0.9);
  --hero-gradient-end: rgba(12, 17, 34, 0.95);
  --orb-one: rgba(188, 223, 255, 0.14);
  --orb-two: rgba(255, 210, 155, 0.16);
}

.mood-retro-arcade {
  --surface-gradient-start: rgba(44, 21, 57, 0.9);
  --surface-gradient-end: rgba(14, 11, 28, 0.98);
  --hero-gradient-start: rgba(58, 27, 74, 0.9);
  --hero-gradient-end: rgba(17, 12, 32, 0.95);
  --orb-one: rgba(0, 245, 255, 0.12);
  --orb-two: rgba(255, 62, 181, 0.22);
}

.theme-aurora-grid::before {
  background:
    linear-gradient(140deg, rgba(12, 10, 25, 0.97), rgba(27, 14, 45, 0.92)),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(87, 191, 255, 0.15), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(255, 138, 216, 0.16), transparent 30%);
  background-size: auto, 32px 32px, 32px 32px, auto, auto;
}

.theme-moonlit-room::before {
  background:
    linear-gradient(155deg, rgba(13, 14, 28, 0.97), rgba(28, 18, 41, 0.94)),
    radial-gradient(circle at 15% 18%, rgba(255, 210, 232, 0.1), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(154, 209, 255, 0.12), transparent 24%),
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.04), transparent 18%);
}

.theme-pixel-garden::before {
  background:
    linear-gradient(160deg, rgba(18, 17, 24, 0.97), rgba(27, 32, 39, 0.95)),
    radial-gradient(circle at 15% 20%, rgba(255, 168, 212, 0.16), transparent 22%),
    radial-gradient(circle at 76% 14%, rgba(155, 255, 200, 0.14), transparent 24%),
    linear-gradient(transparent 0 18px, rgba(255, 255, 255, 0.03) 18px 19px, transparent 19px),
    linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.03) 18px 19px, transparent 19px);
  background-size: auto, auto, auto, 19px 19px, 19px 19px;
}

.theme-starlight-notes::before {
  background:
    linear-gradient(145deg, rgba(11, 15, 29, 0.98), rgba(22, 18, 35, 0.94)),
    radial-gradient(circle at 12% 12%, rgba(155, 213, 255, 0.14), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(255, 214, 147, 0.1), transparent 18%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 100% 36px;
}

.theme-retro-arcade::before {
  background:
    linear-gradient(160deg, rgba(12, 10, 28, 0.98), rgba(34, 12, 40, 0.95)),
    linear-gradient(rgba(0, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 170, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 20% 15%, rgba(255, 55, 166, 0.16), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(0, 226, 255, 0.18), transparent 28%);
  background-size: auto, 34px 34px, 34px 34px, auto, auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

code {
  font-family: "Consolas", "Courier New", monospace;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
}

.site-main,
.admin-main {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(10, 9, 18, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner,
.admin-header__inner {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-lockup__avatar,
.profile-showcase__avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-color) 42%, white), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-lockup__avatar img,
.profile-showcase__avatar img,
.image-choice-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-lockup__avatar span {
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand-lockup__text strong {
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: 1.05rem;
}

.brand-lockup__text small {
  color: var(--text-soft);
}

.brand-lockup__mood {
  color: var(--accent-soft);
}

.site-nav,
.admin-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-nav a,
.admin-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--text-soft);
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.admin-nav a:hover,
.admin-nav a.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.site-nav__admin-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav__admin-link:hover {
  border-color: color-mix(in srgb, var(--accent-color) 35%, white);
  background: rgba(255, 255, 255, 0.11);
}

.card-panel {
  background: linear-gradient(180deg, var(--surface-gradient-start), var(--surface-gradient-end));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.hero-card--home {
  margin-top: 0.4rem;
}

.hero-copy,
.hero-art {
  padding: 1.8rem;
}

.hero-copy {
  background: linear-gradient(180deg, var(--hero-gradient-start), var(--hero-gradient-end));
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -5% -20% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-color) 25%, white), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.hero-stack {
  display: grid;
  gap: 1rem;
}

.hero-art {
  min-height: 260px;
  display: grid;
  place-items: center;
}

.hero-copy h1,
.page-banner h1,
.post-layout h1,
.empty-state h1,
.admin-section h1,
.admin-hero h1 {
  font-family: "Georgia", "Palatino Linotype", serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  margin: 0.3rem 0 0.9rem;
  max-width: 12ch;
}

.hero-vibe-line {
  margin: 0 0 1rem;
  color: var(--accent-soft);
  font-size: 1.02rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--accent-soft);
}

.hero-badges,
.profile-showcase__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.hero-actions,
.form-actions,
.link-stack,
.admin-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button {
  color: #140f1f;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color) 58%, white));
  font-weight: 700;
}

.secondary-button {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ghost-button {
  color: var(--text-soft);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ghost-button--danger {
  color: #ffb6c2;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.example-card:hover {
  transform: translateY(-1px);
}

.text-link {
  color: var(--accent-soft);
  font-weight: 700;
}

.page-banner {
  padding: 1rem 0 1.4rem;
}

.page-banner--wide {
  max-width: 860px;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0.25rem 0 0.45rem;
}

.page-banner p:last-child {
  color: var(--text-soft);
  max-width: 64ch;
}

.content-grid,
.blog-grid,
.favorites-grid,
.playground-layout,
.stats-grid,
.admin-card-grid,
.spotlight-grid,
.example-grid,
.image-choice-grid,
.choice-grid,
.lesson-grid {
  display: grid;
  gap: 1.15rem;
}

.content-grid,
.content-grid--stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-grid,
.favorites-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.playground-layout {
  grid-template-columns: 1.04fr 0.96fr;
}

.admin-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.image-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.example-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.lesson-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading--spread {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2,
.card-panel h2,
.card-panel h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: "Georgia", "Palatino Linotype", serif;
}

.rich-text p:first-child {
  margin-top: 0;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text a {
  color: var(--accent-soft);
  text-decoration: underline;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.25rem;
}

.rich-text blockquote {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent-color);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.rich-text--post {
  font-size: 1.04rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.pill--accent {
  background: color-mix(in srgb, var(--accent-color) 22%, rgba(255, 255, 255, 0.06));
  color: white;
}

.pill--soft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.profile-showcase {
  display: grid;
  gap: 1rem;
  min-height: 210px;
}

.profile-showcase__top {
  display: flex;
  gap: 0.95rem;
  align-items: center;
}

.profile-showcase__avatar {
  width: 4.4rem;
  height: 4.4rem;
}

.profile-showcase--soft-card {
  background:
    linear-gradient(180deg, rgba(52, 37, 78, 0.9), rgba(20, 15, 33, 0.97)),
    rgba(255, 255, 255, 0.03);
}

.profile-showcase--sticker-stack {
  position: relative;
}

.profile-showcase--sticker-stack::before {
  content: "";
  position: absolute;
  inset: 12px -6px -8px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  transform: rotate(-2deg);
  z-index: -1;
}

.profile-showcase--arcade-badge {
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--accent-color) 28%, white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
}

.feature-callout,
.home-side-note,
.recent-posts-panel,
.lab-starter-panel {
  padding: 1.5rem;
}

.spotlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.1rem;
}

.spotlight-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spotlight-card p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
}

.post-card {
  overflow: hidden;
  display: grid;
  gap: 0.8rem;
}

.post-card--featured {
  box-shadow: 0 28px 70px rgba(12, 10, 23, 0.45);
}

.post-card__cover,
.post-layout__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-card__meta,
.post-layout__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-card small,
.admin-post-row small,
.mini-post small {
  color: var(--text-muted);
}

.post-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.8rem;
}

.post-layout__back {
  margin-bottom: 1rem;
  display: inline-flex;
}

.post-layout__cover-frame {
  margin-bottom: 1.2rem;
}

.post-layout__summary {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.favorites-card p {
  color: var(--text-soft);
}

.favorites-list {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.favorites-list li + li {
  margin-top: 0.45rem;
}

.playground-panel {
  display: flex;
  flex-direction: column;
}

.playground-preview {
  min-height: 380px;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.playground-example-meta {
  margin-bottom: 0.85rem;
  display: grid;
  gap: 0.4rem;
}

.example-card {
  text-align: left;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  display: grid;
  gap: 0.4rem;
}

.example-card.is-active,
.choice-card.is-selected,
.image-choice-card.is-selected {
  border-color: color-mix(in srgb, var(--accent-color) 45%, white);
  background: rgba(255, 255, 255, 0.08);
}

.example-card__category {
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
}

.lesson-grid .tag-guide__item,
.tag-guide__item {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.85rem;
}

.tag-guide {
  display: grid;
  gap: 0.7rem;
}

.tag-guide__row {
  display: grid;
  gap: 0.25rem;
}

.safety-list,
.admin-tip-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-label {
  font-weight: 700;
  color: var(--text-soft);
}

.field-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.input-field,
.textarea-field,
.color-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(9, 10, 18, 0.72);
  color: white;
  padding: 0.9rem 1rem;
}

.input-field:focus,
.textarea-field:focus,
.color-input:focus {
  border-color: color-mix(in srgb, var(--accent-color) 45%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 12%, transparent);
}

.textarea-field {
  min-height: 170px;
  resize: vertical;
}

.textarea-field--short {
  min-height: 110px;
}

.textarea-field--large {
  min-height: 340px;
}

.textarea-field--playground {
  min-height: 380px;
}

.color-input {
  min-height: 3.25rem;
  padding: 0.35rem;
}

.alerts {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alert {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.alert p {
  margin: 0.4rem 0 0;
}

.alert ul {
  margin: 0.6rem 0 0 1.2rem;
}

.alert--success {
  background: rgba(111, 255, 193, 0.12);
  color: #d9ffef;
}

.alert--error {
  background: rgba(255, 133, 164, 0.14);
  color: #ffe0ea;
}

.empty-state {
  max-width: 720px;
  margin: 3rem auto 0;
  text-align: center;
  padding: 2rem;
}

.empty-state--inline {
  margin: 0;
  max-width: none;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 14, 0.45);
}

.site-footer__inner {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  color: var(--text-muted);
}

.lab-card,
.lab-note {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.lab-card {
  background: rgba(255, 255, 255, 0.06);
}

.lab-note {
  background: rgba(255, 255, 255, 0.03);
}

.lab-section {
  display: grid;
  gap: 0.9rem;
}

.lab-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.lab-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 980px) {
  .hero-card,
  .content-grid,
  .content-grid--stack,
  .playground-layout,
  .admin-card-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .admin-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .section-heading--spread,
  .post-card__meta,
  .post-layout__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-main,
  .admin-main {
    width: min(var(--content-width), calc(100% - 1rem));
  }

  .card-panel,
  .hero-copy,
  .hero-art,
  .post-layout,
  .feature-callout,
  .home-side-note,
  .recent-posts-panel,
  .lab-starter-panel {
    padding: 1.1rem;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .example-grid,
  .choice-grid,
  .image-choice-grid {
    grid-template-columns: 1fr;
  }
}
