/* Sunset-beach theme. Tweak colors here — the palette lives in :root. */
:root {
  --sand:   #fdf6ec;
  --card:   #ffffff;
  --ink:    #27303a;
  --muted:  #6b7684;
  --ocean:  #0e7490;
  --ocean2: #155e75;
  --sunset: #f97316;
  --coral:  #ef4444;
  --ok-bg:  #ecfdf5;
  --ok-ink: #047857;
  --err-bg: #fef2f2;
  --err-ink:#b91c1c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.6;
}

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(253, 246, 236, 0.95);
  border-bottom: 1px solid #eadfce;
  backdrop-filter: blur(6px);
}
.topbar-inner {
  max-width: 860px; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.4rem;
}
.brand { font-weight: 700; color: var(--ocean2); }
.navlinks { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.navlinks a { color: var(--ocean2); text-decoration: none; font-weight: 500; }
.navlinks a:hover { text-decoration: underline; }
.nav-rsvp { color: var(--sunset) !important; font-weight: 700 !important; }
.langswitch { color: var(--muted); }
.langswitch .sep { margin: 0 0.35rem; }
.langswitch a.active { font-weight: 700; text-decoration: underline; }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 45%, var(--sand) 100%);
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 1rem 0 0.4rem; color: var(--ocean2); }
.tagline { font-size: 1.1rem; color: var(--muted); max-width: 40rem; margin: 0 auto; }
.datetime { font-size: 1.15rem; margin: 1rem 0 1.4rem; }
.flyer {
  max-width: min(420px, 90%); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

/* ---- layout / cards ---- */
main { max-width: 860px; margin: 0 auto; padding: 0 1rem 3rem; }
.card {
  background: var(--card);
  border: 1px solid #eee4d4;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(39, 48, 58, 0.05);
}
.card h1, .card h2 { margin-top: 0; color: var(--ocean2); }
.muted { color: var(--muted); font-size: 0.92rem; }

/* ---- map ---- */
.mapwrap { position: relative; padding-top: 60%; border-radius: 10px; overflow: hidden; margin: 0.8rem 0; }
.mapwrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- tables ---- */
.pricetable { width: 100%; border-collapse: collapse; margin: 0.8rem 0; }
.pricetable th, .pricetable td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid #f0e8da; }
.pricetable th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pricetable td:last-child, .pricetable th:last-child { text-align: right; white-space: nowrap; }

/* ---- forms ---- */
form label { display: block; margin: 0.9rem 0; font-weight: 600; }
form input[type="text"], form input[type="email"], form input[type="number"],
form input[type="password"], form textarea {
  display: block; width: 100%; margin-top: 0.3rem;
  padding: 0.6rem 0.7rem; font: inherit; font-weight: 400;
  border: 1px solid #d8cfc0; border-radius: 8px; background: #fffdf9;
}
form input:focus, form textarea:focus { outline: 2px solid var(--ocean); border-color: var(--ocean); }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--sunset); color: #fff;
  font: inherit; font-weight: 700;
  padding: 0.7rem 1.6rem; border-radius: 999px;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.07); }

.btn-ghost {
  background: transparent;
  color: var(--ocean2);
  border: 2px solid var(--ocean2);
  padding: calc(0.7rem - 2px) 1.6rem;
}
.hero-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* ---- lineup ---- */
.lineuptable td:last-child { text-align: left; white-space: normal; }
.slot-time { font-weight: 700; color: var(--ocean2); white-space: nowrap; width: 5.5rem; }

/* honeypot field: visually removed, still in the DOM for bots */
.hp { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }

/* ---- flash messages ---- */
.flash-ok  { background: var(--ok-bg);  color: var(--ok-ink);  padding: 0.9rem 1.1rem; border-radius: 10px; font-weight: 600; }
.flash-err { background: var(--err-bg); color: var(--err-ink); padding: 0.9rem 1.1rem; border-radius: 10px; margin: 0.8rem 0; }
ul.flash-err { list-style-position: inside; }

/* ---- footer ---- */
footer { text-align: center; padding: 1.5rem 0 2.5rem; }

/* ---- admin ---- */
.loginbox { max-width: 420px; margin: 12vh auto 0; }
.inline { display: inline; margin: 0; }
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--ocean2); text-decoration: underline;
}
.linkbtn.danger { color: var(--coral); }
.tablewrap { overflow-x: auto; }
.datatable { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.datatable th, .datatable td { text-align: left; padding: 0.45rem 0.55rem; border-bottom: 1px solid #f0e8da; vertical-align: top; }
.datatable th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }

/* ---- invite codes ---- */
.code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f0e8da; color: var(--ocean2);
  padding: 0.1rem 0.5rem; border-radius: 6px;
  font-weight: 700; letter-spacing: 0.05em; white-space: nowrap;
}
.checkline { font-weight: 500; }
.checkline input[type="checkbox"] { margin-right: 0.4rem; }
tr.revoked td { opacity: 0.45; }
tr.revoked .code-pill { text-decoration: line-through; }
.sharelink { color: var(--ocean2); white-space: nowrap; }

/* ---- small screens ---- */
@media (max-width: 480px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .navlinks { justify-content: center; row-gap: 0.15rem; }
  .hero { padding: 2rem 0.9rem 2rem; }
  main { padding: 0 0.7rem 2.5rem; }
  .card { padding: 1.2rem 1.05rem; }
  .slot-time { width: 3.8rem; }
}
