@font-face { font-family: Khmer; src: url("/reboot-assets/khmer.ttf") format("truetype"); font-display: swap; }
:root { color-scheme: light; --ink: #28221c; --mute: #62584d; --rule: #d6ccbd; --clay: #713d26; }
* { box-sizing: border-box; }
body { margin: 0 auto; padding: 0 clamp(20px, 5vw, 85px); max-width: 1580px; color: var(--ink); background: #f9f6ef; font: 16px/1.55 system-ui, sans-serif; }
html[lang="km"] body { font-family: Khmer, system-ui, sans-serif; line-height: 1.8; }
[lang="km"] .en, [lang="en"] .km, [hidden] { display: none; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid #97512c; outline-offset: 4px; }
.mast, footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mast { height: 76px; border-bottom: 1px solid var(--rule); }
.mast-actions { display: flex; align-items: center; gap: 12px; }
.mast a, footer a { text-decoration: none; }
.mast a:hover, footer a:hover { text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 10px; font: 650 22px/1.55 system-ui, sans-serif; letter-spacing: -.06em; }
.brand img { width: 29px; height: 31px; }
#beta-warning[open] ~ :is(header, main, footer) { display: none; }
#beta-warning {
  position: fixed;
  inset: 0;
  width: min(510px, calc(100% - 32px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(18px, 5vw, 32px);
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 18px 50px #50312124;
}
#beta-warning::backdrop { background: #f1e8db; }
.warning-mast { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#beta-warning-title { font-size: clamp(20px, 4vw, 25px); margin: 18px 0 0; }
#beta-warning .beta-notice { margin-top: 12px; }
#beta-warning form { margin-top: 18px; }
main { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); margin: clamp(28px,5.5vw,88px) 0; align-items: stretch; gap: clamp(32px,6vw,100px); }
.art { position: relative; overflow: hidden; align-self: start; min-height: 440px; aspect-ratio: 1.18; border-radius: 8px; background: #e8c8ab; }
.art::before { content: ""; position: absolute; inset: 0 -64% 0 0; background: url("instruments.jpg") left center / cover no-repeat; }
.invite { max-width: 500px; padding: 18px 0; }
.greeting { margin: 0 0 14px; color: var(--clay); font-size: 16px; font-weight: 600; }
h1 { margin: 0; font: 500 clamp(38px,4.8vw,78px)/1.05 Georgia, serif; letter-spacing: -.065em; }
.intro { margin: 18px 0 8px; color: var(--mute); }
.beta-version { margin: 0 0 12px; color: var(--mute); font: .75rem/1.4 system-ui, sans-serif; }
label, input, textarea, button { display: block; width: 100%; }
label { margin-bottom: 6px; font-size: 14px; font-weight: 650; }
input, textarea, button { border-radius: 5px; padding: 11px 15px; font: inherit; min-height: 47px; }
input, textarea { border: 1px solid #aa9d8b; background: #fffdf8; color: var(--ink); }
input[type="email"] { font-family: system-ui, sans-serif; }
textarea { resize: vertical; }
button { margin-top: 10px; cursor: pointer; background: #503121; color: white; border: 0; font-weight: 600; }
button:hover { background: #694332; }
button:disabled { opacity: .65; cursor: wait; }
.language-switch { width: auto; min-height: 44px; margin: 0; padding: 6px 12px; border: 1px solid var(--rule); background: transparent; color: var(--clay); font: 650 14px/1.5 system-ui, sans-serif; }
.language-switch:lang(km) { font-family: Khmer, system-ui, sans-serif; }
.language-switch:hover { background: #eee5d7; }
.invite-note { margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
.invitation-disclosure { color: var(--mute); }
.feedback button { margin-bottom: 15px; }
.privacy { color: var(--mute); font-size: 13px; margin: 15px 0 0; }
.privacy summary { cursor: pointer; }
.privacy p { margin: 8px 0; }
.direct { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; }
.beta-notice { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--clay); background: #eee5d7; border-radius: 0 6px 6px 0; }
.beta-notice p { margin: 0; }
.facebook { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0; min-height: 44px; color: var(--clay); font: 650 14px/1.55 system-ui, sans-serif; }
.feedback { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.feedback h2 { margin: 0 0 12px; font-size: 20px; }
.feedback label:not(:first-child) { margin-top: 12px; }
#status:empty, .form-status:empty { display: none; }
#status, .form-status { margin: 16px 0; padding-left: 12px; border-left: 3px solid var(--clay); }
footer { flex-wrap: wrap; border-top: 1px solid var(--rule); padding: 18px 0; color: var(--mute); font-size: 13px; }
footer .android-link { font-weight: 650; color: var(--clay); text-decoration: underline; }
@media (max-width: 600px) {
  footer .android-link { order: -1; width: 100%; padding: 8px 0; }
}

@media (max-width: 760px) {
  .mast { height: 58px; }
  main { grid-template-columns: 1fr; gap: 24px; margin: 18px auto 30px; max-width: 540px; }
  .art { min-height: 0; aspect-ratio: 1.75; }
  .invite { padding: 0; max-width: none; }
  .greeting { margin-bottom: 6px; }
  .intro { margin-top: 12px; }
}

