:root {
  --paper: #f4eee3;
  --ivory: #fffcf6;
  --ink: #26271d;
  --quiet: #565849;
  --olive: #3d4c31;
  --line: #d8ccba;
  --danger: #912f39;
  --title-face: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --reading-face: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --banner: url('/wedding-hero.webp');
}

::selection { background: #dce3cc; color: #222b1d; }
html { overflow-x: clip; }
.brand-lockup {
  display:block;
  position:relative;
  width:clamp(142px,26vw,188px);
  max-width:100%;
  aspect-ratio:2.42;
  overflow:hidden;
  margin-bottom:8px;
}
/* Show the artwork inside the source image's generous transparent margins. */
.brand-lockup img {
  position:absolute;
  top:0;
  left:-15%;
  width:130%;
  max-width:none;
  height:auto;
  transform:translateY(-32.8%);
}
.workbench { background: linear-gradient(180deg,#eae0d1 0,#f4eee3 270px,#f7f2e9 660px); }
.workbench > header { padding-top: clamp(10px,3vw,34px); }
.workbench .page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  min-height: clamp(130px,23vw,232px);
  padding: clamp(20px,4vw,52px);
  margin-bottom: 18px;
  border: 1px solid #dacbb5;
  border-radius: 22px;
  color: var(--ink);
  background: linear-gradient(90deg,#f5ead9ec 2%,#f5ead98a 55%,transparent 83%),var(--banner) right 40% / cover no-repeat,#e8d7bd;
}
.workbench .page-head h1 { font: 650 clamp(26px,4.4vw,53px)/1.16 var(--title-face); text-wrap: balance; }
.workbench .page-head p { color: #414637; }
.workbench .session-exit { align-self: flex-start; }
.workbench .session-exit button { color: var(--olive); background: var(--ivory); border-color: #cdbfae; }
.workbench .glass { background: #fffbf2f5; border-color: var(--line); backdrop-filter: none; }
.workbench .nav-track button[aria-current="page"] { background: #e4e9da; color: #34412b; box-shadow: none; }
.workbench { --primary-fill: var(--olive); --text-tint: #425536; --separator: #d8ccba; }
.workbench article,.workbench .box { box-shadow: 0 2px 5px #51391f09; border: 1px solid #e4dacc; }

.access-page { min-height: 100svh; padding: clamp(16px,4vw,50px); margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--reading-face); }
.access-page,.access-page * { box-sizing: border-box; }
.access-page h1,.access-page h2 { margin: 0; line-height: 1.2; }
.access-page h1 { font: 650 clamp(28px,4vw,45px)/1.2 var(--title-face); text-wrap: balance; }
.access-page h2 { font-size: 22px; }
.access-page p { margin: 8px 0 16px; color: var(--quiet); }
.access-page button,.access-page input { min-height: 44px; padding: 8px 13px; font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 9px; background: var(--ivory); }
.access-page button { cursor: pointer; }
.access-page .primary { background: var(--olive); border-color: var(--olive); color: white; font-weight: 650; }
.access-page :is(input,button,a,[tabindex]):focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.access-page button:hover { filter: brightness(.94); }
.access-page a { color: var(--olive); text-underline-offset: 4px; }
.access-page .notice { color: var(--danger); }
.gate { width: min(100%,930px); margin: max(6vh,16px) auto 0; min-height: 430px; display: grid; grid-template-columns: .95fr 1fr; border: 1px solid var(--line); border-radius: 22px; overflow: clip; background: var(--ivory); box-shadow: 0 22px 55px #49381713; }
.gate-image { background: var(--banner) 75% center / cover no-repeat #e8d7bd; }
.gate-body { display: grid; align-content: center; padding: clamp(26px,5vw,62px); }
.gate-body form { display: grid; gap: 8px; }
.gate-body input { width: 100%; }
.gate-body button { margin-top: 6px; }
.gate-customer { grid-template-columns:minmax(0,1fr) minmax(0,.94fr); min-height:0; }
.gate-editorial { position:relative; width:100%; aspect-ratio:1080/975; min-height:0; align-self:start; overflow:hidden; background:#e8e0d4; }
.gate-editorial img { position:absolute; inset:0 auto auto 0; width:100%; height:auto; }
.gate-customer .gate-body { padding:clamp(26px,4vw,54px); }
.gate-customer h1 { font:750 clamp(25px,4vw,40px)/1.19 var(--reading-face); }
.gate-customer .gate-body > p { margin:10px 0 24px; }
.gate-customer .gate-body label { font-weight:650; }
.gate-customer .gate-body input,.gate-customer .primary { min-height:50px; }
.gate-customer .gate-body input::placeholder { color:#685f52; }
.gate-customer .primary { background:#bd3d0b; border-color:#bd3d0b; }
.developer { width: min(100%,1080px); margin-inline: auto; }
.developer-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: clamp(20px,4vw,42px); border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(90deg,#f5ead9ee,#f5ead9bc),var(--banner) right 40% / cover; }
.developer-head nav { display: flex; align-items: center; gap: 16px; }
.admin-section { margin-top: 22px; padding: clamp(16px,3vw,28px); border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); }
.mint { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto; align-items: end; gap: 12px; margin-top: 16px; }
.mint label,.issued label { display: grid; gap: 5px; }
.issued { display: grid; gap: 4px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #e9eddf; }
.issued input { font-variant-numeric: tabular-nums; letter-spacing: .04em; width: min(100%,370px); }
.issued p { margin: 0; }
.table-scroll { overflow: auto; margin-top: 12px; scrollbar-color: #b8bba9 transparent; }
.access-page table { border-collapse: collapse; width: 100%; min-width: 540px; font-variant-numeric: tabular-nums; }
.access-page th,.access-page td { text-align: left; padding: 11px 9px; border-bottom: 1px solid var(--line); }
.access-page thead { background: #eee9dd; }
.access-page tbody th { font-weight: 600; }

@media (max-width: 600px) {
  .workbench .page-head { padding: 18px; align-items: center; background-position: center,70% center; }
  .workbench .page-head p { max-width: 26ch; }
  .workbench .session-exit button { padding-inline: 10px; }
  .gate { min-height: auto; grid-template-columns: 1fr; margin-top: 0; }
  .gate-image { min-height: 150px; background-position: right 32%; }
  .customer-access { padding:0; background:var(--ivory); }
  .gate-customer { border:0; border-radius:0; box-shadow:none; }
  .gate-customer .gate-body { padding:28px 26px 36px; }
  .mint { grid-template-columns: minmax(0,1fr) minmax(0,.55fr); }
  .mint button { grid-column: 1/-1; }
}
@media (prefers-color-scheme: dark) {
  .workbench { background: #292920; --separator:#4f4b3d; --text-tint:#c9d5ae; --primary-fill:#556447; }
  .workbench .glass { background: #303127; border-color:#555143; }
  .workbench .nav-track button[aria-current="page"] { background:#46533a; color:#f2f4e9; }
  .workbench article,.workbench .box { border-color:#514b3d; }
}
