@font-face { font-family: Fraunces; src: url('/assets/fonts/fraunces-100-900-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Barlow; src: url('/assets/fonts/barlow-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root { color-scheme: light; --paper: #f5f3ee; --ink: #07162f; --blue: #183bd4; --muted: #526175; --line: #cbd1dc; font-family: Barlow, Arial, sans-serif; color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
body { margin: 0; font-size: 18px; line-height: 1.65; }
::selection { color: white; background: var(--blue); }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip { position: absolute; top: -100px; left: 20px; padding: 12px; background: white; z-index: 2; }
.skip:focus { top: 12px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 18px max(20px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--line); }
.site-brand { font-family: Fraunces, Georgia, serif; font-size: 25px; color: var(--ink); text-decoration: none; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-header nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 70px; }
.article { max-width: 760px; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 500; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
h1 { max-width: 22ch; font-size: clamp(34px, 5.4vw, 56px); margin: 0 0 24px; }
h2 { font-size: clamp(25px, 3vw, 32px); margin: 38px 0 14px; }
h3 { font-size: 21px; line-height: 1.3; margin: 24px 0 8px; }
p { margin: 0 0 18px; max-width: 72ch; }
.lead { max-width: 65ch; font-size: 21px; line-height: 1.55; }
.byline, .note, .site-footer { font-size: 16px; color: var(--muted); }
.byline { margin-bottom: 30px; }
li + li { margin-top: 10px; }
ul, ol { padding-left: 24px; }
.reading-nav { padding: 20px 0; margin: 28px 0; border-block: 1px solid var(--line); }
.reading-nav ul { margin-bottom: 0; }
.reading-nav a { display: inline-block; padding-block: 6px; }
.guide-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 54px; margin: 38px 0; padding: 0; list-style: none; }
.guide-list li { border-top: 1px solid var(--line); margin: 0; padding: 22px 0; }
.guide-list h2 { margin: 0 0 12px; font-size: 27px; }
.guide-list p { margin: 0; }
.example { padding: 20px 24px; margin: 24px 0; background: #fff; border: 1px solid var(--line); }
.example h3 { margin-top: 0; }
.example p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 17px; }
caption { text-align: left; color: var(--muted); margin-bottom: 10px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px 8px; vertical-align: top; }
th { font-weight: 700; }
.next { padding-top: 26px; margin-top: 40px; border-top: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); padding: 28px max(20px, calc((100vw - 1120px) / 2)) 42px; }
.site-footer p { margin-top: 20px; }
.tool { max-width: 760px; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 38px; }
.tool fieldset { border: 0; padding: 0; margin: 24px 0; }
.tool legend { font-weight: 700; margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
.field small { display: block; font-size: 15px; color: var(--muted); margin-top: 6px; }
input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 0; background: white; color: var(--ink); font: inherit; caret-color: var(--blue); }
input[aria-invalid="true"] { border: 2px solid #9e2837; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
button { min-height: 48px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 0; color: white; background: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #19304e; }
button[type="reset"] { color: var(--ink); background: transparent; }
button:disabled { cursor: not-allowed; opacity: .65; }
.result { border: 1px solid var(--line); background: white; padding: 22px; margin: 24px 0; }
.result p { margin-bottom: 8px; }
.result p:last-child { margin-bottom: 0; }
.tool-error { color: #9e2837; }
[hidden] { display: none !important; }
@media (max-width: 600px) { main { padding-top: 30px; } .guide-list, .fields { grid-template-columns: 1fr; } .site-header nav { gap: 8px 16px; } .lead { font-size: 19px; } .example { padding: 16px; } .actions button { flex: 1 1 auto; } }
