:root {
  color-scheme: light;
  --badge-accent: #16483d;
  --ink: #182f29;
  --quiet: #53635b;
  --paper: #f9f8f2;
  --line: #d2d5c9;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
:focus-visible { outline: 3px solid #b15123; outline-offset: 3px; }
[hidden], [data-edition="custom"] .public-only, #print-pages { display: none !important; }
.wrap { width: min(1100px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset: 8px auto auto 8px; padding: 12px; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .mast nav, .brand { display: flex; align-items: center; }
.mast-inner { min-height: 72px; justify-content: space-between; gap: 16px; }
.mast nav { gap: 24px; }
.mast a, footer a { text-decoration: none; }
.mast nav a, footer a { display: inline-flex; min-height: 44px; align-items: center; font-size: .9rem; font-weight: 650; }
.mast nav a:hover, footer a:hover { text-decoration: underline; }
.brand { gap: 10px; font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
.brand b { padding-left: 11px; margin-left: 4px; border-left: 1px solid #bec6b9; }
.brand img { width: 34px; height: auto; }
#make { padding-block: clamp(36px, 5vw, 72px) 46px; scroll-margin: 15px; }
.intro { margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: #356951; font-size: .84rem; font-weight: 800; }
h1, h2, p { margin: 0; }
h1, h2, label, .price { letter-spacing: -.045em; }
h1 { font-size: clamp(2.45rem, 5.3vw, 4.4rem); line-height: 1.17; font-weight: 800; margin-bottom: 12px; }
.intro > p:last-child { color: var(--quiet); line-height: 1.65; font-size: 1.05rem; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.editor { min-width: 0; }
.field + .field { margin-top: 17px; }
label, .proof-heading h2 { font-size: 1rem; font-weight: 750; }
.field > label, .reprint > label { display: block; margin-bottom: 7px; }
.field-title, .proof-heading, .desk-caption, .select-action, .button, footer, .price { display: flex; align-items: center; }
.field-title, .proof-heading, .desk-caption, .button, footer { justify-content: space-between; gap: 8px; }
.text-button { padding: 0 2px; min-height: 44px; color: #215844; background: transparent; border: 0; text-decoration: underline; text-underline-offset: .22em; font-size: .85rem; font-weight: 750; }
.text-button:disabled { color: #636d65; text-decoration: none; }
input, textarea, select { width: 100%; min-width: 0; background: #fffefa; color: var(--ink); border: 1px solid #8f9e90; border-radius: 6px; padding: 10px 12px; min-height: 45px; font-size: 1rem; }
textarea { display: block; padding: 13px; resize: vertical; min-height: 126px; line-height: 1.55; tab-size: 12; }
input::placeholder, textarea::placeholder { color: #6a736d; opacity: 1; }
[aria-invalid="true"] { border: 2px solid #9b301d; }
.hint, .status, .privacy, .mail-note { font-size: .84rem; }
.hint { margin: 0 0 8px; color: var(--quiet); }
.status { margin-top: 6px; color: var(--quiet); }
.status[data-error="true"] { color: #9b301d; font-weight: 650; }
.button { padding: 11px 16px; border: 1px solid transparent; border-radius: 6px; font-weight: 750; text-decoration: none; min-height: 46px; }
.primary { background: #204d3d; color: white; width: 100%; margin: 17px 0 8px; }
.primary:not(:disabled):hover, .order:hover { background: #15392d; color: white; }
.primary:disabled { background: #dde1d5; color: #556259; }
.privacy { color: var(--quiet); }
.proof { min-width: 0; border: 1px solid #a9b6a7; border-radius: 12px; background: #fffefa; overflow: hidden; }
.proof-heading { padding: 12px 20px; border-bottom: 1px solid #b7c6b3; }
#example-note { color: #455c4b; font-size: .82rem; }
.desk { position: relative; overflow: hidden; background-color: #d4e1cd; background-image: radial-gradient(#aabad0 0.7px, transparent 0.85px); background-size: 11px 11px; padding: 33px 34px 12px; }
.ruler { width: 9px; position: absolute; left: 0; top: 18px; bottom: 17px; background: repeating-linear-gradient(to bottom,#899c88 0 1px,transparent 1px 11px); }
#preview { width: min(100%, 345px); aspect-ratio: 3/2; margin: 4px auto 18px; }
#preview .name-badge { width: 100%; height: 100%; transform: rotate(-2deg); box-shadow: 3px 9px 12px #46583d33; }
.desk-caption { font: 650 .74rem/1.5 ui-monospace, monospace; color: #425744; }
.desk-caption span { font-family: -apple-system, sans-serif; }
.reprint { padding: 15px 20px 20px; }
.select-action { gap: 8px; }
.select-action select { flex: 1 1 auto; }
.outline { flex: none; background: transparent; border-color: #8b9f91; color: #224b39; }
.outline:not(:disabled):hover { background: #e7eee3; }
.outline:disabled { border-color: #c8cfc5; color: #667168; }
.name-badge { position: relative; display: flex; flex-direction: column; overflow: hidden; container-type: inline-size; background: white; color: #152720; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; border: .17mm solid #929b91; }
.badge-head { display: flex; align-items: center; justify-content: space-between; gap: 3%; margin: 5% 6.5% 0; border-top: 1.35cqi solid var(--badge-accent); padding-top: 2%; min-width: 0; }
.badge-event, .badge-name, .badge-org { word-break: break-all; overflow-wrap: anywhere; white-space: pre-wrap; }
.badge-event { font-size: var(--event-size, 5.1cqi); font-weight: 750; line-height: 1.17; }
.badge-logo { width: 16%; height: 7cqi; object-fit: contain; }
.badge-person { margin: auto 6.5%; padding: 3% 0 7%; min-width: 0; }
.badge-name { display: block; font-size: var(--name-size, 16cqi); line-height: 1.09; letter-spacing: -.055em; }
.badge-org { display: block; font-size: var(--org-size, 5.4cqi); font-weight: 600; color: #42544a; line-height: 1.2; margin-top: 2%; }
.badge-org:empty { display: none; }
.badge-foot { position: absolute; bottom: 0; right: 6.5%; width: 32%; height: 9%; overflow: hidden; }
.badge-foot i { position: absolute; border: .75cqi solid var(--badge-accent); border-radius: 50%; width: 55%; height: 27cqi; top: 0; transform: rotate(35deg); }
.badge-foot i:nth-child(1) { left: 4%; }
.badge-foot i:nth-child(2) { left: 25%; }
.badge-foot i:nth-child(3) { left: 46%; }
.print-guide { margin-top: 30px; border-block: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline; font-size: .87rem; }
.print-guide h2 { font-size: 1rem; }
.print-guide p { color: var(--quiet); }
.sample-link { font-weight: 700; color: #28573e; }
.offer { background: #e9edde; padding-block: clamp(32px, 5vw, 68px); }
.offer-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 100px); }
.offer h2 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); line-height: 1.2; }
.offer-intro { margin: 13px 0 22px; max-width: 31em; }
.price { gap: 10px; flex-wrap: wrap; }
.price strong { font-size: 1.9rem; line-height: 1.1; }
.price span { font-size: .85rem; }
dl { margin: 0 0 18px; }
dl div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid #bbc6b4; font-size: .93rem; }
dt { font-weight: 750; }
dd { margin: 0; }
.order { background: #204d3d; color: white; }
.mail-note { margin-top: 9px; color: #445244; }
footer { min-height: 76px; font-size: .85rem; }

@media (max-width: 760px) {
  .wrap { width: min(550px, calc(100% - 36px)); }
  .mast-inner { min-height: 61px; }
  .mast nav { gap: 13px; }
  .studio, .offer-grid, .print-guide { grid-template-columns: 1fr; }
  .studio { gap: 22px; }
  .print-guide { gap: 5px; }
  .desk { padding-inline: 27px; }
  .wide { display: none; }
}
@media (max-width: 430px) {
  .mast nav a[href="#make"] { display: none; }
  .brand { font-size: 1rem; gap: 6px; }
  #make { padding-top: 30px; }
  .intro { margin-bottom: 20px; }
  .desk { padding-inline: 22px; }
  .proof-heading, .reprint { padding-inline: 13px; }
  .select-action { flex-wrap: wrap; }
  .select-action select { flex-basis: 9em; }
}
@media (max-width: 600px) {
  .studio { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .proof { display: contents; }
  .proof-heading, .desk { order: -1; }
  .proof-heading { border: 1px solid #a9b6a7; border-radius: 8px 8px 0 0; background: #fffefa; padding-block: 7px; }
  .desk { border: 1px solid #a9b6a7; border-top: 0; border-radius: 0 0 8px 8px; padding-block: 14px 6px; }
  #preview { width: min(75%, 235px); margin-block: 3px 9px; }
  .editor { margin-top: 22px; }
  .reprint { margin-top: 16px; padding: 14px 0 0; border-top: 1px solid var(--line); }
}
@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { background: white; margin: 0; padding: 0; }
  #screen { display: none !important; }
  #print-pages { display: block !important; }
  .print-sheet { width: 210mm; height: 296mm; display: grid; grid-template: repeat(4, 60mm) / repeat(2, 90mm); gap: 3mm; justify-content: center; align-content: center; break-after: page; break-inside: avoid; }
  .print-sheet:last-child { break-after: auto; }
  .print-sheet .name-badge { width: 90mm; height: 60mm; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .empty-print { padding: 24mm; }
}
