@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #fbf7f0;
  --bg-tint: #f4ecdf;
  --surface: #fffdf9;
  --surface-2: #f8f1e6;
  --ink: #211a13;
  --ink-soft: #473d33;
  --muted: #776a5c;
  --line: #e8dcc9;
  --line-strong: #d7c6ae;
  --accent: #b8420f;
  --accent-hover: #94330a;
  --accent-soft: #f7e2d3;
  --accent-ink: #fff9f4;
  --green: #2f5d50;
  --shadow-sm: 0 1px 2px rgba(33, 26, 19, 0.05);
  --shadow-md: 0 1px 2px rgba(33, 26, 19, 0.04), 0 18px 40px -22px rgba(33, 26, 19, 0.28);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1120px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14110e;
  --bg-tint: #1a1612;
  --surface: #1f1a15;
  --surface-2: #251f18;
  --ink: #f5eee3;
  --ink-soft: #ded3c3;
  --muted: #b4a695;
  --line: #362d24;
  --line-strong: #4b3e32;
  --accent: #f08a4b;
  --accent-hover: #ffa76e;
  --accent-soft: #342117;
  --accent-ink: #1d120b;
  --green: #93c3b2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.2), 0 20px 44px -24px rgba(0, 0, 0, 0.7);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-inner {
  max-width: 760px;
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.06rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}

.brand-mark .mark {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.main-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-icon {
  display: inline-flex;
}

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

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: inline-flex;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-ghost svg {
  width: 15px;
  height: 15px;
}

.btn-ghost:hover {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--accent);
}

/* Hero */

.hero {
  padding-block: 64px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.45rem, 5.1vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero .lead {
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-meta {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.hero-card {
  position: relative;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(10px);
  opacity: 0.9;
  z-index: 0;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-quote {
  margin: 4px 0 0;
}

.hero-quote .random-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.hero-quote footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Sections */

.section {
  padding-block: 54px;
}

.section-tinted {
  border-block: 1px solid var(--line);
  background: var(--bg-tint);
}

.section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.15rem);
  line-height: 1.15;
}

.section-head p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-head h2 + .category-grid {
  margin-top: 26px;
}

/* Category cards */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 14px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 48px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.category-name {
  font-family: var(--font-serif);
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.category-count {
  color: var(--muted);
  font-size: 12.5px;
}

.category-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-4px, -50%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.category-arrow svg {
  width: 18px;
  height: 18px;
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Mini + feature cards */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.mini-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.mini-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.mini-text {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

.mini-link svg {
  width: 15px;
  height: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-block: 28px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.feature-link svg {
  width: 15px;
  height: 15px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.highlight-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.highlight-card > span:first-child {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.highlight-card p {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: start;
}

.steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps li {
  position: relative;
  padding-left: 46px;
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.steps strong {
  color: var(--ink);
}

.note-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.check-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Breadcrumbs + page head */

.breadcrumbs {
  padding-top: 28px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.page-head {
  padding-block: 30px 18px;
}

.page-head h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-head .lead {
  margin-top: 16px;
  max-width: 70ch;
}

/* Toolbar + search */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block: 24px 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: min(100%, 320px);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.filter-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 12.5px;
}

/* Random card */

.random-card {
  margin-block: 18px 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.random-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.random-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.random-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.random-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.random-hint {
  color: var(--muted);
  font-size: 11.5px;
}

/* Quote list */

.quote-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.quote-item {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.16s ease;
}

.quote-item:hover {
  border-color: var(--line-strong);
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.07rem;
  line-height: 1.62;
  color: var(--ink);
}

.quote-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.quote-source {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* Caption / bio / status */

.caption-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.caption-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.16s ease;
}

.caption-card:hover {
  border-color: var(--line-strong);
}

.caption-card p {
  font-family: var(--font-serif);
  font-size: 1.03rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.caption-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.caption-footer > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
}

.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.bio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.bio-card p {
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.status-card p {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Generator */

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.tool-copy h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  line-height: 1.15;
}

.tool-copy > p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tool-row {
  display: flex;
  gap: 10px;
}

.tool-row select {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 14px;
  cursor: pointer;
}

.tool-row select:focus {
  border-color: var(--accent);
  outline: none;
}

.tool-row .btn {
  flex-shrink: 0;
}

.generator-result {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.generator-result[hidden] {
  display: none;
}

.generator-text {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink);
}

.generator-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.generator-note {
  color: var(--muted);
  font-size: 11.5px;
}

/* FAQ */

.faq-section {
  padding-block: 46px;
}

.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 17px 40px 17px 0;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 72ch;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Prose */

.reading {
  max-width: 800px;
}

.prose {
  color: var(--ink-soft);
}

.prose h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.2;
}

.prose h2:first-child {
  margin-top: 8px;
}

.prose p {
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-block: 7px;
  font-size: 0.97rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--accent-hover);
}

.prose strong {
  color: var(--ink);
}

/* Share strip */

.share-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-block: 34px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.share-strip .eyebrow {
  margin-bottom: 2px;
}

.share-strip p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.94rem;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Ads */

.ad {
  position: relative;
  margin-block: 30px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.ad-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ad-native-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  overflow: hidden;
}

.ad-native-body:empty::before {
  content: "Ruang iklan";
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-banner {
  max-width: 260px;
  margin-inline: auto;
}

.ad-banner-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  overflow: hidden;
}

.ad-banner-body:empty::before {
  content: "Ruang iklan";
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  text-align: left;
}

.sponsor-card strong {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 600;
}

.sponsor-card span {
  color: var(--muted);
  font-size: 12.5px;
}

.sponsor-card .btn {
  margin-top: 4px;
}

/* Footer */

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-brand p {
  max-width: 42ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-brand .footer-note {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.85;
}

.footer-col h2 {
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a {
  display: block;
  padding-block: 4px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 36px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-made {
  opacity: 0.9;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 404 */

.notfound {
  padding-block: 80px 60px;
  text-align: center;
}

.notfound h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.notfound .lead {
  margin: 14px auto 0;
}

.notfound .hero-actions {
  justify-content: center;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-card {
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-card {
    animation-delay: 0.08s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero h1 {
    max-width: 17ch;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tool-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

@media (max-width: 760px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding-block: 10px;
  }

  .brand {
    order: 1;
  }

  .theme-toggle {
    order: 2;
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    padding-bottom: 2px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-block: 36px 28px;
  }

  .hero-card {
    padding: 22px 20px 18px;
  }

  .section {
    padding-block: 42px;
  }

  .page-head {
    padding-block: 22px 12px;
  }

  .tool-card {
    padding: 22px;
  }

  .tool-row {
    flex-direction: column;
  }

  .tool-row .btn {
    width: 100%;
  }

  .ad-banner {
    max-width: 100%;
  }

  .ad-banner-body {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    margin-top: 26px;
  }
}

@media (max-width: 620px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    padding: 14px 32px 14px 14px;
    border-radius: 13px;
  }

  .category-name {
    font-size: 1rem;
  }

  .category-arrow {
    right: 12px;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 18px;
  }

  .brand-name {
    font-size: 1.16rem;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-actions .btn {
    padding-inline: 16px;
    white-space: nowrap;
  }

  .page-head h1 {
    font-size: 2rem;
  }

  .quote-item,
  .random-card {
    padding: 17px 18px;
  }

  .quote-footer {
    align-items: flex-start;
  }

  .share-strip {
    padding: 18px;
  }

  .share-strip .share-actions {
    width: 100%;
  }

  .share-strip .share-actions .btn {
    flex: 1;
  }
}

.ad-banner .sponsor-card {
  align-items: center;
  padding: 22px 16px;
  text-align: center;
}

.ad-banner .sponsor-card strong {
  font-size: 1.1rem;
}
