@font-face {
  font-family: "Zolina";
  src: url("/fonts/zolina/fonnts.com-Zolina_Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zolina";
  src: url("/fonts/zolina/fonnts.com-Zolina_Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zolina";
  src: url("/fonts/zolina/fonnts.com-Zolina_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zolina";
  src: url("/fonts/zolina/fonnts.com-Zolina_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zolina";
  src: url("/fonts/zolina/fonnts.com-Zolina_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zolina";
  src: url("/fonts/zolina/fonnts.com-Zolina_Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Zolina, "Zolina Display", Georgia, "Times New Roman", serif;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #5f6b7a;
  --line: #d9e0ea;
  --accent: #cc0000;
  --accent-dark: #990000;
  --secondary-accent: #2c3e50;
  --nav-bg: #ffffff;
  --nav-text: var(--text);
  --footer-bg: var(--secondary-accent);
  --footer-text: #c7d1de;
  --error: #b42318;
  --success: #087443;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
}

.site-header__inner {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand {
  color: var(--nav-text);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.site-header__nav a {
  color: var(--nav-text);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header__nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.shell {
  flex: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 0;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--text);
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover {
  background: #eef4f3;
}

.panel,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.notice {
  margin-top: 18px;
}

.tool-return {
  display: flex;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.tool-return strong {
  margin-right: auto;
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  margin: 64px calc(50% - 50vw) 0;
  border-top: 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 32px max(16px, calc((100vw - 1120px) / 2)) 28px;
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer h2 {
  margin: 0 0 2px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer__note {
  margin: 18px 0 0;
}

.heading {
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 300;
  font-size: 6rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
}

a {
  color: var(--accent-dark);
}

.lede,
.muted,
.helper {
  color: var(--muted);
}

.helper {
  margin: 0;
  font-size: 0.95rem;
}

.stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.choice {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
}

.inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

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

label {
  font-weight: 700;
}

input,
select,
button,
.button {
  min-height: 44px;
  border-radius: 7px;
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0 12px;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--accent-dark);
}

button.secondary,
.button.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

button.secondary:hover,
.button.secondary:hover {
  background: #eef4f3;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button.compact {
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
}

.summary {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  color: var(--muted);
}

.summary strong {
  color: var(--text);
}

.summary-note {
  font-size: 0.95rem;
}

.message {
  min-height: 28px;
  margin-top: 18px;
  color: var(--muted);
}

.message.error,
.error {
  color: var(--error);
}

.message.success {
  color: var(--success);
}

.ad-slot {
  width: 100%;
  margin: 1.5rem auto;
  overflow: hidden;
  text-align: center;
}

.ad-slot[hidden] {
  display: none;
}

.ad-slot--leaderboard,
.ad-slot--footer {
  min-height: 90px;
}

.ad-slot--in-content {
  min-height: 250px;
}

.ad-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
}

.adsbygoogle {
  display: block;
  min-height: inherit;
}

.progress-wrap {
  width: 100%;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 200ms ease;
}

.progress-wrap.small {
  height: 10px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.status-grid > div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.playlist-list,
.batch-list {
  display: grid;
  gap: 10px;
}

.collapsible {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.collapsible summary {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.collapsible[open] summary {
  border-bottom: 1px solid var(--line);
}

.collapsible .batch-list {
  padding: 12px;
}

.playlist-item,
.batch-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}

.playlist-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 400;
}

.playlist-item input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.playlist-title {
  overflow-wrap: anywhere;
}

.batch-item {
  display: grid;
  gap: 10px;
}

.batch-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.batch-status {
  color: var(--muted);
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.site-nav,
.link-grid,
.page-list,
.article-list,
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-nav {
  margin-bottom: 18px;
}

.site-nav a,
.link-grid a {
  font-weight: 700;
}

.content {
  display: grid;
  gap: 18px;
}

.content section,
.content article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.article-prose {
  gap: 24px;
}

.article-prose section,
.article-prose article {
  border-top: 0;
  padding-top: 0;
}

.article-prose p,
.article-prose li {
  font-size: 1.02rem;
  line-height: 1.72;
}

.article-prose h2 {
  margin-top: 8px;
  font-size: 1.45rem;
}

.content ul,
.content ol {
  margin-top: 0;
}

.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 7px;
  padding: 14px;
  background: #f8fbfb;
}

.faq-item {
  display: grid;
  gap: 4px;
}

.page-list,
.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-list a,
.article-list li {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fff;
}

.article-list a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.article-list a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.article-list {
  padding-left: 0;
  list-style: none;
}

@media (max-width: 680px) {
  .site-header__inner {
    display: grid;
    width: min(100% - 24px, 1120px);
  }

  .site-header__nav {
    justify-content: flex-start;
  }

  .shell {
    width: min(100% - 24px, 920px);
    padding: 24px 0 0;
  }

  .panel,
  .notice {
    padding: 20px;
  }

  .inline,
  .status-grid,
  .page-list,
  .article-list,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .tool-return {
    display: grid;
  }

  .batch-heading {
    display: grid;
  }
}
