@font-face { font-family: "Astral Serif"; src: url("../../assets/AstralSerif-Subset.otf") format("opentype"); font-display: swap; }

:root {
  --sheet-ink: #24383a;
  --sheet-muted: #4f5d5b;
  --sheet-line: #aab0a9;
  --sheet-paper: #f4f0e5;
  --sheet-paper-deep: #e7e0cf;
  --sheet-green: #17383c;
  --sheet-rust: #9b4b3f;
  --sheet-gold: #917850;
}

.entry-sheet-page { background: #122d31; }
.entry-sheet-main { position: relative; width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 38px 0 92px; }
.entry-sheet-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.entry-sheet-actions a { color: #dfe9e6; font-size: .78rem; font-weight: 800; text-underline-offset: 4px; }
.entry-sheet-loading, .entry-sheet-error { margin: 0; padding: 32px; border: 1px solid rgba(255,255,255,.26); color: #e8efec; background: rgba(255,255,255,.07); line-height: 1.8; }
.entry-sheet-error a { color: #fff; }

.registration-sheet { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); color: var(--sheet-ink); background-color: var(--sheet-paper); background-image: linear-gradient(rgba(36,56,58,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(36,56,58,.025) 1px, transparent 1px); background-size: 24px 24px; border: 1px solid #c7bdac; box-shadow: 0 30px 75px rgba(2, 14, 16, .42), inset 0 0 0 8px rgba(255,255,255,.32); }
.registration-sheet::before, .registration-sheet::after { position: absolute; width: 11px; height: 11px; content: ""; border-radius: 50%; background: #8f897c; box-shadow: inset 0 2px 2px rgba(0,0,0,.35), 0 1px 0 #fff; }
.registration-sheet::before { top: 17px; left: 17px; }
.registration-sheet::after { right: 17px; bottom: 17px; }

.registration-sheet__head { position: relative; min-height: 154px; padding: 0 clamp(0px, 19vw, 235px) 25px 0; border-bottom: 3px double #7e8b87; }
.registration-sheet__eyebrow { margin: 0 0 9px; color: #4b686b; font: 800 .72rem/1.45 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .16em; }
.registration-sheet h1 { margin: 0; font-family: "Astral Serif", "Yu Mincho", serif; font-size: clamp(2.4rem, 6vw, 5.4rem); font-weight: 700; line-height: .95; letter-spacing: .04em; }
.registration-sheet__pair { margin: 15px 0 0; color: #6e5439; font-size: clamp(1.05rem, 2.3vw, 1.55rem); font-weight: 900; letter-spacing: .08em; }
.registration-sheet__kind { display: inline-block; margin-top: 11px; padding: 5px 9px; color: #f8f4ea; background: var(--sheet-green); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }

.entry-sheet-stamp { position: absolute; z-index: 2; top: 4px; right: 8px; display: grid; width: clamp(128px, 16vw, 175px); aspect-ratio: 1; place-items: center; padding: 15px; border: 4px double rgba(139,63,54,.82); border-radius: 50%; color: #8b3f36; background: rgba(244,240,229,.36); text-align: center; transform: rotate(-9deg); mix-blend-mode: multiply; }
.entry-sheet-stamp::before { position: absolute; inset: 9px; content: ""; border: 1px solid currentColor; border-radius: 50%; }
.entry-sheet-stamp b, .entry-sheet-stamp span, .entry-sheet-stamp small { position: relative; display: block; }
.entry-sheet-stamp b { padding-block: 5px; border-block: 1px solid currentColor; font-size: clamp(1rem, 2.1vw, 1.35rem); letter-spacing: .08em; }
.entry-sheet-stamp span { font-size: .67rem; font-weight: 900; letter-spacing: .14em; }
.entry-sheet-stamp small { font-size: .52rem; font-weight: 800; line-height: 1.35; }

.registration-sheet__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 0; border-top: 1px solid var(--sheet-line); border-left: 1px solid var(--sheet-line); }
.registration-sheet__fact { display: grid; grid-template-columns: minmax(92px, .32fr) 1fr; min-height: 66px; border-right: 1px solid var(--sheet-line); border-bottom: 1px solid var(--sheet-line); }
.registration-sheet__fact dt { display: grid; align-items: center; margin: 0; padding: 10px 13px; color: #476165; background: rgba(77,103,102,.08); font-size: .69rem; font-weight: 900; letter-spacing: .08em; }
.registration-sheet__fact dd { display: grid; align-items: center; margin: 0; padding: 10px 15px; font-family: "Astral Serif", "Yu Mincho", serif; font-size: clamp(.93rem, 1.6vw, 1.13rem); font-weight: 700; line-height: 1.75; white-space: pre-line; }
.registration-sheet__fact--wide { grid-column: 1 / -1; grid-template-columns: minmax(92px, .16fr) 1fr; }
.registration-sheet__fact--line dd { color: #604634; font-size: clamp(1rem, 1.7vw, 1.22rem); }

.registration-sheet__section { margin-top: 40px; }
.registration-sheet__section > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; border-bottom: 2px solid #526967; }
.registration-sheet__section h2 { margin: 0; padding: 0 0 8px; font-family: "Astral Serif", "Yu Mincho", serif; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: .04em; }
.registration-sheet__section header span { padding-bottom: 9px; color: #667471; font: 800 .62rem/1.3 ui-monospace, monospace; letter-spacing: .1em; }

.registration-sheet__portraits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(13px, 2.4vw, 25px); }
.registration-sheet__portrait { min-width: 0; margin: 0; border: 1px solid #858f8c; background: #e8e3d8; box-shadow: 0 7px 18px rgba(34,48,46,.12); }
.registration-sheet__portrait-frame { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #203b3e; }
.registration-sheet__portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.registration-sheet__portrait-frame--empty { display: grid; place-items: center; padding: 11%; border: 14px solid #81725e; color: #5f5b51; background: linear-gradient(145deg, #f8f5ea, #e9e4d5); box-shadow: inset 0 0 0 2px #d5cab0, inset 0 0 0 7px #f5f0df; text-align: center; }
.registration-sheet__portrait-frame--empty::before { position: absolute; inset: 12px; content: ""; border: 1px solid #b9ad91; }
.registration-sheet__portrait-frame--empty span { position: relative; max-width: 13em; font-size: clamp(.8rem, 2vw, 1.08rem); font-weight: 800; line-height: 2; letter-spacing: .05em; }
.registration-sheet__portrait figcaption { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; min-height: 76px; align-items: center; padding: 12px 14px; border-top: 1px solid #858f8c; }
.registration-sheet__portrait figcaption span { color: #73543a; font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.registration-sheet__portrait figcaption b { grid-row: 1 / 3; grid-column: 2; color: var(--sheet-ink); font-family: "Astral Serif", "Yu Mincho", serif; font-size: clamp(1rem, 2vw, 1.35rem); }
.registration-sheet__portrait figcaption small { color: var(--sheet-muted); font-size: .62rem; line-height: 1.45; }

.registration-sheet__equipment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--sheet-line); border-left: 1px solid var(--sheet-line); }
.registration-sheet__equipment > div { display: grid; grid-template-columns: 104px 74px 1fr; min-height: 62px; align-items: center; border-right: 1px solid var(--sheet-line); border-bottom: 1px solid var(--sheet-line); }
.registration-sheet__equipment dt, .registration-sheet__equipment dd { margin: 0; }
.registration-sheet__equipment dt { align-self: stretch; display: grid; align-items: center; padding: 9px 12px; color: #486164; background: rgba(77,103,102,.08); font-size: .67rem; font-weight: 900; }
.registration-sheet__equipment .equipment-code { padding: 9px 10px; color: #8b4e3f; font: 900 .75rem/1.4 ui-monospace, monospace; text-align: center; }
.registration-sheet__equipment .equipment-name { padding: 9px 12px; border-left: 1px dotted #b4b4aa; font-size: .76rem; font-weight: 700; line-height: 1.5; }

.registration-sheet__notice { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; margin: 34px 0 0; padding: 16px 18px; border: 1px solid #b8af9f; border-left: 5px solid var(--sheet-gold); color: #53615f; background: rgba(255,255,255,.38); font-size: .72rem; line-height: 1.8; }
.registration-sheet__notice b { color: #6d5539; white-space: nowrap; }
.registration-sheet__notice p { margin: 0; }
.registration-sheet__notice a { color: #24565c; font-weight: 800; text-underline-offset: 3px; }
.registration-sheet__folio { margin: 20px 0 0; color: #6a716d; font: 700 .58rem/1.5 ui-monospace, monospace; text-align: right; letter-spacing: .1em; }

@media (max-width: 760px) {
  .entry-sheet-main { width: min(100% - 20px, 680px); padding-top: 22px; }
  .registration-sheet { padding: 29px 18px 34px; box-shadow: 0 18px 44px rgba(2,14,16,.42), inset 0 0 0 5px rgba(255,255,255,.3); }
  .registration-sheet__head { min-height: 185px; padding-right: 0; padding-bottom: 22px; }
  .registration-sheet h1 { max-width: 65%; font-size: clamp(2.15rem, 12vw, 3.7rem); }
  .registration-sheet__pair { max-width: 63%; }
  .entry-sheet-stamp { top: 0; right: 0; width: 122px; }
  .registration-sheet__facts { grid-template-columns: 1fr; }
  .registration-sheet__fact--wide { grid-column: 1; }
  .registration-sheet__fact, .registration-sheet__fact--wide { grid-template-columns: 92px 1fr; }
  .registration-sheet__equipment { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .entry-sheet-actions { font-size: .72rem; }
  .registration-sheet__portraits { grid-template-columns: 1fr; }
  .registration-sheet__section > header { align-items: start; flex-direction: column; gap: 0; }
  .registration-sheet__section header span { padding-top: 0; }
  .registration-sheet__equipment > div { grid-template-columns: 88px 59px 1fr; }
  .registration-sheet__equipment .equipment-name { font-size: .7rem; }
  .registration-sheet__notice { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .official-mobile-nav, .entry-sheet-actions, .handoff-foot { display: none !important; }
  .entry-sheet-page { background: #fff; }
  .entry-sheet-main { width: 100%; padding: 0; }
  .registration-sheet { border: 0; box-shadow: none; break-inside: avoid; }
}
