:root {
  color-scheme: light;
  --background: oklch(97.3% .004 247);
  --surface: #fff;
  --foreground: oklch(24% .03 258);
  --muted: oklch(48% .03 255);
  --primary: oklch(49% .09 222);
  --primary-hover: oklch(43% .085 222);
  --primary-soft: oklch(94% .03 215);
  --border: oklch(90% .012 250);
  --warning-soft: oklch(96% .045 85);
  --warning-foreground: oklch(38% .07 65);
  --shadow-card: 0 1px 2px oklch(24% .03 258 / .05), 0 12px 32px -16px oklch(24% .03 258 / .14);
  --shadow-lift: 0 2px 4px oklch(24% .03 258 / .06), 0 24px 48px -20px oklch(24% .03 258 / .25);
  --font-sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --bg: var(--background);
  --paper: var(--surface);
  --ink: var(--foreground);
  --line: var(--border);
  --accent: var(--primary);
  --serif: var(--font-display);
  --sans: var(--font-sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-underline-offset: 4px; }
a:hover { color: var(--primary-hover); }
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin-top: 0; font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
p { margin-top: 0; }

.skip { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .65rem 1rem; border-radius: 999px; background: var(--surface); color: var(--foreground); box-shadow: var(--shadow-card); text-decoration: none; transform: translateY(-160%); }
.skip:focus { transform: none; }

.wrap { width: min(56rem, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { position: sticky; z-index: 40; top: 0; display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem max(1.25rem, calc((100% - 56rem) / 2)); border-bottom: 1px solid rgba(225, 229, 233, .78); background: rgba(246, 247, 248, .88); backdrop-filter: blur(14px); }
.brand { color: var(--foreground); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--foreground); }
.brand span { color: var(--primary); }
.langs { display: inline-flex; align-items: center; gap: .15rem; padding: .18rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.langs a { display: inline-flex; align-items: center; justify-content: center; padding: .26rem .52rem; border-radius: 999px; color: var(--muted); font-size: .75rem; font-weight: 700; line-height: 1; text-decoration: none; }
.langs a:hover { color: var(--foreground); background: rgba(40, 109, 131, .08); }
.langs a[aria-current="true"] { background: var(--primary); color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: .35rem; padding: 1rem 0 .25rem; }
.nav a { padding: .45rem .9rem; border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 500; text-decoration: none; }
.nav a:hover { background: rgba(40, 109, 131, .06); color: var(--foreground); }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--foreground); }

main { padding-bottom: 1rem; }
.kicker { margin: .4rem 0 .35rem; color: var(--primary); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0 0 .7rem; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.045em; }
h2 { font-size: 1.45rem; }
.lead { max-width: 42rem; margin: 0 0 1.3rem; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
article, .home-grid a, .tool { border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow-card); }
article { padding: 1.4rem 1.45rem 1.6rem; margin-bottom: 2rem; }
article p, article li { color: var(--muted); line-height: 1.75; }
article strong { color: var(--foreground); }
ol li, ul li { margin: .35rem 0; }
.stop { margin: 1rem 0; border-radius: 1rem; background: var(--warning-soft); color: var(--warning-foreground); padding: 1rem 1.1rem; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: .4rem 0 2rem; }
.home-grid a { display: block; padding: 1.15rem; text-decoration: none; color: inherit; transition: box-shadow .2s ease, transform .2s ease; }
.home-grid a:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); color: inherit; }
.home-grid strong { display: block; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .35rem; }
.home-grid span { color: var(--muted); }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--primary-soft); padding: .05rem .35rem; border-radius: .35rem; }
.tool { padding: 1.2rem 1.25rem 1.35rem; margin: 1rem 0 1.5rem; }
.tool form { display: grid; gap: .75rem; }
label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--border); border-radius: .7rem; background: var(--background); padding: .7rem .85rem; color: var(--foreground); }
input[type="checkbox"], input[type="radio"] { width: auto; max-width: none; padding: 0; border: 0; background: transparent; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
article .tool { margin: 0 0 1.1rem; padding: 0; border: 0; background: transparent; box-shadow: none; }
input:focus { border-color: var(--primary); outline: 3px solid rgba(40, 109, 131, .14); }
button { display: inline-flex; min-height: 2.65rem; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--primary); color: #fff; padding: .62rem 1.2rem; font-weight: 600; cursor: pointer; }
button:hover { background: var(--primary-hover); }
.result { margin-top: .9rem; padding: .85rem 1rem; border-radius: .8rem; background: var(--primary-soft); color: var(--foreground); font-variant-numeric: tabular-nums; }
.result:empty { display: none; }

.site-footer { margin-top: 6rem; padding: 1.2rem max(1.25rem, calc((100% - 56rem) / 2)) 1.4rem; border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .88rem; }

@media (max-width: 767px) {
  .wrap { width: min(56rem, calc(100% - 2rem)); }
  .site-header { flex-wrap: wrap; align-items: center; padding-inline: 1rem; }
  .langs { flex: 0 0 auto; }
  .nav { display: grid; grid-template-columns: 1fr 1fr; }
  .nav a { min-width: 0; white-space: normal; line-height: 1.3; text-align: center; }
  .home-grid { grid-template-columns: 1fr; }
  .tool button { width: 100%; }
  .site-footer { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
