/* Ars Nova Images — scheduler styles.
   Tokens pulled from arsnovaimages.com (Squarespace):
   navy accent, warm stone gray, Inter Tight body.
   Headings: site uses "Europa" (Adobe Fonts). Jost is the Google Fonts stand-in;
   to use real Europa, add schedule.arsnovaimages.com to the Adobe Fonts web
   project and swap the font-family below. */

:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #55534e;
  --accent: hsl(218.18, 37.29%, 23.14%);
  --accent-deep: hsl(218.18, 37.29%, 16%);
  --accent-tint: hsl(218.18, 37.29%, 96%);
  --stone: hsl(60, 7.46%, 86.86%);
  --stone-light: hsl(60, 7.46%, 94%);
  --danger: #8a2f2b;
  --ok: #2e5d3a;
  --heading: "Jost", "Europa", "Futura", sans-serif;
  --body: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
.wrap.wide { max-width: 860px; }

/* ---- header / brand ---- */
.masthead {
  text-align: center;
  padding: 40px 0 8px;
}
.brand {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.masthead .rule {
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin: 18px auto 0;
}

h1 {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 28px 0 6px;
}
h2 {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 21px;
  margin: 34px 0 10px;
}
.sub { color: var(--ink-soft); margin: 0 0 6px; }
.meta {
  font-family: var(--heading);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- labelled detail blocks (When / Where / Notes) ---- */
.details {
  margin: 26px 0 4px;
  padding: 0;
  border-top: 1px solid var(--stone);
}
.detail {
  padding: 16px 0;
  border-bottom: 1px solid var(--stone);
}
.detail-label {
  font-family: var(--heading);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 5px;
}
.detail-value {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
/* The photographer types notes in a textarea — keep their line breaks and
   blank lines exactly as written. */
.detail-value.notes { white-space: pre-wrap; }

@media (max-width: 480px) {
  .detail { padding: 14px 0; }
}

/* ---- buttons ---- */
button, .btn {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
button:hover, .btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
button:disabled { opacity: 0.45; cursor: default; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
}
.btn-ghost:hover { background: var(--accent-tint); color: var(--accent); }
.btn-danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-small { padding: 7px 14px; font-size: 12.5px; }
.btn-block { display: block; width: 100%; }

/* ---- forms ---- */
label {
  display: block;
  font-family: var(--heading);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 18px 0 6px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--stone);
  padding: 12px 14px;
  border-radius: 0;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field-row { display: flex; gap: 14px; }
.field-row > div { flex: 1; }

/* ---- slot grid ---- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.slot {
  font-family: var(--heading);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0;
  min-height: 50px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.slot:hover { background: var(--accent-tint); }
.slot.selected, .slot.selected:hover { background: var(--accent); color: #fff; }
.slot.unavailable, .slot.unavailable:hover {
  background: var(--stone-light);
  border-color: var(--stone-light);
  color: var(--ink-soft);
  text-decoration: line-through;
  cursor: default;
}

/* ---- cards / panels ---- */
.card {
  border: 1.5px solid var(--stone);
  padding: 22px 24px;
  margin: 20px 0;
}
.card.accent { border-color: var(--accent); background: var(--accent-tint); }
.notice {
  border-left: 3px solid var(--accent);
  background: var(--stone-light);
  padding: 14px 18px;
  margin: 18px 0;
}
.notice.error { border-left-color: var(--danger); }
.notice .meta { color: var(--danger); margin: 0 0 4px; }
.notice .sub:last-child { margin-bottom: 0; }

/* ---- confirmation ---- */
.confirm-mark {
  width: 58px; height: 58px;
  border: 2px solid var(--ok);
  border-radius: 50%;
  color: var(--ok);
  font-size: 30px;
  line-height: 56px;
  text-align: center;
  margin: 30px auto 10px;
}
.center { text-align: center; }
.big-time {
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 500;
  margin: 4px 0;
}

/* ---- link boxes (copyable) ---- */
.linkbox {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 8px 0 4px;
}
.linkbox input {
  flex: 1;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--stone-light);
  border-color: var(--stone);
}

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th {
  font-family: var(--heading);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--ink);
}
td { padding: 11px 12px; border-bottom: 1px solid var(--stone); }
tr.dim td { color: var(--ink-soft); background: var(--stone-light); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--accent-tint); }
td.time-cell { font-family: var(--heading); white-space: nowrap; }

/* ---- toast ---- */
#toast {
  position: fixed;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  font-size: 15px;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 10;
}
#toast.show { opacity: 1; }
#toast.error { background: var(--danger); }

/* ---- footer ---- */
footer {
  margin-top: 70px;
  padding-top: 22px;
  border-top: 1px solid var(--stone);
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}
footer a { color: var(--accent); text-decoration: none; }

.hidden { display: none !important; }
.print-only { display: none; }
.stack > * + * { margin-top: 12px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  .field-row { flex-direction: column; gap: 0; }
  .actions { flex-direction: column; }
  .actions .btn, .actions button { width: 100%; text-align: center; }
  th, td { padding: 9px 8px; font-size: 14.5px; }
}

/* ---- printed call sheet ----
   The roster page doubles as the shoot-day checklist. Everything interactive
   drops away, leaving a tickable list of who's coming and when. */
@media print {
  @page { margin: 0.5in; }

  body { font-size: 11pt; background: #fff; color: #000; }
  .wrap, .wrap.wide { max-width: none; padding: 0; }

  /* Buttons, the share box (it holds a private URL — must never print),
     the site footer and any toast all disappear. */
  .actions, .card, .linkbox, footer, #toast, .screen-only, button {
    display: none !important;
  }
  .print-only { display: table-cell; }

  .masthead { padding: 0 0 4px; text-align: left; }
  .masthead .rule { display: none; }
  .brand { font-size: 10pt; letter-spacing: 0.28em; color: #000; }

  h1 { font-size: 19pt; margin: 10px 0 2px; }
  .meta { font-size: 9.5pt; color: #000; }
  .sub { color: #000; margin: 0; font-size: 11pt; }
  .big-time { font-size: 12pt; font-weight: 600; margin: 10px 0 0; }

  table { margin-top: 14px; }
  /* Repeat the header on every page and never split a person across pages. */
  thead { display: table-header-group; }
  tr { break-inside: avoid; page-break-inside: avoid; }
  th {
    font-size: 8.5pt;
    color: #000;
    border-bottom: 1.5px solid #000;
    padding: 5px 8px;
  }
  td {
    padding: 9px 8px;
    border-bottom: 1px solid #bbb;
    font-size: 11pt;
  }
  /* Open and blocked rows stay visible so gaps in the day are obvious,
     but without ink-heavy fills. */
  tr.dim td { background: none; color: #777; font-style: italic; }

  /* Fixed widths so Notes keeps enough room to actually write in, instead of
     being squeezed by long email addresses. */
  table { table-layout: fixed; width: 100%; }
  .tick-col { width: 24px; }
  th:nth-child(2), td:nth-child(2) { width: 74px; }   /* time */
  th:nth-child(3), td:nth-child(3) { width: 26%; }    /* name */
  th:nth-child(4), td:nth-child(4) { width: 30%; }    /* email */
  td:nth-child(4) { font-size: 9pt; word-break: break-all; }

  .tickbox {
    display: inline-block;
    width: 13px; height: 13px;
    border: 1.2px solid #000;
  }
}
