@font-face {
  font-family: "Izoard";
  src: url("fonts/Izoard-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Unica";
  src: url("fonts/NeueHaasUnica-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Unica";
  src: url("fonts/NeueHaasUnica-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Unica";
  src: url("fonts/NeueHaasUnica-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Unica";
  src: url("fonts/NeueHaasUnica-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ebebeb;
  --surface: #fafafa;
  --ink: #111111;
  --body: #353535;
  --sub: #616161;
  --line: #d3d3d3;
  --accent: #1cc744;
  --green: #077345;
  --reading-width: 84ch;
  --page-gutter: clamp(12px, 3vw, 40px);
  --section-offset: 32px;
  --radius: 16px;
  --shadow: 0 0 0 1px rgb(0 0 0 / 0.05),
    0 1px 2px -1px rgb(0 0 0 / 0.06), 0 4px 12px rgb(0 0 0 / 0.025);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Neue Haas Unica", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #bcefc8; color: var(--ink); }
a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}
svg { display: block; flex: none; }
p { margin: 0 0 20px; color: var(--body); font-size: 17px; }
strong { color: var(--ink); font-weight: 700; }
em { color: var(--sub); }
h1, h2, p { overflow-wrap: break-word; }

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--surface);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.site-header, main, .site-footer {
  width: min(1120px, calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}
.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: 137px; height: 40px; }

.hero, article {
  width: 100%;
  max-width: var(--reading-width);
  margin-inline: auto;
  font-size: 17px;
}
.hero {
  display: flex;
  min-height: clamp(240px, 30vw, 360px);
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 56px 40px;
}
h1 {
  margin: 0 0 20px;
  font-family: "Izoard", sans-serif;
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede { margin-bottom: 0; font-size: 18px; line-height: 1.65; }

.post-section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.post-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
h2 {
  margin: 0 0 22px;
  font-family: "Izoard", sans-serif;
  font-weight: 400;
  font-size: clamp(23px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  scroll-margin-top: var(--section-offset);
}
.post-section > p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin-block: 24px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
caption { padding: 16px 20px; text-align: left; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); border-bottom: 1px solid var(--line); }
th { padding: 14px 20px; color: var(--sub); font-weight: 500; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; background: #f4f4f4; }
td { padding: 17px 20px; color: var(--body); border-top: 1px solid #e4e4e4; }
th:first-child, td:first-child { text-align: left; }
td:first-child { font-weight: 500; color: var(--ink); }
td:nth-child(n+2), th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
td:nth-child(n+2) { white-space: nowrap; }
tbody tr:hover { background: #f0f6f1; }
.detail-section > p { padding: 22px 0; margin: 0; border-bottom: 1px solid var(--line); }
.detail-section > p:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-section > p > strong:first-child { display: block; margin-bottom: 8px; font-weight: 500; }
.disclaimer { margin-top: 48px; padding: 32px; background: #f3f3f3; border-radius: var(--radius); }
.disclaimer h2 { display: flex; align-items: center; gap: 10px; font-family: "Neue Haas Unica", sans-serif; font-weight: 500; font-size: 15px; margin-bottom: 16px; }
.disclaimer h2::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--accent); transform: rotate(45deg); }
.disclaimer p { color: #575757; font-size: 15px; line-height: 1.75; }
.disclaimer p:last-child { margin-bottom: 0; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; margin-top: 72px; border-top: 1px solid var(--line); color: var(--sub); font-size: 13px; }
.site-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

@media (max-width: 960px) {
  :root { --reading-width: 100%; }
  th, td { padding-inline: 14px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .hero { min-height: 220px; padding-block: 40px 28px; }
  .lede { font-size: 17px; }
  .post-section { padding-top: 32px; margin-top: 32px; }
  .disclaimer { padding: 24px; }
  .site-footer { margin-top: 48px; }
}

@media (max-width: 380px) {
  .brand img { width: 120px; height: auto; }
  th, td { padding-inline: 8px; }
  table { font-size: 13px; }
  .disclaimer { padding: 20px; }
}

@media (max-height: 450px) {
  .site-footer { margin-top: 32px; padding-block: 16px; }
}

@media print {
  body { background: #fff; }
  .site-header, main, .site-footer { width: 100%; }
  .skip-link, .site-footer { display: none; }
  .hero { padding-block: 24px; }
  .table-wrap { overflow: visible; box-shadow: none; }
  h2 { break-after: avoid; }
  tr, img { break-inside: avoid; }
  .disclaimer { padding: 24px 0 0; border-top: 1px solid var(--line); background: none; }
}
