:root {
  --ink: #2e3338;
  --navy: #4c93f0;
  --sand: #f6d7a8;
  --orange: #c65a24;
  --paper: #fff8f1;
  --muted: #8a8178;
  --line: #e4d5c4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--orange); }
.rail {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: var(--navy);
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.rail b { display: block; font-size: 15px; }
.rail small { color: var(--muted); font-weight: 700; }
.rail nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.rail nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.open {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) 1.2fr;
  gap: 12px 36px;
  align-items: end;
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
  padding: 36px 0 12px;
}
.giant {
  margin: 0;
  font-size: clamp(128px, 18vw, 240px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 2px var(--navy);
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.lede { margin: 0 0 16px; max-width: 36em; color: var(--muted); font-size: 18px; }
.mail { font-weight: 800; }
.ledger { list-style: none; margin: 28px auto 0; padding: 0; width: min(1080px, calc(100% - 56px)); }
.ledger li {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.ledger li:nth-child(even) .copy { order: 2; }
.idx {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.ledger h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.03em; }
.ledger p { margin: 0; color: var(--muted); max-width: 36em; }
.ledger img {
  width: min(340px, 100%);
  justify-self: center;
  border-radius: 18px;
  background: #fff;
}
.notes {
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
  padding: 8px 0 48px;
}
.notes h2 {
  margin: 0;
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
  font-size: 28px;
  letter-spacing: -0.03em;
}
.notes dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.notes dt {
  margin-top: 16px;
  font-weight: 800;
}
.notes dd { margin: 4px 0 0; color: var(--muted); }
.sheet {
  width: min(720px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.sheet h1 { font-size: 40px; }
.sheet h2 { margin: 28px 0 8px; font-size: 22px; }
.sheet .meta, .sheet p { color: #3a4046; }
.sheet .meta { color: var(--muted); }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.foot a { color: inherit; }
@media (max-width: 800px) {
  .rail { flex-wrap: wrap; padding: 14px 18px; }
  .rail nav { margin-left: 0; width: 100%; }
  .open, .ledger li, .notes dl { grid-template-columns: 1fr; }
  .open, .ledger, .notes, .sheet, .foot { width: min(1080px, calc(100% - 36px)); }
  .ledger li:nth-child(even) .copy { order: 0; }
  .giant { font-size: 112px; }
  h1 { font-size: 36px; }
}
