/* Intentional Design — black & ivory, EB Garamond headings. No external requests. */
@font-face {
  font-family: 'EB Garamond';
  src: url('/public/fonts/EBGaramond.ttf') format('truetype');
  font-weight: 400 700;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/public/fonts/EBGaramond-Italic.ttf') format('truetype');
  font-style: italic;
}

:root {
  --ivory: #f7f2e7;
  --surface: #fffdf5;
  --ink: #111110;
  --ink-dim: #5c584e;
  --line: #ddd5c2;
  --accent: #343c26;
  --danger: #8c2f1b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Century Gothic', 'Jost', 'Futura', 'Trebuchet MS', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3, .brand {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}
h1 { font-size: 1.7rem; margin: 0.6em 0 0.4em; text-transform: uppercase; }
h2 { font-size: 1.25rem; margin: 0.4em 0 0.5em; text-transform: uppercase; }
h3 { font-size: 1.1rem; margin: 0.2em 0; }
a { color: var(--accent); }

.masthead {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: 18px 12px 14px;
}
.brand { font-size: 1.9rem; letter-spacing: 0.28em; }
.brandsub { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; margin-top: 2px; }

.topnav {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 8px 16px;
}
.topnav a {
  color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 3px;
  text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em;
}
.topnav a:hover { background: var(--ivory); }
.topnav a.on { background: var(--ink); color: var(--ivory); }
.topnav .spacer { flex: 1; }
.topnav .who { color: var(--ink-dim); font-size: 0.85rem; margin-right: 8px; }

main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.foot { text-align: center; color: var(--ink-dim); font-size: 0.8rem; padding: 18px; border-top: 1px solid var(--line); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 14px 0;
}
.card.narrow { max-width: 480px; margin: 24px auto; }

label { display: block; margin: 8px 0; font-size: 0.9rem; }
label input, label select, label textarea { margin-top: 3px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="date"], input[type="number"], select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px;
  background: #fff; color: var(--ink); font: inherit; font-size: 0.95rem;
}
input[type="file"] { font-size: 0.85rem; }
label.check { display: flex; gap: 6px; align-items: center; font-size: 0.85rem; }
label.check input { width: auto; }

.btn {
  display: inline-block; background: var(--ink); color: var(--ivory); border: 1px solid var(--ink);
  padding: 8px 18px; border-radius: 3px; font: inherit; font-size: 0.9rem; cursor: pointer;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ivory); }
.linkbtn {
  background: none; border: none; color: var(--accent); cursor: pointer; font: inherit;
  font-size: 0.88rem; padding: 2px 4px; text-decoration: underline;
}
.linkbtn.danger { color: var(--danger); }
form.inline { display: inline; }

.tbl { width: 100%; border-collapse: collapse; margin: 8px 0 16px; background: var(--surface); }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.tbl th { font-family: 'EB Garamond', Georgia, serif; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; }
.tbl .num, .num { text-align: right; white-space: nowrap; }
.tbl tfoot td { font-weight: bold; border-top: 2px solid var(--ink); }

.dim { color: var(--ink-dim); font-size: 0.88em; }
.hint { color: var(--ink-dim); font-size: 0.82rem; }
.error { color: var(--danger); font-weight: bold; }
.flash { background: #eef0e4; border: 1px solid var(--accent); padding: 10px 14px; border-radius: 4px; margin: 12px 0; }
.hidden { display: none; }
.tag { background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tag.good { background: var(--accent); color: var(--ivory); border-color: var(--accent); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.weekbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.weekbar h1 { margin: 0; }
.dayhead { margin: 18px 0 4px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.rowbtns { white-space: nowrap; }
.rowbtns .linkbtn, .rowbtns a.linkbtn { margin-right: 2px; }

fieldset.pricing { border: 1px solid var(--line); border-radius: 4px; margin: 10px 0; }
fieldset.pricing legend { font-family: 'EB Garamond', Georgia, serif; text-transform: uppercase; letter-spacing: 0.05em; padding: 0 6px; }
.price-readout { margin: 8px 0 2px; font-size: 0.95rem; }

.itemhead { display: flex; gap: 16px; }
.photo { width: 150px; height: 150px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; flex-shrink: 0; }
.photo.placeholder { display: flex; align-items: center; justify-content: center; color: var(--ink-dim); background: var(--ivory); font-size: 0.8rem; }
.thumb { width: 54px; height: 54px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; vertical-align: middle; }
.itemmain { flex: 1; min-width: 0; }
.price-line { margin: 6px 0; }
.statusrow { margin: 8px 0; }
.statusrow label { display: inline-block; margin: 0 10px 0 0; }
.statusrow select { width: auto; display: inline-block; margin-left: 4px; }
.options { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 10px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 8px; border-radius: 3px; }
.option.chosen { background: #eef0e4; }
.option .optmain { flex: 1; }
.optadd { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.optadd input { width: auto; flex: 1; min-width: 130px; }

/* Style quiz readout */
.quizthumb { width: 132px; height: 132px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; flex-shrink: 0; }
.quizthumb.sm { width: 44px; height: 44px; vertical-align: middle; }
.qentry { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.qentry:last-child { border-bottom: none; }
.qmain { flex: 1; min-width: 0; }
.qsub { margin: 18px 0 4px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.qdiv { margin-top: 26px; }
.personbit { margin: 2px 0 8px; }
.personbit .who { font-family: 'EB Garamond', Georgia, serif; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; }
.personbit blockquote, .qmain blockquote, .qcompact blockquote {
  margin: 4px 0 4px 2px; padding: 2px 0 2px 10px; border-left: 3px solid var(--line);
  font-style: italic; color: var(--ink-dim);
}
.chips { margin: 3px 0; }
.chip { display: inline-block; background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font-size: 0.78rem; margin: 1px 2px 1px 0; }
.studioline { color: var(--ink-dim); font-size: 0.8rem; margin-top: 4px; }
.qcompact { list-style: none; padding: 0; margin: 6px 0; }
.qcompact li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.qcompact li:last-child { border-bottom: none; }

/* Time clock */
.clock.running { border-color: var(--accent); }
.clocktarget { font-family: 'EB Garamond', Georgia, serif; font-size: 1.15rem; margin: 2px 0; }
.clockelapsed { font-family: 'EB Garamond', Georgia, serif; font-size: 2rem; letter-spacing: 0.06em; margin: 2px 0; }

.roomhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.roomhead h2 { margin: 0; }
.roomhead input[type="text"] { width: auto; }
.clienttotal { font-size: 1.15rem; font-family: 'EB Garamond', Georgia, serif; }
.paircode { font-size: 1.2rem; letter-spacing: 0.06em; }
.picklist { font-size: 1.1rem; line-height: 1.9; }
