/* Cut Through style: cream page, Instrument Sans, flat colour, no gradients or shadows. */
:root {
  --cream: #F5F0E8;
  --cream-line: #EAE5D7;
  --white: #FFFFFF;
  --ink: #000000;
  --muted: #404040;
  --green: #145E32;
  --rose: #CF5C78;
  --blue: #386192;
  --amber: #FFBA52;
  --red: #DD4124;
  --lilac: #CCB5D6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Instrument Sans", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.top, main, .foot { max-width: 640px; margin: 0 auto; padding: 0 20px; }

.top { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 12px; }
.brand { font-weight: 600; color: var(--green); }

main { padding-top: 16px; padding-bottom: 48px; min-height: 60vh; }

.foot { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--cream-line); font-size: 13px; color: var(--muted); }

h1 { font-size: 32px; line-height: 1.15; font-weight: 600; color: var(--green); margin: 8px 0 16px; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 600; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--rose); margin: 0 0 4px; }

/* Forms */
label { display: block; font-weight: 600; margin: 20px 0 6px; }
.hint { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }

input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px;
  appearance: none;
}
textarea { min-height: 220px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.code-input { font-size: 28px; letter-spacing: 6px; text-align: center; font-weight: 600; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; font-weight: 400; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--green); }

button { font: inherit; cursor: pointer; border-radius: 0; }
.btn {
  display: inline-block; width: 100%;
  background: var(--green); color: var(--white);
  border: 1px solid var(--green);
  font-weight: 600; padding: 14px 20px; margin: 24px 0 16px;
  text-align: center; text-decoration: none;
}
.btn[disabled] { background: var(--cream-line); border-color: var(--cream-line); color: var(--muted); cursor: default; }
.btn.secondary { background: transparent; color: var(--green); }
.btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
.link { background: none; border: 0; padding: 0; color: var(--green); font-weight: 600; text-decoration: underline; }
a { color: var(--green); font-weight: 600; }

.error { border-left: 4px solid var(--red); background: var(--white); padding: 12px 16px; margin: 16px 0; }
.notice { border-left: 4px solid var(--blue); background: var(--white); padding: 12px 16px; margin: 16px 0; }
.success { border-left: 4px solid var(--green); background: var(--white); padding: 12px 16px; margin: 16px 0; }

/* Theme cards */
.themes { list-style: none; margin: 16px 0 0; padding: 0; }
.theme {
  display: block; width: 100%; text-align: left;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--ink); padding: 16px; margin: 0 0 12px;
}
.theme:hover:not([disabled]) { border-color: var(--green); outline: 1px solid var(--green); }
.theme-name { display: block; font-weight: 600; font-size: 18px; }
.theme-prompt { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.theme-left { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--green); }
.theme-left.low { color: var(--rose); }
.theme[disabled] { background: transparent; border-color: var(--cream-line); cursor: default; }
.theme[disabled] .theme-name, .theme[disabled] .theme-prompt, .theme[disabled] .theme-left { color: #8A8A8A; }

/* Held theme panel */
.held { background: var(--white); border-left: 4px solid var(--rose); padding: 16px; margin: 16px 0 8px; }
.held .theme-name { font-size: 20px; }
.timer { font-weight: 600; font-variant-numeric: tabular-nums; }
.timer.low { color: var(--red); }

/* Word counter */
.counter { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-top: 6px; }
.counter .count { font-weight: 600; font-variant-numeric: tabular-nums; }
.counter .count.warn { color: #8A5A00; }
.counter .count.over { color: var(--red); }

/* Headshot */
.headshot-row { display: flex; align-items: center; gap: 16px; }
.headshot-thumb { width: 72px; height: 72px; background: var(--cream-line); border: 1px solid var(--ink); object-fit: cover; flex: none; }
.cropper { background: var(--white); border: 1px solid var(--ink); padding: 16px; margin-top: 12px; }
.cropper canvas { display: block; width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0 auto; touch-action: none; cursor: grab; background: var(--cream-line); }
.cropper input[type="range"] { width: 100%; margin-top: 16px; accent-color: var(--green); }
.file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-label { display: inline-block; margin: 0; padding: 10px 16px; border: 1px solid var(--green); color: var(--green); font-weight: 600; cursor: pointer; }
.file:focus-visible + .file-label { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Submitted quote */
blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--rose); }
blockquote p:last-child { margin-bottom: 0; }
.byline { font-weight: 600; margin: 0; }
.status { display: inline-block; font-size: 14px; font-weight: 600; padding: 2px 10px; background: var(--lilac); margin-bottom: 8px; }
.status.approved { background: var(--green); color: var(--white); }

.consent-text { font-size: 15px; }
.turnstile { margin-top: 16px; min-height: 0; }

@media (min-width: 560px) {
  h1 { font-size: 40px; }
  .btn { width: auto; min-width: 240px; }
}
