@font-face {
  font-family: Geist;
  src: url('/type/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('/type/plex.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #ecf2eb;
  --white: #fffdf6;
  --ink: #203731;
  --muted: #425b54;
  --pine: #27574b;
  --accent: #823954;
  --line: #b5c6b6;
  --green: #deebdc;
  --rose: #f3e2e2;
  --sand: #f2ead8;
  font: 16px/1.55 Geist, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1,h2,h3,h4,p,figure { margin: 0; }
h1,h2,h3,h4 { line-height: 1.05; }
button,input,textarea,select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .53; }
a { color: var(--pine); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9d4a65; outline-offset: 3px; }
.skip:not(:focus) { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 2; top: 8px; left: 8px; background: white; padding: 8px; }
.frame { width: min(1170px,calc(100% - 56px)); margin-inline: auto; }
.mast { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; font-size: 1.54rem; font-weight: 780; letter-spacing: -.04em; line-height: 1; }
.brand span { display: inline-block; width: 19px; height: 18px; border: 2px solid var(--pine); border-bottom: 0; border-radius: 9px 9px 0 0; background: linear-gradient(90deg,var(--pine) 0 29%,transparent 29%); }
.mast > a:last-child { font-size: .87rem; font-weight: 690; }
.intro { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: clamp(16px,4.2vw,58px); align-items: center; padding: 22px 0 20px; }
.small-label { color: var(--pine); text-transform: uppercase; letter-spacing: .072em; font: .73rem/1.27 Plex, monospace; }
.intro h1 { font-size: clamp(3.25rem,5.25vw,4.7rem); letter-spacing: -.034em; font-weight: 750; line-height: .91; margin: 6px 0 10px; }
.intro h1 span { color: var(--accent); }
.intro p:not(.small-label) { color: var(--muted); font-size: 1.04rem; line-height: 1.37; max-width: 33ch; margin-bottom: 12px; }
.hero-image { aspect-ratio: 2.16; border: 1px solid #8eac9c; border-radius: 4px 4px 1px 1px; overflow: hidden; background: #d3dfd0; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 43px; padding: 7px 10px; border: 1px solid #829e8f; border-radius: 3px; color: var(--ink); background: none; text-decoration: none; font-size: .85rem; line-height: 1.18; font-weight: 690; }
.button:hover:enabled { background: #dce7dc; }
.button.primary { background: var(--pine); color: white; border-color: var(--pine); }
.button.primary:hover,.button.primary:hover:enabled { background: #346d5e; color: white; border-color: #346d5e; }
.plain { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; min-height: 34px; padding: 3px 0; font-size: .84rem; color: var(--pine); font-weight: 660; text-align: left; }
.plain:hover { color: var(--accent); }
.builder { border-top: 2px solid var(--pine); padding: 12px 0 25px; scroll-margin-top: 9px; }
.builder-head,.sheet-head,.preview-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px 13px; margin-bottom: 9px; }
.builder-head h2 { font-size: clamp(2.2rem,4.65vw,3.95rem); letter-spacing: -.04em; margin-top: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.mobile-tabs { display: none; }
.work { display: grid; grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr); gap: 10px; align-items: start; }
.worksheet { padding: 11px; border: 1px solid var(--line); background: var(--white); border-radius: 3px; min-width: 0; }
.sheet-head h3,.area-head h3,.preview-bar h3 { font-size: clamp(1.45rem,2.7vw,2.17rem); letter-spacing: -.032em; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 6px; margin-bottom: 7px; }
label { display: grid; gap: 3px; min-width: 0; color: var(--ink); font-size: .8rem; font-weight: 680; }
input,select,textarea { min-height: 42px; width: 100%; min-width: 0; padding: 5px 7px; border: 1px solid #91a49a; border-radius: 3px; background: #fffefa; font-size: 1rem; font-weight: 440; }
textarea { resize: vertical; }
.helper { color: var(--muted); font-size: .8rem; line-height: 1.41; }
.area-head { margin-top: 11px; padding: 9px 0 7px; border-top: 1px solid var(--line); }
.area-head h3 { margin-bottom: 4px; }
.areas { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.area-choice,.mobile-tabs button {
  min-height: 39px; padding: 4px 7px; border: 1px solid #99aea0; border-radius: 3px;
  background: #eff4ea; font-size: .78rem; line-height: 1.23; font-weight: 675;
}
.area-choice[aria-pressed="true"],.mobile-tabs button[aria-pressed="true"] { background: var(--pine); color: white; border-color: var(--pine); }
.area-choice:hover,.mobile-tabs button:hover { text-decoration: underline; text-underline-offset: 3px; }
#area-form { border-top: 1px solid var(--line); padding-top: 8px; }
#area-title { font-size: 1.22rem; margin-bottom: 4px; }
#area-form > * + * { margin-top: 6px; }
.preview { min-width: 0; padding: 8px; background: #d9e6dc; border: 1px solid #acc2b3; border-radius: 3px; }
.preview-bar { margin-bottom: 5px; padding: 3px; }
.preview-bar h3 { font-size: 1.32rem; }
.guest-card { background: var(--white); border: 1px solid #aebfb5; border-radius: 3px; min-width: 0; overflow-wrap: anywhere; }
.guide-head { padding: 13px; background: #243f38; color: #f6faee; }
.guide-head .small-label { color: #cfebd0; }
.event-title { font-size: clamp(2rem,3.1vw,3.15rem); letter-spacing: -.04em; margin: 4px 0; }
.guide-venue { font-size: .93rem; }
.event-date,.checked { font-size: .78rem; color: #dfebdd; margin-top: 3px; }
.checked { border-top: 1px solid #607970; padding-top: 4px; margin-top: 6px; }
.visitor-area { padding: 9px 11px; border-left: 4px solid #8a9b8b; }
.visitor-area:not(:last-child) { border-bottom: 1px solid var(--line); }
.visitor-area.state-confirmed { border-left-color: #638563; }
.visitor-area.state-barrier { border-left-color: #a4506a; }
.visitor-area.state-unknown { border-left-color: #a78b48; }
.visitor-area-top { display: flex; gap: 5px 8px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.visitor-area h2,.visitor-area h4 { font-size: 1rem; font-weight: 740; line-height: 1.2; }
.state-label { border-radius: 3px; padding: 3px 6px; background: var(--sand); color: #624c24; font: .72rem/1.19 Plex, monospace; }
.state-barrier .state-label { color: #762d45; background: var(--rose); }
.state-confirmed .state-label { color: #34583c; background: var(--green); }
.visitor-note { margin-top: 4px; color: var(--muted); font-size: .87rem; white-space: pre-wrap; line-height: 1.4; }
.contact { border-top: 1px solid var(--line); padding: 8px 12px; }
.contact a { display: inline-block; margin-top: 2px; font-size: .9rem; }
.foot { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 15px; flex-wrap: wrap; padding: 12px 0 23px; color: var(--muted); font-size: .83rem; }
.foot .brand { font-size: 1.19rem; }
.notice { color: #355540; background: #ddeadc; border-left: 3px solid #739978; font-size: .85rem; padding: 7px 9px; margin-bottom: 7px; }
.notice.error { color: #772d45; background: #f3dfe3; border-color: #9d4b68; }
dialog { width: min(630px,calc(100% - 22px)); max-height: calc(100dvh - 22px); overflow: auto; border: 1px solid #8aa997; border-radius: 4px; background: var(--white); color: var(--ink); padding: 13px; }
dialog::backdrop { background: #18362cc0; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 7px 12px; margin-bottom: 8px; }
.modal-head h2 { font-size: clamp(1.85rem,5vw,2.95rem); letter-spacing: -.035em; }
.close { min-height: 42px; min-width: 42px; border: 1px solid #9aafa1; background: none; border-radius: 3px; font-size: 1.35rem; }
.close:hover { background: #dfebdd; }
#export-note { margin-bottom: 7px; }
#share-field { font: .8rem/1.42 Plex, monospace; }
#export-dialog .actions { margin-top: 6px; }
.guest-shell { max-width: 750px; margin-block: 18px 25px; }
.guest-shell .guest-card .guide-head { padding: 18px; }
.guest-shell .event-title { font-size: clamp(2.48rem,6.2vw,4.75rem); }
.guest-shell .visitor-area { padding: 11px 15px; }
.guest-shell .visitor-area h2 { font-size: 1.16rem; }
.guest-shell .visitor-note { font-size: .97rem; }
.article { max-width: 765px; margin: 30px auto 37px; }
.article h1 { font-size: clamp(3rem,7.1vw,5.6rem); letter-spacing: -.042em; margin: 6px 0 8px; }
.article h2 { font-size: clamp(1.78rem,4.3vw,2.95rem); letter-spacing: -.035em; margin: 16px 0 6px; }
.article .lead { color: var(--muted); font-size: 1.12rem; }
.article p+p { margin-top: 6px; }
.article ul { padding-left: 19px; }
.article .button { margin-top: 9px; }
.example { border-left: 4px solid #986375; background: #f2e8e6; padding: 8px 10px; }
@media(max-width:850px) {
  .frame { width: calc(100% - 35px); }
  .intro { gap: 14px; }
  .intro h1 { font-size: clamp(3.12rem,5.25vw,4.7rem); }
}
@media(max-width:670px) {
  .frame { width: calc(100% - 24px); }
  .mast { min-height: 56px; }
  .mast > a:last-child { font-size: .78rem; }
  .intro { grid-template-columns: minmax(0,1fr); gap: 9px; padding: 16px 0 12px; }
  .intro h1 { font-size: clamp(3.08rem,10vw,4.25rem); margin: 5px 0 7px; }
  .intro p:not(.small-label) { font-size: .94rem; margin-bottom: 7px; }
  .hero-image { aspect-ratio: 2.48; }
  .builder-head { flex-direction: column; align-items: flex-start; }
  .mobile-tabs { display: flex; gap: 5px; margin-bottom: 6px; }
  .work { grid-template-columns: minmax(0,1fr); }
  .work[data-view="editor"] .preview,.work[data-view="preview"] .worksheet { display: none; }
  .visitor-area-top { justify-content: flex-start; }
  .foot { flex-direction: column; }
}
@media(max-width:360px) {
  .fields { grid-template-columns: minmax(0,1fr); }
  .intro h1 { font-size: 2.95rem; }
  .mast .small-label { font-size: .65rem; }
}
