/* Static /blog pages (seo/blog.ts). Standalone: no Tailwind, no rem root
   scaling — these pages never load the SPA stylesheet. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter/inter-latin-400-normal.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter/inter-latin-600-normal.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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter/inter-latin-700-normal.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter/inter-peso-400-normal.woff2') format('woff2');
  unicode-range: U+20B1;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter/inter-peso-600-normal.woff2') format('woff2');
  unicode-range: U+20B1;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter/inter-peso-700-normal.woff2') format('woff2');
  unicode-range: U+20B1;
}

:root {
  --brand: #ff6533;
  --brand-dark: #e5501f;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --page: #f6f7f9;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  height: 32px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}

.header-nav a {
  color: var(--ink);
  text-decoration: none;
}

.cta,
.header-nav a.cta {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cta:active {
  background: var(--brand-dark);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 16px 32px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

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

.article,
.index-section,
.related,
.cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page > h1 {
  margin-top: 8px;
}

.meta,
.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

h2 {
  margin: 28px 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

h3 {
  margin: 20px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.article > h2:first-of-type {
  margin-top: 20px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #fff4ef;
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.cta-box {
  text-align: center;
}

.cta-box p {
  margin-bottom: 12px;
}

.related h2,
.index-section h2 {
  margin-top: 0;
  font-size: 18px;
}

.related ul,
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.related li:first-child {
  border-top: 0;
}

.related a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 600;
}

.index-list li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.index-list li:first-child {
  border-top: 0;
}

.index-list a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
}

.index-title {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.index-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  max-width: 760px;
  margin: 0 auto 10px;
}

.rg-notice {
  color: var(--ink);
  font-weight: 600;
}

.footer-links,
.help-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  max-width: 760px;
  margin: 0 auto 8px;
}

.footer-links a,
.help-links a {
  color: var(--muted);
}

@media (min-width: 640px) {
  h1 {
    font-size: 32px;
  }

  .article,
  .index-section,
  .related,
  .cta-box {
    padding: 28px 32px;
  }
}
