/* Elevate Stringing. Rules and reasons: docs/design.md */

:root {
  --ink: #1A1925;
  --slate: #5C5966;
  --paper: #FDFDFC;
  --cream: #F3EFE9;
  --line: #E6E3DC;
  --teal: #028090;
  --mint: #B8E8C9;
  --peri: #B3BEE8;
  --pink: #E8B3D1;
  --danger: #C0392B;
  --gradient: linear-gradient(90deg, var(--mint), var(--teal), var(--peri), var(--pink));
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26, 25, 37, .05), 0 8px 24px rgba(26, 25, 37, .07);
  --font: 'Poppins', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Phone first: one narrow column. The admin page widens it for the laptop. */
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.admin .wrap { max-width: 1280px; padding: 0 24px; }

/* Header: Dad's logo exactly as supplied, centred on ink. Its own gradient rule is the
   one gradient on the screen. Version (and "Admin") sit as small tags in the corner. */
header.app {
  background: var(--ink);
  color: var(--cream);
  padding: calc(10px + env(safe-area-inset-top)) 0 14px;
}
.brand { position: relative; }
.brand h1 { margin: 0; line-height: 0; text-align: center; }
.brand .logo { display: inline-block; width: 280px; max-width: 100%; height: auto; }
.tags { display: flex; justify-content: flex-end; gap: 6px; min-height: 18px; }
.vertag {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  background: rgba(243, 239, 233, .14); color: var(--cream);
  font-size: .68rem; font-weight: 700; letter-spacing: 0;
}

main.wrap { padding-top: 20px; padding-bottom: 24px; }

/* Segmented tabs (admin areas) */
.tabs {
  display: flex; gap: 4px; padding: 4px; margin: 0 0 18px;
  background: var(--line); border-radius: 12px; overflow-x: auto;
}
.tabs a {
  flex: 1 0 auto; min-height: 44px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; color: var(--slate); font-weight: 600; font-size: .88rem;
  text-decoration: none; white-space: nowrap;
}
.tabs a.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

/* Card */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.kicker {
  margin: 0 0 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate);
}
.title { margin: 0 0 8px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.lead { margin: 0 0 18px; color: var(--slate); }

/* Buttons: full width on phones, one primary per screen */
.btns { display: flex; flex-direction: column; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; min-height: 48px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: 11px;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { filter: brightness(.92); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
@media (min-width: 768px) {
  .admin .btns { flex-direction: row; flex-wrap: wrap; }
  .admin .btn { width: auto; }
}

/* Screen map (Phase 0 only) */
.maph { margin: 18px 0 4px; font-size: .95rem; font-weight: 600; }
.map { margin: 0; padding-left: 22px; }
.map a { display: block; min-height: 44px; padding: 10px 0; color: var(--teal); font-weight: 600; text-decoration: none; }

/* Footer */
.footnote { padding: 4px 16px 32px; text-align: center; font-size: .78rem; color: var(--slate); }
.footnote a { display: inline-block; min-height: 44px; padding: 12px 4px; color: var(--teal); font-weight: 600; }
