:root {
  color-scheme: dark;
  --paper: #0d1c28;
  --ink: #f5f7fa;
  --accent: #9ff2d3;
  --border: #65818e;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; padding: 20px 4.5vw 36px; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #cffce9; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.skip { position: fixed; top: -100px; left: 20px; padding: 12px; background: var(--paper); z-index: 2; }
.skip:focus { top: 16px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { color: var(--accent); font-size: clamp(32px, 3.4vw, 50px); font-weight: 800; text-decoration: none; letter-spacing: -.045em; }
nav { display: flex; gap: 25px; align-items: center; font-size: clamp(17px, 2.1vw, 32px); }
nav a { padding-block: 8px; color: var(--ink); text-decoration: none; }
nav a + a::before { content: '·'; display: inline-block; margin-right: 25px; }
.converter h1 { font-size: clamp(64px, 8vw, 120px); line-height: .95; letter-spacing: -.045em; font-weight: 800; margin: 64px 0 24px; }
.converter h1 span { display: block; }
.intro { font-size: clamp(22px, 2.95vw, 44px); line-height: 1.35; margin: 24px 0 44px; }
.form-grid { display: grid; grid-template-columns: 1.6fr .7fr 1fr; gap: 28px; align-items: end; }
.field { min-width: 0; }
label { display: block; font-size: clamp(18px, 2.25vw, 34px); font-weight: 650; margin-bottom: 14px; }
input, select, button { min-width: 0; width: 100%; font-family: inherit; border-radius: 16px; min-height: 88px; padding: 16px 28px; font-size: clamp(20px, 2.4vw, 36px); }
input, select { border: 2px solid var(--ink); color: var(--ink); background: var(--paper); }
input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
select { cursor: pointer; }
button { border: 2px solid var(--accent); background: var(--accent); color: #071c19; font-size: clamp(20px, 2.15vw, 32px); font-weight: 750; cursor: pointer; padding-inline: 20px; }
button:hover { background: #c2f9e4; border-color: #c2f9e4; }
.results { border: 2px solid var(--border); border-radius: 16px; padding: 26px 40px; margin: 50px 0; }
.results dl { margin: 0; }
.result-row { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 28px; align-items: baseline; margin-block: 0 20px; }
.result-row:last-child { margin-bottom: 0; }
dt { font-weight: 750; font-size: clamp(20px, 2.35vw, 35px); }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font: 400 clamp(20px, 2.9vw, 44px)/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.time-zone { display: block; color: #bbced7; font: 400 15px/1.6 system-ui, sans-serif; }
.reference-link { display: block; border-top: 1px solid #9aa7af; padding: 30px 0 12px; margin-top: 50px; font-size: clamp(22px, 2.4vw, 36px); font-weight: 700; text-decoration: none; }
.error { color: #ffb8ad; font-size: 18px; line-height: 1.5; margin-top: 20px; }
[hidden] { display: none !important; }
.prose { max-width: 850px; margin: 70px auto; font-size: 19px; line-height: 1.75; }
.prose h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
.prose h2 { color: var(--accent); font-size: 30px; line-height: 1.25; margin-top: 40px; }
.prose li { margin: 9px 0; }
code { overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
pre { overflow-x: auto; border: 1px solid var(--border); padding: 20px; font-size: 15px; }
table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 17px; }
caption { text-align: left; font-weight: 650; margin-bottom: 12px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
footer { max-width: 850px; border-top: 1px solid var(--border); margin: 60px auto 0; padding-top: 22px; color: #bbced7; font-size: 16px; line-height: 1.7; }
@media (max-width: 800px) { .form-grid { grid-template-columns: 1.4fr 1fr; } .form-grid button { grid-column: 1 / -1; } }
@media (max-width: 650px) {
  body { padding: 22px; }
  header { flex-wrap: wrap; gap: 14px; }
  nav { font-size: 17px; gap: 14px; width: 100%; }
  nav a + a::before { margin-right: 14px; }
  .converter h1 { margin: 48px 0 24px; font-size: clamp(54px, 14vw, 85px); }
  .intro { font-size: 22px; margin-bottom: 34px; }
  .form-grid { grid-template-columns: 1fr; gap: 22px; }
  .form-grid button { grid-column: auto; }
  label { font-size: 19px; margin-bottom: 10px; }
  input, select, button { min-height: 60px; padding: 12px 16px; border-radius: 10px; font-size: 22px; }
  .results { padding: 22px; margin-block: 30px; }
  .result-row { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }
  dt { font-size: 19px; }
  dd { font-size: 21px; }
  .reference-link { margin-top: 30px; font-size: 23px; padding-top: 24px; }
  .prose { margin: 42px 0; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
