:root {
  color-scheme: light;
  --paper: #f6f0df;
  --green: #214c42;
  --red: #b24331;
  --rule: #aec0a7;
  font-family: 'DM Sans', 'PingFang HK', 'Microsoft JhengHei', sans-serif;
  color: var(--green);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 64% 40%, #fffbeb 0, transparent 52%), var(--paper);
}
.awning {
  height: 9px;
  background: repeating-linear-gradient(90deg, #527e6b 0 19px, #dfdfbd 19px 35px);
  border-bottom: 1px solid #638771;
}
header {
  margin: 0 auto;
  width: min(100% - 72px, 1280px);
  padding: 21px 0 18px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px 'Songti TC', 'Noto Serif CJK TC', serif; letter-spacing: .15em; }
.flower { font: 34px/1 Georgia, serif; color: var(--red); letter-spacing: 0; }
button { color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
#sound { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; background: none; border: 0; padding: 0 5px; font-size: 13px; letter-spacing: .06em; }
.sound-bars { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.sound-bars i { width: 2px; height: 7px; background: currentColor; border-radius: 1px; }
.sound-bars i:nth-child(2) { height: 14px; }
.sound-bars i:nth-child(3) { height: 10px; }
#sound[aria-pressed=false] i { height: 2px; }
main { flex: 1; align-self: center; width: min(1040px, 100% - 72px); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 0; padding: clamp(8px, 4vh, 46px) 0; }
.menu { padding-left: clamp(0px, 3vw, 48px); }
.drink-type { font: 600 11px/1.5 'Space Mono', 'Courier New', monospace; letter-spacing: .15em; color: #526d5d; }
h1 { display: flex; align-items: flex-start; width: max-content; margin: 12px 0 0; font: 900 clamp(60px, 6.6vw, 91px)/1.22 'Songti TC', 'Noto Serif TC', 'PMingLiU', serif; letter-spacing: -.055em; }
.mini-seal { color: var(--red); border: 2px solid; border-radius: 4px; padding: 3px 3px 5px; margin: .55em 0 0 .5em; font-size: .24em; line-height: 1; transform: rotate(6deg); }
.invite { margin: 14px 0 0; color: var(--red); font: 700 25px/1.4 'Songti TC', 'PMingLiU', serif; letter-spacing: .07em; }
.directions { margin: 29px 0 21px; font-size: 15px; line-height: 1.9; color: #476254; }
.actions { display: flex; gap: 10px; }
.actions button { min-height: 44px; padding: 9px 18px; border: 1px solid #678576; border-radius: 24px; letter-spacing: .05em; font-size: 14px; background: transparent; }
.actions button:first-child { background: var(--green); color: #fff8e4; border-color: var(--green); }
.actions span { margin-right: 4px; font: 18px/1 'DM Sans', sans-serif; }
.actions button:active { transform: translateY(1px); }
@media (hover: hover) { .actions button:hover { box-shadow: 0 0 0 2px #748c6c38; } #sound:hover { color: var(--red); } }
.illustration { width: 100%; max-width: 570px; justify-self: center; }
canvas { width: 100%; height: auto; vertical-align: middle; display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
canvas:active { cursor: grabbing; }
.tiles { height: clamp(12px, 3.5vh, 36px); background: repeating-linear-gradient(90deg, transparent 0 51px, #e1e2ce 51px 53px), #91b4a0; border-top: 3px double #688d79; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 710px) {
  header { width: calc(100% - 36px); padding: 4px 0; }
  .brand { font-size: 15px; }
  .flower { font-size: 27px; }
  main { width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 24px 12px 20px; }
  .menu { display: contents; }
  .drink-type { order: 0; font-size: 10px; }
  h1 { order: 1; font-size: 53px; margin: 5px 0 0; }
  .invite { order: 2; margin: 3px 0 0; font-size: 18px; }
  .illustration { order: 3; width: min(100%, 390px, 49svh); }
  .directions { order: 4; margin: 0 0 13px; font-size: 13px; text-align: center; }
  .directions br { display: none; }
  .actions { order: 5; }
  .tiles { height: 13px; }
}
canvas { aspect-ratio: 480 / 505; }
body { position: relative; isolation: isolate; }
body::before, body::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
body::before {
  background: linear-gradient(128deg, transparent 40%, #fff9dc5c 54%, #b2a98015 57%, transparent 62%, #fffbe64d 69%, transparent 74%);
}
body::after { background: url('paper.png') repeat; opacity: .125; }
@media (min-width: 711px) {
  .illustration { max-width: min(570px, 77svh); }
}
.order-sheet { width: min(100%, 350px); margin: 24px 0 0; padding: 13px 0 6px; border-block: 1px dashed #92a393; }
.order-sheet h2 { margin: 0 0 5px; color: var(--red); font: 700 15px/1.4 'Songti TC', serif; letter-spacing: .12em; }
.order-sheet fieldset { position: relative; min-width: 0; margin: 0; padding: 0 0 0 47px; border: 0; }
.order-sheet legend { position: absolute; inset: 0 auto auto 0; padding: 0; font-size: 13px; line-height: 44px; }
.options { display: flex; gap: 4px; }
.options label { position: relative; flex: 1; display: grid; align-items: center; min-height: 44px; cursor: pointer; text-align: center; }
.options input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.options span { border: 1px solid transparent; border-radius: 3px; padding: 5px 0; color: #4d6358; font-size: 14px; }
.options input:checked + span { border-color: #a46549; color: #963f2c; font-weight: bold; background: #ad5a4010; }
.options input:focus-visible + span, footer a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
footer { text-align: center; }
footer a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; color: #436252; text-decoration-color: #a4ad93; text-underline-offset: 4px; font-size: 13px; }
@media(max-width: 710px) { .order-sheet { order: 6; width: min(100% - 14px, 350px); margin-top: 18px; } .directions br { display: initial; } }
