:root{color-scheme:light;--paper:#f6f2e8;--surface:#fffcf4;--ink:#223d38;--muted:#586860;--red:#a4372e;--rule:#b9beb0;--serif:"Iowan Old Style","Songti SC","Noto Serif CJK SC","STSong",Georgia,serif;--sans:Inter,"PingFang SC","Microsoft Yahei",system-ui,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:16px}
body{margin:0;color:var(--ink);font-family:var(--sans);background:radial-gradient(ellipse at 22% 2%,#fffcf5,transparent 60%),var(--paper);line-height:1.55;min-height:100vh}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
a{color:var(--ink);text-underline-offset:3px}
button{color:inherit;cursor:pointer}
button:disabled{cursor:default}
:focus-visible{outline:3px solid #c65f3d;outline-offset:3px}
.mast{border-block-end:1px solid var(--rule)}
.mast>div,main{width:min(calc(100% - 40px),1020px);margin-inline:auto}
.mast>div{height:64px;display:flex;align-items:center;justify-content:space-between}
.wordmark{font:bold 28px Georgia,serif;letter-spacing:-1.4px;text-decoration:none;display:inline-flex;gap:8px;align-items:center}
.brand-mark{width:29px;height:24px;border:1.6px solid var(--ink);border-radius:5px 5px 9px 9px;text-align:center;line-height:19px;position:relative;font-size:20px;font-style:italic}
.brand-mark:before{content:"";position:absolute;height:2px;top:-5px;left:4px;right:4px;background:var(--ink)}
.edition,.overline,.small-label{font-size:12px;letter-spacing:.12em;color:var(--muted);font-weight:650}
main{padding-block:40px 80px}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--serif);line-height:1.25;text-wrap:balance}
h1{font-size:clamp(36px,5.1vw,65px);letter-spacing:-.06em}
h2{font-size:clamp(25px,3.8vw,36px);letter-spacing:-.04em}
h3{font-size:21px}
.hero{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;margin-bottom:36px}
.hero h1 em{font-style:normal;color:var(--red)}
.lead,.hint{color:var(--muted)}
.lead{font-size:16px;line-height:1.85;max-width:33em;margin-top:16px}
.hero .primary{margin-top:22px}
.primary,.secondary,.quiet{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.35;padding:10px 18px;border-radius:5px;font-weight:650;text-decoration:none}
.primary{color:#fffdf4;background:var(--ink);border:1px solid var(--ink)}
.primary:hover{background:#34544c}
.secondary{border:1px solid #8b9b8f;background:transparent}
.quiet{background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;font-size:14px}
button[disabled]{opacity:.65}
.desk{display:grid;place-items:center;background-color:#e2e5d9;background-image:repeating-linear-gradient(102deg,transparent 0 9px,#f7f6e624 9px 10px);border:1px solid #a7b3a4;position:relative;overflow:hidden;border-radius:8px;padding:35px 45px;color:var(--ink);isolation:isolate}
.desk::before{content:"";width:65%;height:72%;position:absolute;top:9%;left:14%;border:1px solid #9a9c87;border-radius:2px;transform:rotate(-7deg);background:repeating-linear-gradient(135deg,#be7567 0 8px,#f4e5c9 8px 16px,#82978d 16px 24px,#f4e5c9 24px 32px);box-shadow:0 8px 8px #31463822}
.envelope{width:100%;max-width:360px;aspect-ratio:1.76;position:relative;transform:rotate(3deg);border:1px solid #ac9f80;border-radius:3px;background:linear-gradient(150deg,transparent 49%,#c0ae85 49.5%,transparent 50.2%) 0 0/50% 72% no-repeat,linear-gradient(210deg,transparent 49%,#c0ae85 49.5%,transparent 50.2%) 100% 0/50% 72% no-repeat,linear-gradient(15deg,#e9dec0,#fff5da);box-shadow:2px 7px 12px #273c342a;display:grid;place-content:end center;padding:8px 0 12px}
.envelope::before{content:"";position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 62%);background:linear-gradient(#f7e9c8,#d7c69d);z-index:-1}
.seal{position:absolute;left:50%;top:50%;transform:translate(-50%,-45%);width:48px;height:46px;border-radius:52% 46% 51% 44%;background:#a63831;box-shadow:inset -3px -3px 1px #842c24,inset 2px 2px 1px #d26a58,1px 2px 4px #66463755;display:grid;place-items:center;color:#f6dcc1;font:italic 26px Georgia}
.seal:after{content:"";position:absolute;inset:6px;border:1px solid #e49376;border-radius:49%}
.envelope b{font-size:14px;letter-spacing:.1em}
.desk:hover .envelope{transform:rotate(1deg)}
.sheet{background:var(--surface);border:1px solid var(--rule);border-radius:7px;padding:clamp(20px,3.5vw,38px);box-shadow:0 3px 0 #d8d8ca77}
.section-line{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.hint{font-size:14px;line-height:1.7;margin-top:7px}
form{margin-top:20px}
.fields{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:16px}
label{display:block;font-weight:650;font-size:14px;margin-bottom:6px}
input,textarea,select{width:100%;min-width:0;background:#fffef9;border:1px solid #929e90;border-radius:4px;min-height:45px;padding:8px 10px;color:var(--ink);font-size:16px}
textarea{resize:vertical;min-height:116px}
input:invalid:not(:focus):not(:placeholder-shown),textarea:invalid:not(:focus):not(:placeholder-shown){box-shadow:none}
.actions,.link-row{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:15px}
.link-row{flex-wrap:nowrap;margin-top:10px}
.link-row input{flex:1;min-width:0;font-size:13px;color:var(--muted)}
.link-row button{flex:none}
.feedback{color:var(--red);font-size:14px;margin-top:8px}
.feedback:empty{display:none}
.done{color:var(--ink)}
.page-head,.split-head{margin-bottom:24px}
.page-head .overline{margin-bottom:12px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.share-block+.share-block{border-top:1px dashed var(--rule);margin-top:20px;padding-top:18px}
.deck{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:15px}
.day{display:grid;justify-items:start;min-height:96px;align-content:space-between;padding:10px 8px;background:var(--surface);border-radius:4px;border:1px solid var(--rule);text-align:left;line-height:1.25}
.day small{font-size:11px;color:var(--muted)}
.day strong{font:600 21px Georgia,serif}
.day span{font-size:12px}
.day.selected,.day.ready,.day.opened{background:#e0e9dd;border-color:#63806b}
.day.selected{box-shadow:0 0 0 2px #486153}
.day.sealed,.day.taken{background:#ebe9de}
.day:disabled{opacity:1;color:#636e63}
.stack>*+*{margin-top:20px}
.compose{max-width:720px}
.compose label:not(:first-child){margin-top:15px}
.footnote{margin-top:22px;border-top:1px dashed var(--rule);padding-top:14px;color:var(--muted);font-size:14px}
details>summary{cursor:pointer;padding:8px 0;font-weight:650;min-height:44px}
dialog{border:1px solid var(--rule);border-radius:7px;width:min(calc(100% - 36px),480px);background:var(--surface);color:var(--ink);padding:0}
dialog::backdrop{background:#20362fc7}
.stationery{padding:27px;position:relative;border-top:6px solid transparent;border-image:repeating-linear-gradient(135deg,#b55c4e 0 10px,#f7eccf 10px 20px,#798e80 20px 30px,#f7eccf 30px 40px) 6}
.stationery .close{float:right;margin:-12px -13px 0 0}
.stationery .overline{margin:16px 0 12px}
.letter-body{white-space:pre-wrap;overflow-wrap:anywhere;font:19px/1.95 var(--serif);margin-top:22px}
.signature{margin-top:22px;text-align:right}
[data-user]{overflow-wrap:anywhere}
[hidden]{display:none!important}
@media(max-width:720px){.mast>div,main{width:min(calc(100% - 32px),580px)}.mast>div{height:52px}.wordmark{font-size:25px}main{padding-top:22px}.hero{gap:20px;grid-template-columns:1fr;margin-bottom:20px}.hero h1 br{display:none}.hero h1{font-size:clamp(31px,7vw,41px)}.hero .lead{font-size:15px;margin-top:8px}.hero .primary{margin-top:13px}.desk{padding:19px 40px}.envelope{max-width:225px}.seal{width:37px;height:36px;font-size:20px}.envelope b{font-size:12px}.fields,.split{grid-template-columns:1fr}.fields{gap:12px}.deck{grid-template-columns:repeat(4,minmax(0,1fr))}.day{min-height:83px}.page-head{margin-bottom:18px}.sheet{padding:18px}.section-line{gap:8px}}
@media(max-width:360px){.link-row{flex-wrap:wrap}.link-row input{flex-basis:100%}.mast>div,main{width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.guide{width:min(calc(100% - 40px),1020px);margin:-44px auto 64px;border-top:1px dashed var(--rule);padding-top:15px}
.guide details{border-bottom:1px solid #d4d8ca;padding:0 2px}
.guide details p{max-width:66ch;margin:2px 0 11px;color:var(--muted)}
.guide>p{margin-top:14px;font-size:14px}
.desk{text-decoration:none}
html[lang="en-US"] h1{letter-spacing:-.045em}
html[lang="en-US"] .day{overflow-wrap:break-word}
@media(max-width:720px){.guide{width:min(calc(100% - 32px),580px)}}
a.edition{min-height:44px;display:inline-flex;align-items:center;text-decoration:none}
/* The front of the gift and the same stationery used at the organizer’s desk. */
:root {
  --paper: #f7f0e5;
  --surface: #fffaf1;
  --ink: #1b3734;
  --muted: #53635c;
  --red: #a34138;
  --rule: #d9cdbb;
  --blue-post: #193e40;
  --serif: "Iowan Old Style", "Songti SC", Georgia, serif;
  --sans: "Hedvig Letters Sans", "PingFang SC", system-ui, sans-serif;
}
body { background: radial-gradient(ellipse at 29% 0, #fffcf3 0, var(--paper) 68%); }
main { padding-block: clamp(21px, 4vw, 50px) 54px; }
.skip { position: fixed; z-index: 5; left: 14px; top: 10px; padding: 10px 14px; background: var(--surface); transform: translateY(-160%); }
.skip:focus { transform: none; }
.mast { background: #fdf8ed; }
.mast > div { width: min(1120px, calc(100% - 48px)); min-height: 66px; height: auto; display: flex; align-items: center; gap: 16px; }
.mast .wordmark { flex-shrink: 0; }
.mast .edition { padding-inline-start: 15px; border-inline-start: 1px solid var(--rule); color: #7d4238; }
.mast nav { display: flex; gap: clamp(6px, 2vw, 29px); margin-inline-start: auto; }
.mast nav a, .mast-find { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 5px; font-size: .85rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.mast nav a:hover, .mast-find:hover { text-decoration: underline; }
.mast-find { gap: 6px; color: #863b31; }
.private-view .mast nav { display: none; }
.private-view .mast-find { margin-inline-start: auto; }

body:has(.birthday-home) #app { width: min(1120px, calc(100% - 48px)); padding-block: clamp(27px, 5vw, 59px) 40px; }
.birthday-home { display: grid; align-items: start; grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr); grid-template-areas: "sample intro" "sample make"; gap: 14px clamp(28px, 4vw, 58px); }
.hero-copy { grid-area: intro; }
.postline { color: #944336; font-size: .72rem; font-weight: 750; letter-spacing: .135em; margin: 0 0 .65rem; }
.hero-copy h1 { font: 700 clamp(2.5rem, 3.65vw, 3.95rem)/.98 var(--serif); color: var(--ink); margin: 0; }
.hero-copy h1 em { display: inline-block; color: var(--red); margin-block-start: .11em; font-weight: 600; }
.hero-copy .lead { margin: .82rem 0 .8rem; font-size: clamp(.93rem, 1.35vw, 1.08rem); max-width: 38ch; }
.hero-copy #start { display: none; }
.sample-board { grid-area: sample; position: relative; overflow: hidden; min-width: 0; padding: clamp(18px, 3.3vw, 38px); border: 1px solid #102d30; border-radius: 8px; color: #fbf1d9; background: radial-gradient(ellipse at 12% 4%, #325957, transparent 64%), var(--blue-post); box-shadow: 0 10px 22px #233d3c22; }
.sample-board::before { content: ""; position: absolute; inset: 8px; border: 1px dashed #ecddb244; border-radius: 4px; pointer-events: none; }
.sample-top, .sample-deck, .sample-hint { position: relative; }
.sample-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.sample-top .postline { color: #e2c098; margin: 0; }
.sample-top h2 { color: #fff5dc; margin: .12em 0 .5em; font: 600 clamp(2rem, 4.5vw, 4.3rem)/.94 var(--serif); }
.postmark { flex: 0 0 auto; display: grid; place-content: center; width: clamp(42px, 5vw, 66px); aspect-ratio: 1; border: 3px double #e7be8aa0; border-radius: 50%; color: #edca98; transform: rotate(11deg); text-align: center; font: italic 600 clamp(14px, 2vw, 21px)/.85 var(--serif); }
.sample-deck { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 11px; }
.sample-envelope { --envelope:#f6e7c5; --flap:#fff2d5; grid-column: span 2; isolation: isolate; position: relative; overflow: hidden; display: grid; align-content: end; min-width: 0; padding: 8px; min-height: clamp(70px, 8.7vw, 106px); border: 1px solid #603f3380; border-radius: 3px; background: var(--envelope); color: #233b35; text-align: left; box-shadow: 0 4px 8px #041f2380; transition: transform 150ms ease, box-shadow 150ms ease; }
.sample-envelope .fold { clip-path: polygon(0 0, 100% 0, 50% 82%); position: absolute; z-index: -1; inset: 0 0 21%; background: var(--flap); }
.sample-envelope::after { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(31deg,transparent 49%,#765b5532 50%,transparent 51%),linear-gradient(-31deg,transparent 49%,#765b5532 50%,transparent 51%); }
.envelope-label { width: max-content; max-width: 100%; padding: 2px 5px; border-radius: 1px; font-size: clamp(.67rem, 1.2vw, .85rem); line-height: 1.2; font-weight: 750; background: #fffbefd6; }
.envelope-stamp { position: absolute; width: clamp(20px, 2.7vw, 31px); aspect-ratio: 1; top: 42%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; background: #913d35; color: #fff1d7; border: 1px solid #e2ac7a; border-radius: 50%; box-shadow: 0 1px 2px #38281fa0; font: italic bold clamp(.8rem, 1.6vw, 1.2rem) var(--serif); }
.sample-envelope[data-opened="true"] .envelope-stamp { background: #446659; }
.sample-envelope:nth-child(2n) { --envelope: #f0c5b5; --flap: #f8dcca; }
.sample-envelope:nth-child(3n) { --envelope: #bbd2c3; --flap: #d4ead9; }
.sample-envelope:last-child { --envelope: #f0d391; --flap: #fbe3aa; grid-column: 2 / 6; }
.sample-envelope:focus-visible { outline-color: #ffde85; }
.sample-hint { color: #f3e6cd; text-align: center; font-size: .84rem; margin: 13px 0 0; }
.make-panel { grid-area:make; padding: 19px 22px; box-shadow: 0 4px 12px #4230260c; border-radius: 8px; }
.make-panel form { margin-top: 13px; }
.make-panel h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin: 0; }
.make-panel .hint { margin: 5px 0 12px; font-size: .82rem; }
.make-panel .fields { grid-template-columns: minmax(0,1fr) minmax(0, .9fr); gap: 10px; }
.make-panel .field-zone { grid-column: 1/-1; }
.make-panel label { font-size: .82rem; }
.make-panel input, .make-panel select { width: 100%; min-width: 0; }
.make-panel .primary { width: 100%; justify-content: center; }
.resume { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 9px; font-size: .84rem; }
.resume a, .jump-links a, .article-actions > a { display: inline-flex; align-items: center; min-height: 44px; }
.marked-link { overflow-wrap: anywhere; }

.landing-section, .landing-footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.landing-section { padding-block: clamp(28px, 5vw, 62px); border-top: 1px solid var(--rule); }
.landing-section h2 { font: 700 clamp(1.85rem, 3.4vw, 3.15rem)/1.04 var(--serif); margin: 0 0 .34em; }
.landing-section h3 { font: 700 clamp(1.17rem, 2.1vw, 1.5rem)/1.13 var(--serif); margin: 0 0 .46em; }
.section-heading { max-width: 68ch; margin-bottom: 24px; }
.section-heading > p, .landing-section article > p, .step-grid li > p { color: var(--muted); margin: 0 0 12px; }
.step-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(13px, 2.4vw, 29px); padding: 0; margin: 0; list-style: none; }
.step-grid li { min-width: 0; }
.step-grid img { display: block; aspect-ratio: 384/540; width: 100%; height: auto; max-width: 270px; object-fit: cover; margin-bottom: 15px; border-radius: 7px; border: 1px solid #c6b7a0; background: #ede4d6; }
.step-grid h3 span { color: var(--red); }
.feature-grid, .role-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(14px, 2.2vw, 26px); margin-top: 21px; }
.feature-grid article { padding: 2px 12px 2px 0; }
.feature-grid article > span { color: var(--red); display:block; font-size: 1.6rem; margin-bottom: 7px; }
.role-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.role-grid article { padding: 18px 17px; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); }
.role-grid article a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.gift-options { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: clamp(18px,4.5vw,58px); }
.gift-options dl > div { border-bottom: 1px solid var(--rule); padding: 11px 0; }
.gift-options dl dt { font-weight: 700; }
.gift-options dl dd { margin: 3px 0 0; color: var(--muted); }
.gift-options aside { border-left: 3px solid #bb845e; padding: 23px; background: #ece1cd; }
.gift-options aside blockquote { margin: 12px 0 15px; font: italic 1.65rem/1.2 var(--serif); }
.questions details, .help-topics details { border-bottom: 1px solid var(--rule); }
.questions details p, .help-topics details p { max-width: 68ch; color: var(--muted); margin: 0 0 14px; }
.questions details summary, .help-topics details summary { padding: 12px 0; }
.final-action { text-align: center; padding-block: 48px; }
.final-action p { color: var(--muted); }
.landing-footer { display: grid; grid-template-columns: minmax(0,1.2fr) repeat(3,minmax(0,1fr)); gap: 19px; border-top: 1px solid var(--rule); padding-block: 26px 34px; }
.landing-footer h2 { font: 700 .94rem/1.3 var(--sans); margin: 0 0 7px; }
.landing-footer p { color: var(--muted); margin: 6px 0; }
.landing-footer div > a:not(.wordmark) { display: flex; align-items: center; font-size: .87rem; min-height: 44px; }
.article-page { max-width: 892px; }
.article-intro { margin-bottom: 26px; max-width: 67ch; }
.article-intro h1 { font: 700 clamp(2.35rem,5.5vw,4.35rem)/1 var(--serif); margin: .28em 0 .3em; }
.article-intro p { color: var(--muted); font-size: 1.05rem; }
.article-page .landing-section { width: 100%; }
.article-page > .sheet + .sheet, .help-topics > .sheet + .sheet { margin-top: 16px; }
.price-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 12px 0 31px; }
.price-grid .price { color: var(--red); font: 600 2.45rem/1 var(--serif); margin: 12px 0; }
.price small { font: 600 .77rem/1.3 var(--sans); color: var(--muted); }
.jump-links, .article-actions { display:flex; flex-wrap:wrap; gap: 10px 20px; align-items:center; }
.article-footer { width: min(892px, calc(100% - 48px)); }
.idea-list { padding-left: 1.55rem; }
.idea-list li { margin-bottom: 10px; padding: 12px 8px 6px; border-bottom: 1px solid var(--rule); }
.idea-list li p { margin-top: 3px; }
.recovery-panel { max-width: 720px; margin-inline: auto; }
.native-share { margin-top: 3px; }
.stationery .overline { color: var(--red); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .sample-envelope:hover { transform: translateY(-3px); box-shadow: 0 7px 12px #041f2380; }
}
@media (max-width:780px) {
  .mast > div { width: calc(100% - 32px); gap: 9px 12px; }
  body:has(.birthday-home) #app { width: min(590px, calc(100% - 32px)); padding-block: 23px 29px; }
  .birthday-home { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "sample" "make"; gap: 17px; }
  .hero-copy h1 { font-size: clamp(2.45rem,8vw,3.65rem); }
  .hero-copy #start { display: inline-flex; }
  .sample-board { padding: 20px; }
  .sample-top h2 { margin-bottom: .5em; }
  .sample-deck { gap: 7px; }
  .sample-envelope { min-height: clamp(62px, 13vw, 90px); }
  .postmark { width: 45px; }
  .sample-hint { font-size: .78rem; }
  .landing-section, .landing-footer { width: min(675px, calc(100% - 32px)); }
  .article-page .landing-section { width: 100%; }
}
@media (max-width:560px) {
  .mast > div { display: grid; grid-template-columns: auto minmax(0,1fr) auto; min-height: 0; gap: 0 7px; }
  .mast .wordmark { min-height: 48px; }
  .mast .edition { padding-left: 8px; font-size: .69rem; }
  .mast-find { grid-column: 3; grid-row: 1; padding: 0; }
  .mast nav { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; margin: 0; gap: 18px; border-top: 1px solid var(--rule); }
  .mast nav a { padding-inline: 2px; }
  .make-panel { padding: 16px; }
  .step-grid, .feature-grid, .landing-footer { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gift-options, .role-grid, .price-grid { grid-template-columns: 1fr; }
  .step-grid li > p { font-size: .85rem; }
  .landing-footer { gap: 14px; }
  .mast .wordmark { font-size: 22px; }
}
@media (max-width:335px) {
  .mast > div, body:has(.birthday-home) #app, .landing-section, .landing-footer { width:calc(100% - 24px); }
  .sample-board { padding: 16px; }
  .sample-envelope { padding: 5px; }
}
