:root {
  --bg: oklch(1 0 0);
  --primary: oklch(0.38 0.09 202);
  --ink: oklch(0.22 0.03 205);
  --mark: oklch(0.82 0.12 84);
  --line: oklch(0.22 0.03 205 / 0.28);
  --font-text: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --text-body: 1.125rem;
  --text-sub: clamp(1.8rem, 3.4vw, 2.75rem);
  --text-display: clamp(2.6rem, 8.4vw, 6rem);
  --text-glyph: clamp(3.4rem, 7vw, 5.25rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --z-skip: 30;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1.25rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--mark);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.hero :focus-visible,
.close :focus-visible {
  outline-color: var(--bg);
}

a {
  color: inherit;
}

.skip {
  position: fixed;
  z-index: var(--z-skip);
  left: 1rem;
  top: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(76rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.hero,
.close {
  background: var(--primary);
  color: var(--bg);
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vh, 2.5rem);
}

.hero .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mast {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 40rem;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.brand span {
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
}

.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1rem;
  text-decoration: none;
}

.mast nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.poster {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(12rem, 0.7fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
  padding-top: clamp(3rem, 10vh, 6rem);
}

.poster h1 {
  margin: 0;
  max-width: 100%;
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.poster h1 span {
  display: block;
}

.poster-line {
  margin: 0;
  max-width: 12em;
  justify-self: end;
  font-size: 1.25rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.rod {
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
}

.rod svg {
  display: block;
  width: 100%;
  height: auto;
}

.rod figcaption {
  margin: 0.85rem 0 0;
  max-width: 36em;
  font-size: 1rem;
  line-height: 1.5;
}

.sheet {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background: var(--bg);
}

.pair {
  display: grid;
  grid-template-columns: minmax(4.5rem, 7.5rem) minmax(0, 62ch);
  gap: 0.35rem 2rem;
  align-items: start;
}

.pair + .pair {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}

.glyph {
  margin: 0;
  font-size: var(--text-glyph);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.pair p {
  margin: 0.7rem 0 0;
  max-width: 62ch;
  text-wrap: pretty;
}

.company h2 {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  max-width: 14em;
  font-size: var(--text-sub);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.keep {
  white-space: nowrap;
}

.ledger {
  margin: 0;
  max-width: 52rem;
}

.ledger div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 12rem) minmax(0, 1fr);
  gap: 0.65rem 1.5rem;
  align-items: baseline;
  padding-block: 1.05rem;
  border-top: 1px solid var(--line);
}

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

.ledger dt,
.ledger dd {
  margin: 0;
}

.ledger dt {
  font-size: 1rem;
  font-weight: 400;
}

.ledger dd {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ledger a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.06em;
}

.english {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  max-width: 62ch;
  text-wrap: pretty;
}

.work-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
}

.work-title p {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
}

.prose {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.prose p {
  margin: 0 0 1rem;
  max-width: 62ch;
  text-wrap: pretty;
}

.prose p:last-child {
  margin-bottom: 0;
}

.close {
  padding-block: clamp(5rem, 12vw, 8.5rem) clamp(2rem, 5vw, 3rem);
}

.close h2 {
  margin: 0 0 0.85rem;
  font-size: var(--text-sub);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.mail {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(1.45rem, 4.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 0.06em;
}

.close .wrap > p {
  margin: 1.15rem 0 0;
  max-width: 36em;
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

footer {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

footer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 52rem) {
  .poster {
    grid-template-columns: 1fr;
  }

  .poster-line {
    justify-self: start;
  }
}

@media (max-width: 40rem) {
  .pair,
  .ledger div {
    grid-template-columns: 1fr;
  }

  .pair p {
    margin-top: 0.35rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .poster h1 span {
    animation: settle 900ms var(--ease-out) both;
  }

  .poster h1 span + span {
    animation-delay: 90ms;
  }
}

@keyframes settle {
  from {
    transform: translateY(0.45rem);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body,
  .hero,
  .close {
    background: white;
    color: black;
  }

  :root {
    --mark: black;
  }
}
