/* Camera Calendar, "Darkroom" look: near-black ground, warm off-white ink, serif headlines, amber accent. */
:root {
  --bg: #0E0F11;
  --surface: #16181B;
  --surface2: #1F2226;
  --line: #2D3137;
  --ink: #F3EFE7;
  --muted: #ABA69D;
  --accent: #F07A45;
  --accent-ink: #121212;
  --ok: #7FCB8E;
  --warn: #E9B44C;
  --bad: #F08A8A;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 16px;
  --rs: 999px;
  --rin: 12px;
  --rimg: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); min-height: 100vh; }
a { color: inherit; }
a:hover { opacity: .85; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; margin: 0 auto; }

.banner { background: var(--surface2); color: var(--muted); font-size: 13px; text-align: center; padding: 8px 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo span { font-family: var(--display); font-size: 25px; letter-spacing: -0.01em; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--rs); border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1.2; text-align: center; }
.btn:hover { border-color: var(--muted); opacity: 1; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.danger { border-color: #6b3434; color: var(--bad); }
.btn[disabled] { opacity: .55; cursor: default; }
.chip { min-height: 44px; padding: 10px 18px; border-radius: var(--rs); border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.linkish { background: none; border: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: 14px; min-height: 44px; }

.label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.tag { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: var(--rs); border: 1px solid var(--line); color: var(--muted); }
.tag.price { font-weight: 600; color: var(--ink); border-color: var(--ink); }
.tag.free { font-weight: 600; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tag.pending { color: var(--warn); border-color: #5a4a22; }
.tag.approved { color: var(--ok); border-color: #2f5137; }
.tag.rejected { color: var(--bad); border-color: #5c2d2d; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
.h1 { font-size: 68px; line-height: 1.02; }
.h2 { font-size: 40px; line-height: 1.1; }
.h3 { font-size: 28px; line-height: 1.15; }

.hero { padding-top: 56px; padding-bottom: 28px; }
.hero h1 { margin-top: 14px; max-width: 880px; }
.hero p { margin: 18px 0 0; max-width: 640px; color: var(--muted); font-size: 18px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.filters { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; min-width: 140px; }
.field.grow2 { flex: 2 1 280px; }
.field.small { flex: 0 1 130px; min-width: 110px; }
.group { display: flex; flex-direction: column; gap: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=time], input[type=search], input[type=number], select, textarea {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--rin); padding: 11px 14px; font: 400 16px/1.3 var(--body); min-height: 46px; width: 100%;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #7d786f; }
.panel input, .panel select, .panel textarea { background: var(--bg); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); }
.err { font-size: 13px; color: var(--bad); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }

.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 16px; }
.feed { display: flex; flex-direction: column; gap: 16px; }
.month-head { margin: 18px 0 2px; }
.card { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.card:hover { border-color: #4a4f57; opacity: 1; }
.card.featured { border-color: var(--accent); }
.datebox { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
.datebox .day { font-family: var(--display); font-size: 40px; line-height: 1.05; }
.card .thumb { flex: 0 1 220px; max-width: 220px; }
.card .thumb img { display: block; width: 100%; height: auto; border-radius: var(--rimg); background: var(--surface2); }
.card .body { flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.card .title { font-family: var(--display); font-size: 28px; line-height: 1.15; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r); }

.cal { padding: 16px; }
.cal-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; padding-bottom: 6px; }
.cal-cell { min-height: 108px; padding: 8px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.cal-cell.out { opacity: .35; }
.cal-cell.today { border-color: var(--accent); }
.cal-num { font-size: 13px; color: var(--muted); }
.cal-cell.today .cal-num { color: var(--accent); font-weight: 600; }
.cal-evs { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.cal-ev { display: block; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; background: var(--surface2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--accent); }
.cal-ev.c-Videography { border-left-color: #8FB6E8; }
.cal-ev.c-Modeling { border-left-color: #D9A0D0; }
.cal-more { font-size: 12px; color: var(--muted); background: none; border: none; padding: 2px 0; text-align: left; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.detail { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 28px; align-items: flex-start; }
.detail article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.detail aside { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.detail .photo img { display: block; max-width: 100%; height: auto; max-height: 80vh; border-radius: var(--rimg); background: var(--surface2); }
.desc { font-size: 18px; max-width: 680px; white-space: pre-line; margin: 0; }
.facts { display: flex; flex-direction: column; gap: 14px; }
.fact { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fact span:last-child { overflow-wrap: anywhere; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.notice { background: var(--surface2); border-radius: var(--r); padding: 14px 16px; font-size: 15px; }
.notice.warn { border: 1px solid #5a4a22; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.btnrow .btn { flex: 1 1 auto; }

.form { display: flex; flex-direction: column; gap: 28px; }
.form section { display: flex; flex-direction: column; gap: 16px; }
.form h2 { font-size: 30px; }
.photo-prev img { display: block; max-width: 320px; max-height: 320px; width: auto; height: auto; border-radius: var(--rimg); }

.signin { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.code-input { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-family: ui-monospace, Menlo, monospace !important; }

.list-rows { display: flex; flex-direction: column; gap: 12px; }
.lrow { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.lrow .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 300px; }
.admin-card { display: flex; flex-direction: column; gap: 12px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 20px; font-size: 14px; }
.admin-grid b { display: block; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

footer.site { border-top: 1px solid var(--line); margin-top: 64px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.page { padding-top: 40px; padding-bottom: 40px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .h1 { font-size: 42px; line-height: 1.05; }
  .h2 { font-size: 32px; }
  .card .title { font-size: 24px; }
  .hero { padding-top: 36px; }
  .card { padding: 16px; gap: 14px; }
  .card .thumb { flex-basis: 100%; max-width: 100%; order: -1; }
  .cal { padding: 8px; }
  .cal-cell { min-height: 58px; padding: 4px; }
  .cal-ev { font-size: 0; padding: 0; width: 9px; height: 9px; border-radius: 50%; border-left: none; background: var(--accent); display: inline-block; }
  .cal-ev.c-Videography { background: #8FB6E8; }
  .cal-ev.c-Modeling { background: #D9A0D0; }
  .cal-evs { flex-direction: row; flex-wrap: wrap; }
  .cal-more { display: none; }
  .signin { padding: 22px; }
  .detail { gap: 28px; }
}

.cal-cell { position: relative; }
.cal-daybtn { background: none; border: none; padding: 0 2px; color: var(--muted); font-size: 13px; min-height: 24px; }
.cal-cell.today .cal-daybtn { color: var(--accent); font-weight: 600; }
.cal-cell.sel { background: var(--surface2); border-color: var(--muted); }
.day-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 640px) {
  .cal-daybtn { position: absolute; inset: 0; width: 100%; text-align: left; vertical-align: top; display: flex; align-items: flex-start; padding: 4px; }
  .cal-ev { pointer-events: none; }
  .cal-evs { margin-top: 22px; }
}
