:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --ink: #392b2c;
  --wine: #542c3d;
  --accent: #a7814c;
  --edge: #dccbb6;
  --quiet: #65574e;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font: 100%/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; min-height: 100vh; min-height: 100svh; flex-direction: column; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .68; }
:focus-visible { outline: 3px solid #a36e24; outline-offset: 4px; }
[hidden] { display: none !important; }
.frame { width: min(70rem, 88%); margin-inline: auto; }
.mast { background: #fffdf8; border-bottom: 1px solid var(--edge); }
.mast-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.mast-inner { min-height: 6.2rem; }
.brand { display: block; height: auto; width: auto; max-width: min(13.5rem, 43%); max-height: 3.7rem; }
.language { display: inline-flex; border: 1px solid var(--edge); background: #f7f0e6; border-radius: .6rem; padding: 3px; }
.language button { min-height: 2.75rem; padding: .44rem .92rem; border-radius: .43rem; border: 1px solid transparent; background: transparent; color: #635044; font-weight: 600; }
.language button[aria-pressed="true"] { border-color: #d7c5ad; background: #fffdf9; color: var(--wine); box-shadow: 0 1px 3px #41241312; }
.main-frame { flex: 1; display: flex; align-items: center; padding-block: clamp(2rem, 6vh, 5.5rem); }
#content { width: 100%; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--wine); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
h1:focus:not(:focus-visible) { outline: none; }
.intro { margin-top: .8rem; max-width: 42rem; color: var(--quiet); font-size: clamp(1.04rem, 1.7vw, 1.28rem); line-height: 1.5; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.85rem, 2.5vw, 2rem); margin-top: clamp(1.5rem, 3.4vw, 2.8rem); }
.choice {
  text-align: start; position: relative; display: flex; align-items: flex-start; min-height: 14rem; flex-direction: column;
  border-radius: .8rem; border: 1px solid #6d4857; padding: clamp(1.2rem, 3vw, 2.15rem);
  color: #fff8ee; background: linear-gradient(132deg, #482533, #63364a); box-shadow: 0 3px 0 #d7c4a7;
  transition: transform .15s ease, box-shadow .15s ease;
}
.choice.walkin { border-color: #dbcaaf; background: linear-gradient(120deg, #fbf0da, #f0e4cc); color: #503044; }
.choice strong { display: block; margin-top: 1.2rem; font: 400 clamp(1.55rem, 3.1vw, 2.35rem)/1.15 var(--serif); letter-spacing: -.03em; }
.choice small { display: block; margin-top: .5rem; color: #f0dfd7; font-size: 1.05rem; }
.choice.walkin small { color: #635244; }
.choice-icon, .success-icon { flex: none; display: grid; width: 3.2rem; height: 3.2rem; place-items: center; border-radius: 50%; background: #fff4d81a; color: #ffdfa3; }
.walkin .choice-icon { color: #694252; background: #dfcaa8aa; }
.choice-icon svg, .success-icon svg { width: 1.85rem; height: 1.85rem; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .choice:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #d7c4a7; } }
.choice:active { transform: translateY(1px); }
.form-wrap, .state-wrap { max-width: 45rem; }
.form-wrap h1, .state-wrap h1 { font-size: clamp(2.1rem, 4.5vw, 3.55rem); }
.back, .text-action { display: inline-block; min-height: 2.75rem; padding: .4rem .1rem; border: 0; background: transparent; color: var(--wine); text-decoration: underline; text-decoration-color: #aa8b62; text-underline-offset: .23em; font-weight: 600; }
.back { margin-bottom: .8rem; }
.fields { display: grid; gap: 1.05rem; margin: 1.4rem 0; max-width: 38rem; }
label { display: block; margin-bottom: .35rem; color: #473438; font-weight: 650; }
input { width: 100%; min-height: 3.4rem; color: var(--ink); background: #fffdfa; border: 1px solid #ac9780; border-radius: .5rem; padding: .55rem .9rem; font-size: max(1.1rem, 16px); }
.hint { display: block; margin-top: .28rem; font-size: .96rem; color: var(--quiet); }
.primary, .secondary { display: inline-block; min-height: 3.25rem; padding: .7rem 1.25rem; border-radius: .5rem; font-weight: 650; line-height: 1.25; }
.primary { color: #fff9ef; border: 1px solid var(--wine); background: var(--wine); box-shadow: 0 2px 0 #c4a880; }
.secondary { color: var(--wine); background: #fffaf2; border: 1px solid #c9b49a; }
.primary:hover, .primary:focus-visible { background: #68364b; }
.actions, .dialog-buttons { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; }
.state-wrap .actions { margin-top: 1.65rem; }
.message { margin: 1rem 0 0; padding: .7rem .9rem; color: #6b302d; border-left: 3px solid #a66637; background: #f9eee1; max-width: 38rem; }
.message:empty { display: none; }
.success-icon { margin-bottom: 1.1rem; background: #e5ecdf; color: #405947; }
footer { color: #eadbd1; background: #3d2430; }
.footer-inner { min-height: 4rem; padding-block: .7rem; }
.footer-inner strong { color: #fff6e6; font: 400 1.22rem var(--serif); }
.footer-inner span { font-size: .95rem; }
dialog { width: min(29rem, 90%); border: 1px solid var(--edge); border-top: 3px solid var(--accent); border-radius: .75rem; background: var(--paper); color: var(--ink); padding: 1.55rem; }
dialog::backdrop { background: #2e1d26aa; }
dialog h2 { font-size: 1.85rem; line-height: 1.2; }
dialog p { margin: .55rem 0 1.2rem; }
@media (max-width: 700px) { .frame { width: 90%; } .mast-inner { min-height: 5.2rem; } .choice { min-height: 12rem; } }
@media (max-width: 580px) {
  .choice-grid { grid-template-columns: 1fr; }
  .choice { min-height: 6rem; display: grid; grid-template-columns: 2.75rem 1fr; align-content: center; column-gap: .85rem; }
  .choice strong { margin-top: 0; }
  .choice small { grid-column: 2; margin-top: .22rem; font-size: .96rem; }
  .choice-icon { grid-row: span 2; align-self: center; width: 2.65rem; height: 2.65rem; }
  .footer-inner { align-items: start; flex-direction: column; gap: .15rem; }
  .language button { padding-inline: .65rem; }
}
@media (max-width: 370px) { .language button { padding-inline: .42rem; } .mast-inner { gap: .45rem; } .choice { padding: .9rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .choice:is(:hover,:active) { transform: none; } }
