@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/EBGaramond-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/EBGaramond-Italic.ttf") format("truetype");
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/EBGaramond-Medium.ttf") format("truetype");
}

:root {
  --paper: #ffffff;
  --ink: #8c8c8c;
  --line: #8c8c8c;
  --serif: "EB Garamond", "Palatino Linotype", Palatino, serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.skip {
  position: absolute;
  left: 24px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 4vw, 40px) clamp(24px, 6vw, 72px) 48px;
}

.top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  min-height: 44px;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.nav[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.nav {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}
.home .top {
  position: absolute;
  top: clamp(22px, 4vw, 40px);
  right: clamp(24px, 6vw, 72px);
  z-index: 2;
}
.home .stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}
.home .home-logo {
  width: min(78vw, 920px);
  height: auto;
}

h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(64px, 10vw, 136px);
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.brand img { height: 40px; width: auto; display: block; }
.home-logo { width: min(100%, 980px); height: auto; display: block; }

ol {
  list-style: none;
  margin: 0;
  padding: 7vh 0 0;
  max-width: none;
}

li {
  display: grid;
  grid-template-columns: minmax(9rem, 12.5rem) minmax(0, 42rem);
  gap: 0.4rem 3rem;
  align-items: start;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}

li:last-child { border-bottom: 1px solid var(--line); }

.word {
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  padding-top: 0.08em;
}

.desc {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  max-width: 40rem;
}

.principles {
  counter-reset: principle;
}
.principles li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: baseline;
  max-width: none;
  font-size: clamp(22px, 2.15vw, 30px);
  line-height: 1.38;
  letter-spacing: -0.015em;
  padding: 1.55rem 0;
}
.principles li::before {
  counter-increment: principle;
  content: counter(principle, decimal-leading-zero);
  font-style: italic;
  font-size: 0.62em;
  letter-spacing: 0.04em;
  color: #8c8c8c;
}
.sheet h1 {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.sheet-title { padding: 8vh 0 1.6rem; }
.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c8c8c;
}
.terms { margin: 0; border-top: 1px solid var(--ink); }
.terms-head,
.terms > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, 13rem) minmax(0, 1fr);
  gap: 1rem 2.75rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.terms-head {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom-color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8c8c8c;
}
.terms dt {
  margin: 0;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
}
.terms dd {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.4;
}
.sheet-foot {
  margin: 1.5rem 0 0;
  font-size: 15px;
  font-style: italic;
  color: #8c8c8c;
}
@media (max-width: 640px) {
  .terms-head,
  .terms > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 640px) {
  li { grid-template-columns: 1fr; gap: 0.45rem; }
}
