
:root {
  --pe-page: color-mix(in oklab, var(--ink) 2.5%, var(--white));
  --pe-sunken: color-mix(in oklab, var(--ink) 4%, var(--white));
  --pe-ink: var(--text-strong);
  --pe-body: color-mix(in oklab, var(--ink) 76%, var(--white));
  --pe-muted: color-mix(in oklab, var(--ink) 58%, var(--white));
  --pe-line: color-mix(in oklab, var(--ink) 9%, transparent);
  --pe-line-strong: color-mix(in oklab, var(--ink) 16%, transparent);
  --pe-accent: var(--accent-text);
  --pe-accent-soft: color-mix(in oklab, var(--red) 8%, var(--white));
  --pe-shadow: 0 1px 2px color-mix(in oklab, var(--ink) 5%, transparent);
  --pe-shadow-lg: 0 1px 2px color-mix(in oklab, var(--ink) 5%, transparent), 0 16px 32px -16px color-mix(in oklab, var(--ink) 18%, transparent);
  --bg-page: var(--pe-page);
}

html { background: var(--pe-page); }
body {
  background:
    radial-gradient(56% 520px at 50% 0, color-mix(in oklab, var(--red) 9%, transparent), transparent 72%) no-repeat,
    var(--pe-page);
  color: var(--pe-body);
}

body > header {
  background: color-mix(in oklab, var(--pe-page) 84%, transparent);
  box-shadow: none;
  border-bottom: 1px solid var(--pe-line);
  padding-inline: var(--page-pad);
}
body > header .nav {
  display: flex; align-items: stretch; justify-content: flex-start;
  flex-wrap: nowrap; gap: 0 32px; height: 64px;
  padding-inline: 0; max-width: calc(var(--max-w) - var(--page-pad) * 2);
}
body > header .brand { display: flex; align-items: center; gap: 10px; flex: none; }
body > header .brand-tile {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center;
  border-radius: var(--logo-tile-radius); background: var(--accent); color: var(--white);
}
body > header .brand-tile svg { width: 15px; height: 15px; }
body > header .wordmark { font-size: 18px; }
body > header .nav-links { display: flex; align-items: center; gap: 24px; flex: 1; }
body > header .nav-links a { font-size: 13px; color: var(--pe-body); white-space: nowrap; }
body > header .nav-links a:hover { color: var(--pe-ink); }
body > header .header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
body > header .header-actions a.nav-cta {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap;
  color: var(--brand-contrast); background: var(--brand); transition: background .15s;
}
body > header .header-actions a.nav-cta:hover { color: var(--brand-contrast); background: var(--brand-hover); }
.lang-menu { border-color: var(--pe-line); box-shadow: var(--pe-shadow-lg); }

body > header[data-rows="2"] .nav { flex-wrap: wrap; height: auto; column-gap: 16px; }
body > header[data-rows="2"] { padding-inline: 0; }
body > header[data-rows="2"] .nav { padding-inline: var(--page-pad); max-width: var(--max-w); }
body > header[data-rows="2"] .brand,
body > header[data-rows="2"] .header-actions { height: 64px; }
body > header[data-rows="2"] .header-actions { margin-left: auto; }
body > header[data-rows="2"] .nav-links {
  order: 9; flex: 0 0 100%; height: 40px; gap: 20px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  margin-inline: calc(var(--page-pad) * -1); padding-inline: var(--page-pad);
  width: calc(100% + var(--page-pad) * 2); flex-basis: calc(100% + var(--page-pad) * 2);
}
body > header[data-rows="2"] .nav-links::-webkit-scrollbar { display: none; }
body > header[data-compact="2"] [data-header-optional] { display: none; }
body:has(> header[data-rows="2"]) :is(section, .hero) { scroll-margin-top: 7.5rem; }

@media (max-width: 639px) {
  body > header .header-actions { gap: 6px; }
  body > header .header-actions a.nav-cta { padding: 0 14px; }
}
@media (max-width: 479px) {
  body > header .brand .wordmark { display: none; }
}

h1, h2, h3 { color: var(--pe-ink); }
section .eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .1em;
  color: var(--pe-accent); margin: 0 0 16px;
}

.site-header ~ section[id] > .wrap > h2,
.site-header ~ section[id] .section-head h2 {
  font-size: 48px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 500;
  max-width: 20ch; margin: 0 0 20px; text-wrap: balance;
}
.site-header ~ section[id] .section-head { margin-bottom: 56px; }
.site-header ~ section[id] .section-head .lede,
.site-header ~ section[id] > .wrap > .tools-intro {
  font-size: 17px; line-height: 1.65; color: var(--pe-body); max-width: 60ch; margin-top: 0;
}
.site-header ~ section[id] > .wrap > .tools-intro { margin-bottom: 56px; }
#guides > .wrap > h2 { margin-bottom: 56px; }
.site-header ~ section[id] .section-head .open-line {
  font-size: 24px; line-height: 1.45; font-weight: 400; letter-spacing: -0.015em;
  color: var(--pe-ink); max-width: 36ch; margin-top: 0;
}
@media (max-width: 640px) {
  .site-header ~ section[id] > .wrap > h2, .site-header ~ section[id] .section-head h2 { font-size: 32px; line-height: 1.1; }
  .site-header ~ section[id] .section-head { margin-bottom: 40px; }
  .site-header ~ section[id] .section-head .lede, .site-header ~ section[id] > .wrap > .tools-intro { font-size: 16px; }
  .site-header ~ section[id] > .wrap > .tools-intro { margin-bottom: 40px; }
  #guides > .wrap > h2 { margin-bottom: 40px; }
  .site-header ~ section[id] .section-head .open-line { font-size: 20px; }
}
:is(h1, h2, h3):lang(zh) { word-break: keep-all; overflow-wrap: anywhere; }
:is(h1, h2, h3):lang(ja) { word-break: auto-phrase; }
:is(h1, h2, h3):lang(ko) { word-break: keep-all; }
.site-header ~ section[id] > .wrap > h2:lang(zh),
.site-header ~ section[id] .section-head h2:lang(zh) {
  font-size: min(48px, calc((100vw - 2 * var(--page-pad)) / 11.4));
  max-width: 11.5em; line-height: 1.2;
}
:is(h1, h2, h3):is(:lang(zh), :lang(ja), :lang(ko)) { letter-spacing: 0 !important; }

.site-header ~ section[id] > .wrap { padding-top: 112px; padding-bottom: 112px; }
.site-header ~ section[id] + section[id], .site-header ~ .hero + section[id] { border-top: 1px solid var(--pe-line); }
@media (max-width: 640px) {
  .site-header ~ section[id] > .wrap { padding-top: 72px; padding-bottom: 72px; }
}

.hero .wrap { padding-top: 112px; padding-bottom: 96px; }
.hero h1 { color: var(--pe-ink); }
.hero .sub { font-weight: 400; color: var(--pe-body); line-height: 1.6; }
.hero .sub strong { font-weight: 500; }
.hero-ctas { gap: 12px; margin-top: 40px; }
@media (max-width: 640px) {
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
}

.hero > .wrap:has(> .hero-note) { display: flex; flex-direction: column; align-items: center; }
.hero > .wrap > .hero-note {
  order: -1; margin: 0 0 32px; padding: 6px 14px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--pe-line); border-radius: 999px; background: var(--surface-card);
  box-shadow: var(--pe-shadow);
  font-size: 13px; line-height: 1.45; color: var(--pe-body);
}
.hero > .wrap > .hero-note::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--green); box-shadow: 0 0 0 3px color-mix(in oklab, var(--green) 20%, transparent);
}
.hero > .wrap:has(> .hero-note) h1 {
  font-size: 72px; line-height: 1.02; letter-spacing: -0.045em; max-width: 15ch; text-wrap: balance;
}
.hero > .wrap:has(> .hero-note) h1:is(:lang(zh), :lang(ja), :lang(ko)) {
  font-size: clamp(32px, 8.6vw, 72px); line-height: 1.15; max-width: none;
}
.hero > .wrap:has(> .hero-note) .sub {
  font-size: 20px; max-width: 36em; margin-top: 24px; text-wrap: pretty;
}
@media (max-width: 1100px) {
  .hero > .wrap:has(> .hero-note) h1:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) { font-size: clamp(40px, 6.6vw, 72px); }
}
@media (max-width: 640px) {
  .hero > .wrap > .hero-note { display: block; max-width: 100%; margin-bottom: 24px; font-size: 13px; border-radius: 16px; padding: 6px 14px; }
  .hero > .wrap > .hero-note::before { display: inline-block; margin: 0 8px 1px 0; vertical-align: middle; }
  .hero > .wrap:has(> .hero-note) h1:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) { font-size: clamp(34px, 10.3vw, 40px); line-height: 1.05; letter-spacing: -0.04em; }
  .hero > .wrap:has(> .hero-note) .sub { font-size: 16px; line-height: 1.65; margin-top: 20px; }
  .hero > .wrap:has(> .hero-note) .hero-ctas { width: 100%; margin-top: 32px; }
  .hero > .wrap:has(> .hero-note) .hero-ctas .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
  .hero > .wrap:has(> .hero-note) .hero-ctas .btn-primary { flex-basis: 100%; }
}

.hero > .wrap:not(:has(> .hero-note)) h1 { line-height: 1.06; letter-spacing: -0.04em; }
.hero > .wrap[style*="text-align:left"] h1 { margin-left: 0; }
.hero > .wrap:not(:has(> .hero-note)) .sub { font-size: 20px; margin-top: 20px; max-width: 34em; }
@media (max-width: 640px) {
  .hero > .wrap:not(:has(> .hero-note)) .sub { font-size: 18px; }
}
@media (max-width: 400px) {
  .hero > .wrap:not(:has(> .hero-note)) h1:is(:lang(zh), :lang(ja), :lang(ko)) { font-size: 28px !important; }
}

.btn {
  justify-content: center; border-radius: 999px; padding: 12px 22px;
  font-size: 15px; line-height: 1.4;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn-ghost { background: var(--surface-card); border: 1px solid var(--pe-line-strong); color: var(--pe-ink); }
.btn-ghost:hover { background: var(--surface-card); border-color: color-mix(in oklab, var(--ink) 40%, transparent); }

.tool-groups { gap: 64px; margin-top: 0; }
.tool-group h3 {
  font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; text-transform: none;
  color: var(--pe-ink); margin-bottom: 4px;
}
.tool-group .group-note { font-size: 15px; color: var(--pe-muted); margin-bottom: 24px; }
.tool-group h3 + .tool-grid { margin-top: 20px; }
@media (max-width: 640px) {
  .tool-groups { gap: 48px; }
  .tool-group h3 { font-size: 18px; }
}

.tool-grid { gap: 16px; }
.tool {
  border: 1px solid var(--pe-line); border-radius: 14px; padding: 20px 22px; gap: 6px;
  box-shadow: var(--pe-shadow);
  transition: border-color .15s, box-shadow .15s;
}
.tool-name { font-size: 15px; line-height: 1.35; color: var(--pe-ink); }
.tool .tool-desc { font-size: 14px; line-height: 1.55; color: var(--pe-muted); }
a.tool:hover { border-color: var(--pe-line-strong); box-shadow: var(--pe-shadow-lg); }
a.tool:hover .tool-name { color: var(--pe-accent); }
.tool-desc a { color: var(--pe-accent); border-bottom-color: var(--accent-line); }
.tool-tag { white-space: nowrap; font-size: 11px; padding: 1px 8px; border-color: var(--pe-line-strong); background: var(--surface-card); }
.tool-tag--note { border-color: var(--accent-line); }

.count-line { margin-top: 32px; gap: 8px 24px; font-size: 14px; color: var(--pe-muted); }
.count-line strong { font-size: 15px; color: var(--pe-ink); }
.count-line a { color: var(--pe-accent); font-weight: 500; }
.count-line a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ways { gap: 16px; margin-top: 0; }
.way {
  border: 1px solid var(--pe-line); border-radius: 16px; padding: 32px 28px 28px; gap: 12px;
  box-shadow: var(--pe-shadow);
}
.way-tag { font-size: 11px; letter-spacing: .1em; color: var(--pe-accent); }
.way-name { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
.way .tool-desc { font-size: 15px; line-height: 1.6; color: var(--pe-body); }
.way .btn { width: 100%; }
.way .way-cta { margin-top: auto; }
.way .way-cta + .btn { margin-top: -4px; }
.way-note { font-size: 12px; line-height: 1.6; color: var(--pe-muted); }
.way-note a { color: var(--pe-body); text-decoration: underline; text-decoration-color: var(--pe-line-strong); text-underline-offset: 3px; }
.way-note a:hover { color: var(--pe-ink); text-decoration-color: currentColor; }
@media (max-width: 640px) { .way { padding: 28px 22px 24px; } .way-name { font-size: 18px; } }

.faq-list {
  margin-top: 0; max-width: 880px;
  background: none; border: 0; border-top: 1px solid var(--pe-line); border-radius: 0; overflow: visible;
}
.faq { padding: 24px 0; border-bottom: 1px solid var(--pe-line); }
.faq + .faq { border-top: 0; }
.faq-q { font-size: 17px; line-height: 1.4; color: var(--pe-ink); }
.faq-a { font-size: 15px; line-height: 1.7; color: var(--pe-body); margin-top: 8px; max-width: 68ch; }
@media (max-width: 640px) {
  .faq { padding: 20px 0; }
  .faq-q { font-size: 16px; }
}

header:not(.site-header) ~ section:not([class]) > .wrap { padding-top: 40px; padding-bottom: 40px; }
header:not(.site-header) ~ .hero + section:not([class]) > .wrap { padding-top: 16px; }
@media (min-width: 761px) {
  .hero > .wrap[style*="70ch"],
  header:not(.site-header) ~ section:not([class]) > .wrap[style*="70ch"] { padding-left: 0; padding-right: 0; }
}
header:not(.site-header) ~ section:not([class]) > .wrap > h2 {
  font-size: 32px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 500;
  margin-bottom: 16px; text-wrap: balance;
}
header:not(.site-header) ~ section:not([class]) > .wrap > * + h2 { margin-top: 48px; }
header:not(.site-header) ~ section:not([class]) > .wrap > :is(p, ol, ul).tool-desc { line-height: 1.7; color: var(--pe-body); }
header:not(.site-header) ~ section:not([class]) > .wrap > :is(ol, ul).tool-desc li + li { margin-top: 8px; }
header:not(.site-header) ~ section:not([class]) > .wrap > :is(p, ol, ul).tool-desc b { font-weight: 500; color: var(--pe-ink); }
header:not(.site-header) ~ section:not([class]) .tool-desc a[style] { text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
header:not(.site-header) ~ section:not([class]):has(.tool-grid, .faq-list) { border-top: 1px solid var(--pe-line); }
header:not(.site-header) ~ section:not([class]):has(.tool-grid, .faq-list) > .wrap { padding-top: 112px; padding-bottom: 112px; }
header:not(.site-header) ~ section:not([class]):has(.tool-grid, .faq-list) > .wrap > h2 { font-size: 48px; line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 40px; }
header:not(.site-header) ~ section:not([class]):has(.faq-list) + section:not([class]):has(.tool-grid, .faq-list) { border-top: 0; }
header:not(.site-header) ~ section:not([class]) .tool-grid + p.tool-desc { margin-top: 32px; font-size: 14px; color: var(--pe-muted); }
@media (max-width: 640px) {
  header:not(.site-header) ~ section:not([class]) > .wrap { padding-top: 28px; padding-bottom: 28px; }
  header:not(.site-header) ~ section:not([class]) > .wrap > h2 { font-size: 26px; }
  header:not(.site-header) ~ section:not([class]):has(.tool-grid, .faq-list) > .wrap { padding-top: 72px; padding-bottom: 72px; }
  header:not(.site-header) ~ section:not([class]):has(.tool-grid, .faq-list) > .wrap > h2 { font-size: 32px; margin-bottom: 32px; }
}

section.cta { background: none; padding: 48px var(--page-pad); text-align: center; }
section.cta > .wrap {
  max-width: calc(var(--max-w) - 2 * var(--page-pad));
  padding: 96px 32px; border-radius: 24px;
  background:
    radial-gradient(60% 120% at 50% 0, color-mix(in oklab, var(--red) 30%, transparent), transparent 70%),
    var(--ink);
}
section.cta h2 { color: var(--white); font-size: 48px; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
section.cta .sub { color: color-mix(in oklab, var(--white) 70%, transparent); font-weight: 400; font-size: 17px; margin-top: 20px; }
section.cta .hero-ctas { margin-top: 40px; }
section.cta .btn-ghost { background: transparent; color: var(--white); border-color: color-mix(in oklab, var(--white) 30%, transparent); }
section.cta .btn-ghost:hover { border-color: var(--white); background: transparent; }
@media (max-width: 640px) {
  section.cta { padding: 24px 16px; }
  section.cta > .wrap { padding: 56px 20px; border-radius: 20px; }
  section.cta h2 { font-size: 32px; line-height: 1.1; }
  section.cta .sub { font-size: 16px; }
  section.cta .hero-ctas .btn { width: 100%; }
}

.blog-head h1 { line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.blog-head .sub { font-weight: 400; color: var(--pe-body); }
.post-meta { color: var(--pe-muted); }
.prose { color: var(--pe-body); }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin-top: 48px; }
.prose a { color: var(--pe-accent); text-decoration-color: var(--accent-line); }
.prose a:hover { color: var(--pe-ink); text-decoration-color: currentColor; }
.post-more { margin-top: 56px; padding-top: 32px; border-top-color: var(--pe-line); }
.post-more h2 { font-size: 17px; }
.post-more ul { gap: 8px; }
.post-more a { text-decoration-color: var(--accent-line); }
.post-list { gap: 16px; }
.post-card {
  border-color: var(--pe-line); border-radius: 16px; padding: 28px 32px;
  box-shadow: var(--pe-shadow); transition: border-color .15s, box-shadow .15s;
}
.post-card:hover { border-color: var(--pe-line-strong); box-shadow: var(--pe-shadow-lg); }
.post-card h2 { font-size: 20px; line-height: 1.3; }
.post-card p { color: var(--pe-body); font-size: 15px; }
.post-card .more { color: var(--pe-accent); }
.post-card .more:hover { color: var(--pe-ink); }
@media (max-width: 640px) {
  .prose h2 { font-size: 20px; }
  .post-card { padding: 22px 20px; }
  .post-card h2 { font-size: 18px; }
}

footer { background: var(--pe-sunken); border-top: 1px solid var(--pe-line); }
footer .foot-main {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 48px 64px;
  padding-top: 80px; padding-bottom: 56px;
}
footer .foot-brand { max-width: none; }
footer .foot-brand p { font-size: 14px; line-height: 1.6; color: var(--pe-muted); font-weight: 400; margin-top: 16px; }
footer .foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
footer .fcol { min-width: 0; gap: 10px; }
footer .fcol b { font-size: 13px; color: var(--pe-ink); margin-bottom: 6px; }
footer .fcol a { font-size: 14px; line-height: 1.45; color: var(--pe-body); }
footer .fcol a:hover { color: var(--pe-ink); }
footer .foot-langs { padding-top: 0; padding-bottom: 24px; }
footer .lang-row { gap: 8px 20px; color: var(--pe-muted); padding-top: 24px; border-top: 1px solid var(--pe-line); }
footer .lang-row a { color: var(--pe-muted); }
footer .lang-row a[aria-current="page"] { color: var(--pe-ink); }
footer .foot-base { padding-top: 0; padding-bottom: 40px; font-size: 13px; color: var(--pe-muted); }
footer .foot-right a { color: var(--pe-muted); }
@media (max-width: 900px) {
  footer .foot-main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  footer .foot-brand { max-width: 36em; }
}
@media (max-width: 640px) {
  footer .foot-main { padding-top: 64px; padding-bottom: 40px; }
  footer .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  footer .foot-cols > .fcol:nth-child(3) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .tool, .post-card, .btn { transition: none; }
}

@media (max-width: 760px) {
  .site-header .site-nav {
    padding-right: 24px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
}

.way[id] { scroll-margin-top: 5.5rem; }
@media (max-width: 760px) { .way[id] { scroll-margin-top: 7.5rem; } }
