:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  --bg: 255 255 255; /* --theme */
  --surface: 255 255 255; /* --entry */
  --panel: 255 255 255; /* --entry */
  --ink: 31 31 31; /* --content */
  --muted: 108 108 108; /* --secondary */
  --line: 238 238 238; /* --border */
  --line-strong: 238 238 238;
  --brand: 30 30 30; /* --primary */
  --brand-dark: 0 0 0;
  --success: #3b5d4e;
  --danger: #a33a3a;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html.dark {
  --bg: 29 30 32; /* --theme */
  --surface: 46 46 51; /* --entry */
  --panel: 46 46 51; /* --entry */
  --ink: 196 196 197; /* --content */
  --muted: 155 156 157; /* --secondary */
  --line: 51 51 51; /* --border */
  --line-strong: 51 51 51;
  --brand: 218 218 219; /* --primary */
  --brand-dark: 196 196 197; /* --content */
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  color: rgb(var(--brand));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: rgb(var(--ink));
  background: rgb(var(--bg));
  transition: background-color 150ms ease, color 150ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

.app-shell {
  display: grid;
  /* Preview is the only panel shown with neither the form nor the assistant
     open — both are opt-in via their toolbar toggles (form starts closed,
     chat starts open — see the .form-open/.chat-open default classes on
     .app-shell in builder.html). */
  grid-template-columns: minmax(360px, 1fr);
  gap: 12px;
  height: calc(100vh - 73px); /* Header is approx 65px + margins */
  padding: 18px;
}

.app-shell.form-open {
  grid-template-columns: minmax(320px, var(--form-panel-width, 1fr)) 12px minmax(360px, 1fr);
}

.app-shell.chat-open {
  grid-template-columns: minmax(360px, 1fr) 12px minmax(280px, var(--chat-panel-width, 35vw));
}

.app-shell.form-open.chat-open {
  grid-template-columns:
    minmax(320px, var(--form-panel-width, 1fr))
    12px
    minmax(360px, 1fr)
    12px
    minmax(280px, var(--chat-panel-width, 33vw));
}

.form-panel,
#panel-resizer,
.chat-panel,
#chat-resizer {
  display: none;
}

.app-shell.form-open .form-panel {
  display: block;
}

.app-shell.form-open #panel-resizer {
  display: block;
}

.app-shell.chat-open .chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.app-shell.chat-open #chat-resizer {
  display: block;
}

.form-hero {
  display: grid;
  margin-bottom: 5px;
  padding: 10px 10px 0px 10px;
  /* border: 1px solid rgb(var(--line)); */
  /* border-radius: 18px; */
  /* background: rgb(var(--bg)); */
  /* box-shadow: var(--shadow-soft); */
}


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

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw + 1rem, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0;
  max-width: 58ch;
  color: rgb(var(--muted));
  font-size: 0.98rem;
  line-height: 1.6;
}

.status-chip-live {
  justify-self: end;
}

.panel-resizer {
  align-self: stretch;
  border-radius: 10px;
  cursor: col-resize;
  position: relative;
  touch-action: none;
  background: transparent;
  transition: background 120ms ease;
}

.panel-resizer::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 14px;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: rgb(var(--line));
  transform: translateX(-50%);
  transition: background 120ms ease, width 120ms ease;
}

.panel-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 44px;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  background:
    linear-gradient(rgb(var(--muted)), rgb(var(--muted))) center 12px / 1.5px 1.5px no-repeat,
    linear-gradient(rgb(var(--muted)), rgb(var(--muted))) center 20px / 1.5px 1.5px no-repeat,
    linear-gradient(rgb(var(--muted)), rgb(var(--muted))) center 28px / 1.5px 1.5px no-repeat,
    rgb(var(--surface));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translate(-50%, -50%);
  transition: border-color 120ms ease, box-shadow 120ms ease, width 120ms ease;
}

.panel-resizer:hover::before,
.panel-resizer:focus-visible::before,
.app-shell.is-resizing .panel-resizer::before {
  width: 2.5px;
  background: rgb(var(--brand));
}

.panel-resizer:hover::after,
.panel-resizer:focus-visible::after,
.app-shell.is-resizing .panel-resizer::after {
  width: 8px;
  border-color: rgb(var(--brand));
  box-shadow: 0 8px 22px rgb(var(--brand) / 0.1);
}

.panel-resizer:hover,
.app-shell.is-resizing .panel-resizer {
  background: rgb(var(--brand) / 0.1);
}

.panel-resizer:focus-visible {
  outline: 2px solid rgb(var(--brand));
  outline-offset: 3px;
}

.app-shell.is-resizing,
.app-shell.is-resizing * {
  cursor: col-resize;
  user-select: none;
}

.panel {
  background: rgb(var(--panel));
  border: 1px solid rgb(var(--line));
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 24px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

#resume-form {
  display: grid;
  gap: 14px;
}

#sections-container {
  display: grid;
  gap: 14px;
}

.form-panel h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.form-panel p {
  margin: 0 0 18px;
  color: rgb(var(--muted));
  font-size: 0.9rem;
}

label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: rgb(var(--ink));
}

input,
textarea {
  border: 1px solid rgb(var(--line));
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.94rem;
  font: inherit;
  font-weight: 400;
  color: rgb(var(--ink));
  background: rgb(var(--surface));
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease, transform 120ms ease;
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.4;
}

input:focus,
textarea:focus {
  border-color: rgb(var(--brand));
  background: rgb(var(--bg));
  box-shadow: 0 0 0 4px rgb(var(--brand) / 0.1);
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: rgb(var(--muted));
}

input[type="checkbox"] {
  accent-color: rgb(var(--brand));
}

h2 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.hint {
  margin: 2px 0;
  font-size: 0.82rem;
  color: rgb(var(--muted));
}

.section-heading {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading-inline {
  margin: 0;
  padding: 0;
}

.form-section {
  padding: 18px;
  border: 1px solid rgb(var(--line));
  border-radius: 16px;
  background: rgb(var(--surface));
  box-shadow: var(--shadow-soft);
}

.section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  color: rgb(var(--ink));
  cursor: pointer;
}

.section-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.section-add {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1;
  flex: 0 0 auto;
}

.entry-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.entry-card {
  border: 1px solid rgb(var(--line));
  border-radius: 16px;
  background: rgb(var(--bg));
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.entry-card-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.entry-field {
  margin: 0;
  display: grid;
  gap: 6px;
}

.entry-field span {
  font-size: 0.8rem;
  color: rgb(var(--muted));
}

.entry-input,
.point-input {
  width: 100%;
}

.point-input,
#skills {
  min-width: 0;
  overflow-wrap: anywhere;
}

textarea.point-input {
  min-height: 42px;
  resize: vertical;
}

.points-box {
  margin-top: 12px;
  border-top: 1px dashed rgb(var(--line-strong));
  padding-top: 10px;
}

.points-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.point-add {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.points-list {
  display: grid;
  gap: 8px;
}

.point-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.row-remove,
.entry-remove {
  border: 1px solid rgb(var(--line));
  background: rgb(var(--surface));
  color: rgb(var(--muted));
}

.row-remove {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.row-remove:hover,
.entry-remove:hover {
  border-color: var(--danger);
  background: rgba(163, 58, 58, 0.1);
  color: var(--danger);
}

.entry-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.entry-remove {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.header-details-group {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgb(var(--line));
  border-radius: 16px;
  background: rgb(var(--surface));
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgb(var(--line-strong));
  background: transparent;
}

.contact-grid .contact-field {
  margin: 0;
}

.contact-field {
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 10px;
}

.contact-field span {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: rgb(var(--muted));
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field input[type="url"] {
  grid-column: 1;
}

.contact-field input[type="checkbox"] {
  grid-column: 2;
  justify-self: end;
}

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

button,
.button {
  border: 0;
  border-radius: 999px;
  background: rgb(var(--brand));
  color: rgb(var(--bg));
  padding: 9px 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease, border-color 120ms ease;
}
/* Normalize font metrics so <button> and <a class="button"> match exactly */
.button,
button {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.section-add,
.point-add {
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
}

.section-add {
  font-size: 1.1rem;
}

.point-add {
  font-size: 1.05rem;
}

button:hover,
.button:hover {
  background: rgb(var(--brand-dark));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.button.secondary {
  background: rgb(var(--brand) / 0.1);
  color: rgb(var(--brand));
  box-shadow: inset 0 0 0 1px rgb(var(--line));
}

.button.secondary:hover {
  background: rgb(var(--brand) / 0.1);
  border-color: rgb(var(--brand));
}

.button.secondary.is-active {
  background: rgb(var(--brand));
  color: rgb(var(--bg));
  box-shadow: none;
}

.button.secondary.is-active:hover {
  background: rgb(var(--brand-dark));
}

.button.icon-only {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  flex: 0 0 auto;
}

.button.icon-only svg {
  width: 18px;
  height: 18px;
}

button:active,
.button:active {
  transform: translateY(1px);
}

.error {
  margin-top: 10px;
  white-space: pre-wrap;
  color: var(--danger);
  font-size: 0.86rem;
}

.preview-panel {
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.preview-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 0 2px 12px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid rgb(var(--line));
}

.preview-heading {
  display: grid;
  gap: 6px;
}

.preview-heading h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

#status {
  color: rgb(var(--brand));
  font-size: 0.85rem;
}

.preview-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.preview-actions .button {
  padding: 6px 10px;
  font-size: 0.88rem;
  border-radius: 999px;
}

.preview-actions .button.secondary {
  padding: 6px 10px;
}

.preview-actions .button.icon-only {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
}

#pdf-frame {
  width: 100%;
  flex: 1 1 auto;
  border: 1px solid rgb(var(--line));
  border-radius: 16px;
  background: rgb(var(--bg));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}



/* Modal styles for reordering */
.modal {
  padding: 0;
  border: 1px solid rgb(var(--line));
  border-radius: 18px;
  background: rgb(var(--surface));
  box-shadow: var(--shadow);
  color: rgb(var(--ink));
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.modal-content {
  padding: 24px;
  min-width: 360px;
}

.reorder-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.reorder-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: rgb(var(--bg));
  border: 1px solid rgb(var(--line));
  margin-bottom: 8px;
  border-radius: 14px;
  cursor: grab;
}

.reorder-item.dragging {
  opacity: 0.5;
  background: rgb(var(--surface));
}

.reorder-handle {
  margin-right: 12px;
  cursor: grab;
  font-size: 1.2rem;
  color: rgb(var(--muted));
}

.reorder-text {
  font-weight: 500;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.instructions-content {
  width: min(680px, 92vw);
  max-width: 680px;
  max-height: 70vh;
  overflow-y: auto;
}

.instructions-steps {
  margin: 16px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instructions-steps li {
  line-height: 1.5;
}

.instructions-steps ul {
  list-style: disc;
  margin: 8px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.instructions-steps ul li {
  font-size: 0.92rem;
  color: rgb(var(--muted));
}

.instructions-steps code {
  background: rgb(var(--bg));
  border: 1px solid rgb(var(--line));
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.85em;
  color: rgb(var(--ink));
}

      body {
        overflow: auto;
      }

      .page-container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
      }

      .header {
        padding: 0.5rem 2rem;
        border-bottom: 1px solid rgb(var(--line));
      }

      .logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
      }

      .logo h1 {
        font-size: 1.25rem;
        margin: 0;
      }

      .main-content {
        flex-grow: 1;
        padding: 0 2rem;
      }

      .hero-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 2rem;
        padding: 4rem 0;
        border-bottom: 1px solid rgb(var(--line));
      }

      .hero-content h2 {
        font-size: 3rem;
        line-height: 1.2;
        margin: 0 0 1rem;
      }

      .hero-content p {
        font-size: 1.125rem;
        color: rgb(var(--muted));
        margin: 0 0 2rem;
      }

      .hero-actions .button {
        font-size: 1.125rem;
        padding: 0.75rem 1.5rem;
      }

      .hero-image {
        text-align: center;
      }

      .hero-image img {
        width: 100%;
        max-width: 400px;
        height: auto;
      }

      .features-section {
        padding: 4rem 0;
      }

      .features-section h2 {
        text-align: center;
        font-size: 2.5rem;
        margin: 0 0 3rem;
      }

      .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
      }

      .feature-card {
        background-color: rgb(var(--surface));
        padding: 2rem;
        border-radius: 1rem;
        border: 1px solid rgb(var(--line));
      }

      .feature-card h3 {
        font-size: 1.5rem;
        margin: 0 0 1rem;
      }

      .feature-card p {
        color: rgb(var(--muted));
        margin: 0;
      }

      .footer {
        padding: 1rem 2rem;
        border-top: 1px solid rgb(var(--line));
        text-align: center;
        color: rgb(var(--muted));
      }

/* === Added for Login Flow === */

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.donate-status {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.donate-status.is-error {
  color: rgb(220, 38, 38);
}

.account-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.tier-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tier-badge.tier-free {
  background: rgb(var(--muted) / 0.15);
  color: rgb(var(--muted));
}

.tier-badge.tier-premium {
  background: rgb(var(--brand) / 0.15);
  color: rgb(var(--brand));
}

.account-status-detail {
  margin: 0;
  color: rgb(var(--muted));
  font-size: 0.9rem;
  flex-grow: 1;
}

.button.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.secondary-button {
  background: transparent;
  color: rgb(var(--brand));
  box-shadow: inset 0 0 0 1px rgb(var(--brand));
}

.button.secondary-button:hover {
  background: rgb(var(--brand) / 0.1);
}

.hero-subtext {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgb(var(--muted));
}

.header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-user .username {
  font-weight: 600;
  color: rgb(var(--ink));
}

.header .logo {
  flex-grow: 1;
}


.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.button.danger-button {
  background-color: var(--danger);
  color: #fff;
}

.button.danger-button:hover {
  background-color: #c53c3c; /* A bit darker red */
}

/* === Theme toggle === */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: rgb(var(--brand));
  box-shadow: none;
}

.theme-toggle:hover {
  background: rgb(var(--brand) / 0.1);
  color: rgb(var(--muted));
  box-shadow: none;
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
}

/* === Blog === */

.blog-teaser-section {
  padding: 4rem 0;
  border-top: 1px solid rgb(var(--line));
}

.blog-teaser-section h2,
.blog-index-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin: 0 0 3rem;
}

.blog-teaser-cta {
  text-align: center;
  margin-top: 2rem;
}

.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
}

.blog-card-date {
  color: rgb(var(--muted));
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

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

.blog-index-section .blog-grid {
  grid-template-columns: 1fr;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* === Landing page: one full-screen section at a time === */

:root {
  --header-h: 64px;
}

body.landing-scroll-snap {
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--header-h);
  scroll-behavior: smooth;
}

body.landing-scroll-snap .header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(var(--bg));
}

.hero-section,
.features-section,
.blog-teaser-section {
  min-height: calc(100vh - var(--header-h));
  scroll-snap-align: start;
}

.hero-section {
  align-content: center;
}

.features-section,
.blog-teaser-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  body.landing-scroll-snap {
    scroll-behavior: auto;
  }
}

.blog-index-content,
.blog-post-content {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.blog-post .blog-back-link {
  display: inline-block;
  margin-bottom: 2rem;
}

.blog-post h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.blog-post-date {
  color: rgb(var(--muted));
  margin: 0 0 2rem;
}

.blog-post-body {
  line-height: 1.7;
  font-size: 1.05rem;
}

.blog-post-body h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.blog-post-body h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.blog-post-body p {
  margin: 0 0 1.25rem;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.blog-post-body li {
  margin: 0 0 0.5rem;
}

.blog-post-body code {
  background: rgb(var(--bg));
  border: 1px solid rgb(var(--line));
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.blog-post-body a {
  color: rgb(var(--brand));
}