/* Tokens, type, header, nav, sidebar and footer are atomdrift.org's, so the two
   sites read as one family. Change them there first. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/oxanium-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/oxanium-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --carbon: #0a0a0a;
  --graphite: #404040;
  --iron: #52525b;
  --slate: #6b7280;
  --mist: #f5f5f5;
  --white: #ffffff;
  --cream: #fafaf9;
  --border: #e8e8e8;
  --atomdrift-blue: #2563eb;
  --atomdrift-blue-dim: rgba(59, 130, 246, 0.1);
  --toxic: #d0ff00;
  --toxic-muted: #9abe25;
  --toxic-dark: #4a6b0f;
  --toxic-dim: rgba(208, 255, 0, 0.14);
}

html { font-size: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--carbon);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: var(--atomdrift-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--atomdrift-blue); outline-offset: 2px; border-radius: 2px; }
.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--carbon);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
#main-content:focus { outline: none; }
code, .mono { font-family: 'SF Mono', Consolas, monospace; font-size: 0.92em; }
:not(pre) > code { background: var(--mist); padding: 1px 5px; border-radius: 3px; }

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0 14px;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-block a {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.atom-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Oxanium', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--carbon);
  line-height: 1;
}

.logo-accent { color: var(--toxic-muted); }

.logo-tagline {
  font-size: 14px;
  color: var(--iron);
  margin-top: 3px;
  letter-spacing: 0.2px;
}

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

.header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--carbon);
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.header-links a:hover { background: var(--graphite); }

/* ========== TOXIC STRIPE ========== */
.toxic-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--toxic) 0%, var(--toxic-muted) 50%, transparent 100%);
}

/* ========== LEDE ========== */
.lede {
  max-width: 1000px;
  margin: 0 auto;
  padding: 34px 24px 10px;
}

.lede h1 {
  font-size: clamp(25px, 3.6vw, 35px);
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: -0.8px;
  max-width: 820px;
}

.mark {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--toxic) 62%, var(--toxic) 92%, transparent 92%);
}

.lede-sub {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 13px;
  color: var(--iron);
  margin-top: 20px;
}

/* ========== MAIN LAYOUT ========== */
.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
}

.main-full {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

/* ========== CONTENT ========== */
.content h1 {
  font-family: 'Oxanium', sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.content p {
  margin-bottom: 12px;
  color: #1a1a1a;
  max-width: 65ch;
}

.content .fine {
  font-size: 14px;
  color: var(--iron);
}

/* ========== PLANS ========== */
.plans {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 20px;
  font-size: 14px;
  line-height: 1.4;
}

.plans th,
.plans td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: baseline;
  color: var(--graphite);
}

.plans thead th {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--iron);
  border-bottom: 2px solid var(--atomdrift-blue);
}

.plans tbody th {
  width: 40%;
  font-weight: 400;
}

.plans .price th {
  font-family: 'Oxanium', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--carbon);
}

.plans .price td {
  font-family: 'Oxanium', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--carbon);
  white-space: nowrap;
}

.plans .note,
.plans .per {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--iron);
}

.plans .note { display: block; }

.cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  background: var(--carbon);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.cta:hover { background: var(--graphite); }

/* ========== SIDEBAR ========== */
.callout {
  background: var(--carbon);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--toxic);
}

.callout strong {
  font-family: 'Oxanium', sans-serif;
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--toxic);
}

.callout p {
  font-size: 14px;
  color: #a1a1aa;
  margin-bottom: 10px;
}

.callout a {
  display: inline-block;
  color: var(--carbon);
  background: var(--toxic);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.callout a:hover {
  background: var(--toxic-muted);
  color: var(--white);
}

.sidebar h3 {
  font-family: 'Oxanium', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--iron);
  border-bottom: 2px solid var(--atomdrift-blue);
  padding-bottom: 5px;
  margin-bottom: 10px;
  margin-top: 20px;
}

.sidebar ul {
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
}

.sidebar li { padding: 5px 0; }
.sidebar li::before { content: "\203A\00a0"; color: var(--iron); }
.sidebar li a { text-decoration: none; }
.sidebar li a:hover { text-decoration: underline; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--carbon);
  color: #a1a1aa;
  font-size: 14px;
  padding: 18px 0;
  margin-top: 32px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--toxic);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a { color: #93c5fd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ========== RESPONSIVE ========== */
/* The plans table needs the full width; below it the sidebar drops under. */
@media (max-width: 900px) {
  .main { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  .footer-inner { text-align: center; }

  /* Three price columns on a phone: smaller figures, and the unit drops out
     of the way onto its own line. */
  .plans .price td { font-size: 17px; }
  .plans .per { display: block; }
  .plans tbody th { width: 34%; }
}
