@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --canvas: #FAF6EE;
  --ink: #22314F;
  --thread: #C1442E;
  --mustard: #D9A441;
  --charcoal: #2A2723;
  --line: rgba(34, 49, 79, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em 0;
  color: var(--ink);
  line-height: 1.02;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { max-width: 62ch; }

a { color: var(--thread); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- registration marks: the crosshairs printers use to align ink colors --- */
.regmark {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0.55;
}
.regmark::before, .regmark::after {
  content: '';
  position: absolute;
  background: var(--ink);
}
.regmark::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.regmark::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.regmark-circle {
  position: absolute;
  width: 10px; height: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.55;
}

/* --- top bar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 2px solid var(--ink);
}
.brand {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--ink);
}
.brand small {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  color: var(--thread);
  letter-spacing: 0.04em;
}
.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 22px;
  font-weight: 600;
  font-size: 0.95rem;
}
.topbar nav a.cta {
  background: var(--thread);
  color: var(--canvas);
  padding: 9px 18px;
  border-radius: 2px;
}

/* --- hero: styled like a print order ticket --- */
.hero {
  position: relative;
  padding: 64px 0 56px;
}
.ticket {
  position: relative;
  border: 1.5px dashed var(--ink);
  padding: 44px 40px;
  margin-top: 24px;
}
.ticket-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--thread);
  margin-bottom: 14px;
}
.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  font-size: 0.98rem;
}
.btn-primary { background: var(--thread); border-color: var(--thread); color: var(--canvas); }
.btn-secondary { background: transparent; color: var(--ink); }

/* --- cut line divider --- */
.cutline {
  border: none;
  border-top: 1.5px dashed var(--line);
  margin: 56px 0;
}

/* --- services strip --- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.service {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}
.service:last-child { border-right: none; }
.service .num {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 0.85rem;
  color: var(--thread);
  font-weight: 700;
}

footer {
  background: var(--charcoal);
  color: var(--canvas);
  margin-top: 70px;
  padding: 36px 0;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
footer a { color: var(--mustard); }
footer small { color: rgba(250, 246, 238, 0.6); }

/* --- forms --- */
.form-card {
  max-width: 620px;
  margin: 40px auto;
  border: 1.5px solid var(--ink);
  padding: 36px;
  position: relative;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 18px 0 6px;
}
label:first-of-type { margin-top: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  background: var(--canvas);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 100px; }
input[type=file] { margin-top: 4px; }
.field-hint { font-size: 0.82rem; color: rgba(34,49,79,0.65); margin-top: 4px; }
.form-actions { margin-top: 26px; }
.alert {
  padding: 13px 16px;
  border-left: 4px solid var(--thread);
  background: rgba(193, 68, 46, 0.08);
  margin-bottom: 20px;
  font-size: 0.94rem;
}
.alert-success {
  border-left-color: #3E7D5A;
  background: rgba(62, 125, 90, 0.1);
}

/* --- login --- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
}
.login-card {
  background: var(--canvas);
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  border-top: 4px solid var(--thread);
}

/* --- dashboard --- */
.dash-header {
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 0;
}
.dash-header .wrap { display: flex; justify-content: space-between; align-items: center; }
.dash-header .brand-mini { font-family: 'Big Shoulders Display'; font-weight: 800; font-size: 1.3rem; color: var(--canvas); text-decoration: none; }
.dash-header form { display: inline; }
.dash-header button.linklike {
  background: none; border: none; color: rgba(250,246,238,0.75);
  font-family: 'Work Sans'; font-size: 0.9rem; cursor: pointer; text-decoration: underline;
}
.stat-strip {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 4px;
}
.stat {
  flex: 1;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.stat:last-child { border-right: none; }
.stat.active { background: var(--ink); color: var(--canvas); }
.stat .n { font-family: 'Big Shoulders Display'; font-size: 2rem; font-weight: 800; display: block; }
.stat .l { font-size: 0.82rem; font-weight: 600; }

table.requests {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}
table.requests th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--ink);
  color: var(--ink);
}
table.requests td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--ink);
}
.badge-new { background: var(--mustard); border-color: var(--mustard); color: var(--charcoal); }
.badge-in_progress { background: transparent; }
.badge-completed { background: var(--ink); color: var(--canvas); }
select.status-select {
  font-size: 0.85rem;
  padding: 5px 8px;
  width: auto;
}
.desc-cell { max-width: 280px; }
.links a { display: block; font-size: 0.85rem; margin-bottom: 3px; }
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: rgba(34,49,79,0.6);
}

@media (max-width: 720px) {
  /* --- general spacing tightened for small screens --- */
  .wrap { padding: 0 16px; }
  body { font-size: 15px; }

  /* --- top bar: stack brand and nav instead of cramming side by side --- */
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
  }
  .topbar nav {
    display: flex;
    width: 100%;
    gap: 8px;
  }
  .topbar nav a {
    margin-left: 0;
    font-size: 0.85rem;
  }
  .topbar nav a.cta { margin-left: auto; }

  /* --- hero ticket: less padding, tighter to the edges --- */
  .hero { padding: 32px 0 36px; }
  .ticket { padding: 26px 20px; }
  .hero-actions .btn { flex: 1; text-align: center; }

  /* --- services grid --- */
  .services { grid-template-columns: 1fr; }
  .service { border-right: none; border-bottom: 1px solid var(--line); }

  /* --- forms: less side padding so inputs get more room --- */
  .form-card { padding: 26px 20px; margin: 24px auto; }
  .login-card { padding: 32px 24px; }

  /* --- dashboard header: stop the greeting/logout from crowding the brand --- */
  .dash-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* --- stat strip: 2x2 grid instead of a cramped 4-across row --- */
  .stat-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }

  /* --- dashboard table becomes stacked cards, not a side-scroller --- */
  table.requests, table.requests thead, table.requests tbody,
  table.requests th, table.requests td, table.requests tr {
    display: block;
    white-space: normal;
  }
  table.requests thead {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  table.requests tr {
    border: 1.5px solid var(--ink);
    padding: 14px;
    margin-bottom: 16px;
  }
  table.requests td {
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  table.requests td:last-child { border-bottom: none; padding-bottom: 0; }
  table.requests td:before {
    content: attr(data-label);
    display: block;
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--thread);
    margin-bottom: 3px;
  }
  .desc-cell { max-width: none; }
}

