/* PrintPunk corporate identity, taken from the computed styles on printpunk.com.
   Fonts are self-hosted (as on the main site) rather than hotlinked from Google. */

@font-face {
  font-family: "Sen";
  src: url("/fonts/sen-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* brand palette */
  --magenta: #e32b98;
  --cyan: #2aa9d8;
  --navy: #0a0b24;
  --yellow: #f6df37;
  --blue: #175ce3;

  /* neutrals — the site uses the Tailwind grey ramp */
  --white: #fff;
  --grey-50: #f9fafb;
  --grey-100: #f3f4f6;
  --grey-200: #e5e7eb;
  --grey-300: #d1d5db;
  --grey-450: #787e8b;
  --grey-500: #6b7280;
  --grey-700: #374151;
  --page: #f7f9fd;
  --text: #1a1a1b;
  --heading: #000;

  /* status colours, matching the shop's notice styles */
  --err-bg: #fef2f2;
  --err-fg: #b91c1c;
  --ok-bg: #d1fae5;
  --ok-fg: #047857;
  --info-bg: #e0f2fe;
  --info-fg: #0369a1;

  --radius-input: 3px;
  --radius-card: 4px;
  --shadow: rgb(0 0 0 / 0.05) 0 1px 3px, rgb(0 0 0 / 0.05) 0 1px 2px;
  --transition: 300ms;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: "Sen", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

body.center {
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

h1,
h2,
h3,
strong {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  color: var(--heading);
}
h1 {
  margin: 0 0 1.25rem;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
h1.tight,
h2.tight {
  margin-top: 0;
}

/* --- top bar: navy, as on the shop's dark sections, with the white logo --- */

header.bar {
  background: var(--navy);
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
header.bar img.logo {
  display: block;
  height: 34px;
  width: auto;
}
header.bar .who {
  color: rgb(255 255 255 / 0.72);
  font-size: 0.9rem;
}
header.bar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgb(255 255 255 / 0.35);
  transition: border-color var(--transition);
}
header.bar a:hover {
  border-color: var(--magenta);
}
header.bar .right {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}
.card.narrow {
  max-width: 24rem;
}
.card.narrow .brandmark {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto 1.5rem;
}

/* --- forms: 3px radius, grey-300 border, 12/16 padding --- */

label {
  display: block;
  margin: 1rem 0 0.5rem;
  color: var(--grey-700);
  font-weight: 500;
  font-size: 0.9rem;
}
input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 15px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-input);
  transition: border-color var(--transition);
}
input::placeholder,
textarea::placeholder {
  color: var(--grey-450);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgb(42 169 216 / 0.18);
}
textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.6;
}
select {
  padding: 8px 12px;
  cursor: pointer;
}

/* --- buttons: magenta pill CTA, cyan secondary, as on the shop --- */

button {
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: var(--magenta);
  color: var(--white);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    filter var(--transition),
    background-color var(--transition);
}
button:hover {
  filter: brightness(1.08);
}
button.secondary {
  background: var(--cyan);
}
button.ghost {
  background: transparent;
  color: var(--grey-700);
  border-color: var(--grey-300);
}
button.ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  filter: none;
}
button.danger {
  background: transparent;
  color: var(--err-fg);
  border-color: var(--grey-300);
}
button.danger:hover {
  background: var(--err-bg);
  border-color: var(--err-fg);
  filter: none;
}
button.small {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
}
.row > * {
  flex: 1 1 9rem;
}
.row > button {
  flex: 0 0 auto;
}

.muted {
  color: var(--grey-500);
  font-size: 0.92rem;
}
.pill {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 9999px;
  background: var(--grey-100);
  color: var(--grey-700);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill.admin {
  background: var(--magenta);
  color: var(--white);
}
.pill.lead {
  background: var(--cyan);
  color: var(--white);
}

/* --- notices: 4px radius, shop's error/success/info colours --- */

.msg {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  display: none;
  line-height: 1.6;
}
.msg.show {
  display: block;
}
.msg.err {
  background: var(--err-bg);
  color: var(--err-fg);
  border-color: rgb(185 28 28 / 0.25);
}
.msg.ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
  border-color: rgb(4 120 87 / 0.25);
}
.msg code {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-input);
  background: var(--white);
  border: 1px solid currentColor;
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.msg p {
  margin: 0.5rem 0 0;
}

.scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
th,
td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: middle;
  white-space: nowrap;
}
thead th {
  background: var(--grey-100);
  color: var(--grey-700);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
tbody tr:hover td {
  background: var(--grey-50);
}
td.wrap-cell {
  white-space: normal;
  min-width: 16rem;
  line-height: 1.5;
}
tr.off td {
  opacity: 0.5;
}
td select {
  min-width: 8rem;
}

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

footer.edge {
  margin-top: 2rem;
  color: var(--grey-500);
  font-size: 0.82rem;
  text-align: center;
}
footer.edge code {
  color: var(--grey-700);
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
}
