@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/eb-garamond-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap; src: url(/fonts/eb-garamond-italic.woff2) format("woff2"); }

:root { --ink: #000; --paper: #fff; --graphite: #4a4a4a; --side: 9.5rem; --gutter: 1.4rem; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
@media (min-width: 48rem) { html { font-size: 131.25%; } }
body { margin: 0; padding: 0 1.5rem; background: var(--paper); color: var(--ink); font-family: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif; line-height: 1.5; font-kerning: normal; font-variant-ligatures: common-ligatures; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, p, dl, dt, dd, ol { margin: 0; padding: 0; }
h1, h2 { font-weight: 500; text-wrap: balance; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
svg { display: block; fill: currentColor; }

/* The title page */
.hero { --h: min(11.5rem, calc((100vw - 3rem) / 2.6)); min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 0 2rem; text-align: center; }
.mark { display: flex; gap: calc(var(--h) * 30 / 804); height: var(--h); perspective: 50rem; }
.f { height: 100%; aspect-ratio: 542 / 804; }
.twin { transform-origin: calc(100% + var(--h) * 15 / 804) 50%; }
.name { font-size: calc(var(--h) * 0.649); line-height: 1; margin-top: calc(var(--h) * 0.05); }
.motto { font-style: italic; font-size: 1.3rem; margin-top: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .twin { animation: open 1.3s cubic-bezier(0.65, 0, 0.2, 1) 0.4s both; }
  .name { animation: arrive 0.8s ease-out 1.5s both; }
  .motto { animation: arrive 0.8s ease-out 1.9s both; }
}
@keyframes open { from { transform: rotateY(-180deg); } to { transform: rotateY(0); } }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

.about { max-width: 27rem; margin: 0 auto; text-align: center; font-size: 1.1rem; text-wrap: balance; }
.doors { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 40rem; margin: 4.5rem auto 0; }
.doors::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--ink); }
.door { padding: 0.4rem 2rem 0.6rem; }
.door:first-child { text-align: right; }
.door h2 { font-size: 1.3rem; line-height: 1.25; }
.door p { color: var(--graphite); margin: 0.5rem 0 0.8rem; text-wrap: balance; }

/* The agreement pages */
.top { padding: 2.6rem 0 0; }
.home { display: block; width: fit-content; margin: 0 auto; }
.mark-s { height: 3.3rem; }
.notice { max-width: 38rem; margin: 0 auto; }
.notice h1 { font-size: 2.3rem; line-height: 1.15; text-align: center; margin-top: 2.2rem; }
.lede { font-style: italic; font-size: 1.2rem; line-height: 1.45; text-align: center; max-width: 29rem; margin: 1rem auto 0; text-wrap: balance; }
.notice h2 { font-size: 1.3rem; line-height: 1.25; margin: 3.4rem 0 0.9rem calc(var(--side) + var(--gutter)); }
.terms, .steps { display: grid; grid-template-columns: var(--side) 1fr; }
.terms > div, .steps > li { display: contents; }
.terms dt, .steps .n { text-align: right; padding: 0.55rem var(--gutter) 0.55rem 0; font-style: italic; }
.terms dd, .steps .t { border-left: 1px solid var(--ink); padding: 0.55rem 0 0.55rem var(--gutter); text-wrap: pretty; }
.steps { list-style: none; }
.after { margin-left: calc(var(--side) + var(--gutter)); }
.act { margin-top: 1.6rem; }
.button { display: inline-block; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); text-decoration: none; font-weight: 500; font-size: 1.1rem; line-height: 1.3; padding: 0.7rem 1.5rem 0.8rem; }
.button:hover { background: var(--paper); color: var(--ink); }
.after p { text-wrap: pretty; }
.small { font-size: 0.86rem; color: var(--graphite); margin-top: 1rem; max-width: 26rem; }

.imprint { text-align: center; font-size: 0.86rem; color: var(--graphite); margin: 6rem auto 0; padding: 0 0 3rem; }
.imprint p { text-wrap: balance; }
.imprint p + p { margin-top: 0.3rem; }
.lost { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }

@media (max-width: 40rem) {
  .hero { min-height: 0; padding: 5.5rem 0 3.5rem; }
  .doors { grid-template-columns: 1fr; margin-top: 3.5rem; }
  .doors::before { display: none; }
  .door, .door:first-child { text-align: center; padding: 1.6rem 0; }
  .door + .door { border-top: 1px solid var(--ink); }
  .notice h1 { font-size: 1.9rem; }
  .notice h2, .after { margin-left: 0; }
  .terms, .steps { display: block; }
  .terms > div, .steps > li { display: block; padding: 0.7rem 0; }
  .terms dt, .steps .n { text-align: left; padding: 0; }
  .terms dd, .steps .t { border-left: 0; padding: 0.1rem 0 0; }
  .steps > li { display: flex; gap: 0.8rem; }
  .button { display: block; text-align: center; }
}
