:root {
  --bg: #100c0c;
  --card: #1b1515;
  --ink: #f7f2ea;
  --muted: #c9bdb0;
  --gold: #f5c400;
  --gold-deep: #a67c00;
  --red: #d0121a;
  --red-deep: #7d1016;
  --line: rgba(245, 196, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, #5a1418 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
}

.page {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.kicker {
  margin: 0 0 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

.facts {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.portrait {
  margin: 28px auto 0;
  width: min(100%, 440px);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 8px #2a1214,
    0 24px 50px rgba(0, 0, 0, 0.45);
}

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(100%, 440px);
  margin: 12px auto 0;
}

.shots img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.calendar,
.panel {
  margin-top: 28px;
  padding: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
}

.cal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.cal-head h2,
.panel h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cal-head p,
.panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.month-nav p {
  margin: 0;
  min-width: 7.5rem;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
}

.month-nav button,
#submit-btn,
.day {
  font: inherit;
}

.month-nav button,
#submit-btn {
  border: 0;
  cursor: pointer;
}

.month-nav button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #2a2121;
  color: var(--ink);
}

.month-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.weekdays,
.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weekdays {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.grid {
  margin-top: 6px;
}

.day,
.pad {
  min-height: 68px;
  border-radius: 12px;
  padding: 6px 4px;
}

.pad {
  background: transparent;
}

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  border: 1px solid transparent;
  background: #120e0e;
  color: var(--ink);
  text-align: center;
}

.day .num {
  font-weight: 700;
  font-size: 0.95rem;
}

.day .tag {
  font-size: 0.62rem;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day.is-open {
  border-color: var(--gold);
  cursor: pointer;
}

.day.is-open:hover,
.day.is-selected {
  background: #3a2c0a;
}

.day.is-booked {
  background: var(--red-deep);
  border-color: var(--red);
  cursor: pointer;
}

.day:disabled {
  opacity: 1;
}

.day.is-sunday,
.day:disabled.is-sunday {
  color: var(--gold);
}

.day.is-sunday .tag {
  font-size: 0.58rem;
}

.day.is-muted {
  color: #6d625c;
}

.day:focus-visible,
.month-nav button:focus-visible,
#submit-btn:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.cal-status {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.8rem;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.swatch.open {
  border: 1px solid var(--gold);
}

.swatch.booked {
  background: var(--red-deep);
}

.swatch.sunday {
  background: var(--gold);
}

.panel label {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.panel label[hidden] {
  display: none;
}

input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #3a3030;
  background: #100c0c;
  color: var(--ink);
  font: inherit;
}

#submit-btn {
  margin-top: 16px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1200;
  font-weight: 700;
}

#submit-btn.is-release {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.panel-msg {
  min-height: 1.2em;
}

.panel-msg.is-ok {
  color: var(--gold);
}

.panel-msg.is-bad {
  color: #ffb4b4;
}

@media (max-width: 560px) {
  .cal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .month-nav {
    justify-content: space-between;
  }

  .day,
  .pad {
    min-height: 58px;
  }

  .day .tag {
    font-size: 0.55rem;
  }
}
