:root {
  --teal: #1f5f5b;
  --teal-dark: #164542;
  --teal-light: #e3efed;
  --sand: #f6f1ea;
  --coral: #e07a5f;
  --coral-dark: #c8644a;
  --ink: #2b2b2b;
  --muted: #5f6b6a;
  --line: #e2dcd3;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(31, 95, 91, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--teal-dark); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); }
a:hover { color: var(--coral-dark); }
img { max-width: 100%; height: auto; }

.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

/* Demo bar */
.demo-bar { background: var(--ink); color: #f0f0f0; font-size: 0.85rem; }
.demo-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.45rem 0; }
.demo-bar-label { opacity: 0.75; }
.demo-bar a { color: #f0f0f0; text-decoration: none; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); }
.demo-bar a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.demo-bar a[aria-current="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--teal-dark); font-family: Georgia, serif; font-size: 1.35rem; font-weight: bold; }
.brand-mark { width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); box-shadow: inset -0.5rem -0.5rem 0 var(--coral); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--teal); }

/* View badge */
.view-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.2rem 0.65rem; border-radius: 999px; }
.view-badge--public { background: var(--teal-light); color: var(--teal-dark); }
.view-badge--client { background: #fbe5dd; color: #8a3c27; }
.view-badge--staff { background: #e6e3f3; color: #3d3570; }

/* Sections */
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band--white { background: var(--white); }
.band--teal { background: var(--teal); color: #f3f8f7; }
.band--teal h1, .band--teal h2, .band--teal h3 { color: #fff; }
.band--teal a:not(.button) { color: #fff; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.band--teal .lead { color: #d8e8e6; }
.eyebrow { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-dark); margin-bottom: 0.5rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.hero { padding: clamp(3rem, 8vw, 6rem) 0; background: linear-gradient(160deg, var(--teal-light), var(--sand) 70%); }
.hero h1 { max-width: 40rem; }

/* Buttons */
.button { display: inline-block; padding: 0.75rem 1.4rem; border-radius: 999px; border: 2px solid var(--coral); background: var(--coral); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.button--ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.button--ghost:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.button:disabled { opacity: 0.6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Cards and grids */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.placeholder { color: var(--muted); font-style: italic; }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid #cfc7bb; border-radius: 8px; font: inherit; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--teal-light); border-color: var(--teal); }
.field textarea { min-height: 8rem; resize: vertical; }
fieldset.field { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.choices label { font-weight: normal; display: flex; align-items: center; gap: 0.4rem; }
.choices input { width: auto; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 0.85rem 1rem; border-radius: 8px; font-weight: 500; }
.form-status.is-success { background: var(--teal-light); color: var(--teal-dark); border: 1px solid #b9d6d2; }
.form-status.is-error { background: #fbe5dd; color: #8a3c27; border: 1px solid #f0bfae; }

/* Dashboard pieces */
.sample-note { background: #fff6d9; border: 1px solid #ecd58f; color: #6b5512; border-radius: 8px; padding: 0.6rem 1rem; font-size: 0.9rem; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.stat-label { display: block; font-size: 0.85rem; color: var(--muted); }
.stat-value { display: block; font-size: 2rem; font-weight: 700; color: var(--teal-dark); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.table th { background: var(--teal-light); color: var(--teal-dark); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 0.8rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--teal-light); color: var(--teal-dark); }
.tag--new { background: #fbe5dd; color: #8a3c27; }
.bar { height: 0.6rem; border-radius: 999px; background: var(--teal-light); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal); }

/* Footer */
.site-footer { background: var(--teal-dark); color: #d8e8e6; padding: 2.5rem 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-brand { font-family: Georgia, serif; font-size: 1.2rem; color: #fff; margin-bottom: 0.3rem; }
