:root {
  --ink: #1c2430;
  --muted: #586170;
  --paper: #f6f3ed;
  --panel: #ffffff;
  --line: #ded7c9;
  --accent: #2f6f5e;
  --accent-strong: #1f4f43;
  --warm: #b85f38;
  --gold: #d7aa43;
  --sky: #e8f1ee;
  --shadow: 0 18px 60px rgba(28, 36, 48, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 170, 67, 0.14), transparent 34rem),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 44%, #f8f7f3 100%);
  line-height: 1.55;
}

a {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-menu {
  position: relative;
}

.avatar-button {
  appearance: none;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(31, 79, 67, 0.24);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(31, 79, 67, 0.18);
}

.settings-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: 230px;
  padding: 8px;
  border: 1px solid rgba(31, 79, 67, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.settings-menu[hidden] {
  display: none;
}

.menu-identity {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.menu-identity span {
  display: block;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.menu-identity small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.settings-menu button {
  appearance: none;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.settings-menu button:hover {
  background: var(--sky);
}

main {
  overflow: hidden;
}

.hero,
.page-hero,
.band,
.grid,
.timeline,
.note {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 520px;
  padding: 62px 0 50px;
  align-items: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(30px, 6vw, 78px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.lede {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  appearance: none;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-strong);
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--accent-strong);
  color: #fff;
}

.secondary {
  background: transparent;
  color: var(--accent-strong);
}

.danger {
  border-color: #9c3d2f;
  background: #9c3d2f;
  color: #fff;
}

.identity-strip .label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.band,
.note {
  padding: 58px 0;
  border-top: 1px solid rgba(222, 215, 201, 0.86);
}

.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: baseline;
}

.wide-copy {
  max-width: 860px;
  color: var(--muted);
  font-size: 1rem;
}

.grid {
  display: grid;
  gap: 18px;
  padding: 32px 0 58px;
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid rgba(31, 79, 67, 0.12);
  border-radius: 14px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(28, 36, 48, 0.06);
}

ul,
ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.signup-form {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(31, 79, 67, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.admin-panel {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(31, 79, 67, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(28, 36, 48, 0.06);
}

.admin-panel h3,
.admin-panel p {
  margin: 0;
}

.admin-panel p {
  color: var(--muted);
}

.admin-panel .label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

.identity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
}

.identity-strip strong {
  display: block;
  font-size: 1.05rem;
}

.identity-strip span:not(.label) {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-grid,
.suggest {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

label,
legend {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(28, 36, 48, 0.03);
}

fieldset {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.full {
  display: block;
}

.time-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.time-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 241, 238, 0.86), rgba(255, 255, 255, 0.9));
}

.time-card strong {
  display: block;
  font-size: 1rem;
}

.time-card small {
  color: var(--muted);
}

.time-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.choice.active {
  background: var(--accent);
  color: #fff;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-actions,
.spreadsheet-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.spreadsheet {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(31, 79, 67, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(28, 36, 48, 0.06);
}

.spreadsheet h3 {
  margin: 0;
}

.table-wrap {
  width: 100%;
  margin-top: 14px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.page-hero {
  padding: 68px 0 44px;
}

.timeline {
  display: grid;
  gap: 16px;
  padding-bottom: 58px;
}

.timeline article {
  display: grid;
  grid-template-columns: 48px 180px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  font-weight: 900;
}

.timeline h2,
.timeline p {
  margin: 0;
}

.timeline h2 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.checklist input {
  width: auto;
  margin: 0;
}

footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 36, 48, 0.48);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(28, 36, 48, 0.24);
}

.small-modal {
  width: min(520px, 100%);
}

.modal-copy {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.handle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.profile-details {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.profile-details div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
}

.profile-details span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-details strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.security-roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.security-roadmap article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.guide-links {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 58px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guide-links a {
  padding: 18px;
  border: 1px solid rgba(31, 79, 67, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(28, 36, 48, 0.06);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.guide-links a:hover {
  border-color: rgba(31, 79, 67, 0.34);
}

@media (max-width: 860px) {
  .site-header,
  .split,
  .section-head,
  .three,
  .two,
  .form-grid,
  .compact,
  .suggest,
  .timeline article,
  .checklist,
  .time-card,
  .handle-row,
  .security-roadmap,
  .guide-links {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .settings-menu {
    right: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
}
