:root {
  --paper: #f5f5f2;
  --paper-deep: #ecece7;
  --ink: #111111;
  --muted: #686966;
  --line: #d8d8d2;
  --soft-line: rgba(17, 17, 17, .085);
  --max: 1240px;
  /* ponytail: system fonts, no webfont; CSP blocks external fonts anyway */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
::selection { background: var(--ink); color: var(--paper); }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.header-brand img { width: 200px; }
.nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 40px); font-size: .79rem; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
.nav a { position: relative; padding: 10px 0; }
.nav a::after, .underlined-link::after, .text-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: currentColor; transition: right .22s ease; }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after, .underlined-link:hover::after, .underlined-link:focus-visible::after, .text-link:hover::after, .text-link:focus-visible::after { right: 0; }
.nav-login { border-left: 1px solid var(--line); padding-left: clamp(22px, 2.6vw, 40px) !important; }
.nav .nav-login::after { left: clamp(22px, 2.6vw, 40px); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 12px 10px; border: 1px solid var(--ink); background: transparent; }
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: var(--ink); transition: transform .2s ease; }

.grid-field { background-image: linear-gradient(var(--soft-line) 1px, transparent 1px), linear-gradient(90deg, var(--soft-line) 1px, transparent 1px); background-size: 80px 80px; }
.hero { padding: 120px 0 110px; }
.hero .page-hero-grid > div { grid-column: 2; }
.kicker { margin: 0; color: var(--muted); font-size: .95rem; font-weight: 500; }
.section-number, .footer-nav span { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 22px 0 0; max-width: 900px; font-size: clamp(3.2rem, 6.4vw, 6.2rem); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.hero-lead { max-width: 680px; margin: 36px 0 0; color: #444542; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 21px; border: 1px solid var(--ink); font-size: .82rem; font-weight: 700; letter-spacing: .035em; transition: transform .2s ease, color .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover, .button-dark:focus-visible { background: #292929; }
.text-link, .underlined-link { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 9px 0; font-size: .87rem; font-weight: 700; }


.statement, .scope { padding: 120px 0; }
.section-rule { border-top: 1px solid var(--line); }
.split-heading { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3.15fr); gap: clamp(40px, 7vw, 110px); }
.split-heading h2 { margin: 0; max-width: 920px; font-size: clamp(2.4rem, 4.6vw, 4.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
.split-heading > div > p { max-width: 680px; margin: 30px 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.72; }
.split-heading .button, .split-heading .underlined-link { margin-top: 32px; }
.scope { background: var(--paper-deep); }
.scope-list { margin-top: 48px; border-top: 1px solid var(--ink); }
.scope-list article { display: grid; grid-template-columns: minmax(200px, .9fr) 1.3fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.scope-list h3 { margin: 0; font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 600; letter-spacing: -.02em; }
.scope-list p { margin: 0; max-width: 540px; color: var(--muted); }

.site-footer { padding: 72px 0 28px; background: #111; color: #f5f5f2; }
.footer-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; padding-bottom: 64px; }
.footer-logo { width: 260px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.footer-nav div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-nav span { margin-bottom: 9px; color: #8e8e89; }
.footer-nav a { font-size: .86rem; color: #d2d2cd; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: white; text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; gap: 30px; padding-top: 24px; border-top: 1px solid #30302e; color: #8e8e89; font-size: .75rem; }

.page-hero { padding: 100px 0 88px; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 3.15fr; gap: clamp(40px, 7vw, 110px); }
.page-hero h1 { margin: 0; max-width: 920px; font-size: clamp(3rem, 6.4vw, 6rem); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.page-hero .intro { max-width: 680px; margin: 34px 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
.content-section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.content-grid { display: grid; grid-template-columns: 1fr 3.15fr; gap: clamp(40px, 7vw, 110px); }
.content-grid h2 { margin: 0 0 28px; font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.content-grid > div p, .prose p, .prose li { max-width: 760px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.content-grid a:not(.button) { text-decoration: underline; text-underline-offset: 4px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--ink); }
.fact { padding: 24px 18px 24px 0; border-bottom: 1px solid var(--line); }
.fact span { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.fact strong { display: block; margin-top: 10px; font-size: .95rem; font-weight: 600; line-height: 1.5; }
.fact-wide { grid-column: 1 / -1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.step { min-height: 280px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.step:first-child { border-left: 1px solid var(--line); }
.step > span { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.step h2 { margin: auto 0 16px; font-size: 1.7rem; font-weight: 600; letter-spacing: -.025em; }
.step p { margin: 0; color: var(--muted); }
.detail-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.detail-list li { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.detail-list strong { color: var(--ink); font-weight: 600; }
.content-grid .detail-list + .button { margin-top: 36px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.contact-card { min-height: 260px; padding: 32px; border: 1px solid var(--line); border-top: 0; }
.contact-card + .contact-card { border-left: 0; }
.contact-card span { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact-card h2 { margin: 30px 0 14px; line-height: 1.15; font-size: 1.7rem; font-weight: 600; letter-spacing: -.025em; }
.contact-card p { color: var(--muted); }
.contact-card > a { display: inline-block; margin-top: 10px; border-bottom: 1px solid var(--ink); font-weight: 650; word-break: break-all; }

.login-page { min-height: calc(100vh - 79px); display: grid; grid-template-columns: 1.05fr .95fr; }
.login-context { display: flex; flex-direction: column; justify-content: flex-start; min-height: 700px; padding: clamp(64px, 6vw, 92px); border-right: 1px solid var(--line); }
.login-context h1 { max-width: 650px; margin: 0; font-size: clamp(3rem, 5.6vw, 5.6rem); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.login-box-wrap { display: grid; place-items: center; padding: 60px 24px; background: var(--paper-deep); }
.login-box { width: min(100%, 460px); padding: 42px; border: 1px solid var(--line); background: var(--paper); }
.login-box h2 { margin: 0; font-size: 2.2rem; font-weight: 600; letter-spacing: -.03em; }
.login-box > p { margin: 12px 0 32px; color: var(--muted); }
.field { margin-top: 19px; }
.field label { display: block; margin-bottom: 8px; font-size: .77rem; font-weight: 700; letter-spacing: .04em; }
.field input { width: 100%; min-height: 50px; border: 1px solid #bdbdb7; border-radius: 0; background: white; padding: 0 14px; color: var(--ink); outline: none; }
.field input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.login-box .button { width: 100%; margin-top: 24px; }
.login-help { margin: 24px 0 0 !important; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.65; }
.login-help a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.system-page { min-height: calc(100vh - 79px); display: grid; place-items: center; padding: 80px 24px; }
.system-card { width: min(100%, 760px); }
.system-code { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.system-card h1 { margin: 18px 0 24px; font-size: clamp(3rem, 7vw, 6rem); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.system-card p { max-width: 600px; color: var(--muted); font-size: 1.05rem; }
.system-card .button { margin-top: 28px; }
.prose { width: min(calc(100% - 48px), 780px); margin: 0 auto; padding: 84px 0 120px; }
.prose h2 { margin: 54px 0 14px; font-size: 1.55rem; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose address { margin-top: 12px; color: var(--muted); line-height: 1.75; }
.prose .updated { margin-top: 54px; font-size: .9rem; }

@media (max-width: 980px) {
  .footer-main { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 200px; border-left: 1px solid var(--line); }
  .login-page { grid-template-columns: 1fr; }
  .login-context { min-height: 540px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .header-inner { min-height: 68px; }
  .header-brand img { width: 170px; }
  .menu-toggle { display: block; }
  .nav { position: absolute; inset: 68px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 22px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; display: flex; align-items: center; }
  .nav-login { border-left: 0; border-top: 1px solid var(--line); padding-left: 0 !important; margin-top: 8px; }
  .nav .nav-login::after { left: 0; }
  .grid-field { background-size: 56px 56px; }
  .hero { padding: 72px 0 70px; }
  .hero .page-hero-grid > div { grid-column: auto; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .statement, .scope { padding: 76px 0; }
  .split-heading, .page-hero-grid, .content-grid { grid-template-columns: 1fr; gap: 26px; }
  .split-heading h2 { font-size: 2.3rem; }
  .scope-list article { grid-template-columns: 1fr; gap: 10px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .page-hero { padding: 68px 0 60px; }
  .page-hero h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .content-section { padding: 70px 0; }
  .facts, .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 0; }
  .contact-card + .contact-card { border-left: 1px solid var(--line); }
  .detail-list li { grid-template-columns: 1fr; gap: 8px; }
  .login-context { min-height: 420px; padding: 65px 24px; }
  .login-box-wrap { padding: 45px 15px; }
  .login-box { padding: 30px 22px; }
  .prose { width: min(calc(100% - 30px), 780px); padding: 60px 0 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
