/* Suit (styling shared with Flow and humantech.ch) — warm, quiet. One accent: ember. Suit's own components are in
   suit.css, and each area of the app has a file of its own. */

:root {
  /* After hack4impact.ch: warm paper, deep navy ink, Swiss red, a yellow highlighter. */
  --navy: #16213a;
  --red: #e2231a;
  --red-dark: #b81b14;
  --yellow: #ffd23f;

  --paper: #fbfaf7;
  --sheet: #ffffff;
  --ink: var(--navy);
  --ink-soft: #46516b;
  --ink-faint: #8d96ab;
  --rule: #e3dfd5;
  --tint: #f2efe8;
  --wash: #f7f5f0;
  --shadow: 0 1px 2px rgba(22, 33, 58, .06), 0 8px 24px rgba(22, 33, 58, .06);

  /* The one warm accent */
  --ember: var(--red);
  --ember-ink: #ffffff;
  --ember-hover: var(--red-dark);

  /* The empty part of a bar, e.g. behind a score */
  --heat-off: #ebe7de;

  --focus: var(--navy);
  --focus-soft: rgba(22, 33, 58, .12);

  /* Flash messages and plain pills */
  --value-bg: var(--tint);
  --value-ink: var(--ink-soft);
  --noticed: var(--tint);
  --noticed-ink: var(--ink-soft);

  /* Green for what went well, red for what needs a look (pill--ok and pill--warn in suit.css) */
  --exploring: #e6f4ea;
  --exploring-ink: #1e6b3a;
  --committed: #fde8e6;
  --committed-ink: var(--red-dark);

  --radius: 14px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.75rem 1rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand__mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 5px;
  background: var(--red);
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

/* ---------- Buttons & inputs ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 550;
  padding: .45rem 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.button:hover { border-color: var(--ink-faint); }

.button--accent {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--ember-ink);
}

.button--accent:hover { background: var(--ember-hover); border-color: var(--ember-hover); }

.button--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
}

.button--quiet:hover { background: var(--tint); border-color: transparent; }

.input {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  padding: .6rem .8rem;
}

.input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--focus-soft);
}

.input::placeholder { color: var(--ink-faint); }

.input--title {
  font-size: 1.35rem;
  font-weight: 600;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  padding: .4rem 0;
}

.input--title:focus { box-shadow: none; }

.input--area { resize: vertical; min-height: 6rem; }

.input--select { width: auto; max-width: 100%; padding-right: 2rem; text-overflow: ellipsis; }

.label {
  display: block;
  color: var(--ink-soft);
  font-size: .9rem;
  margin-bottom: .4rem;
}

/* ---------- Flash & empty ---------- */

.flash {
  margin: 0 0 1rem;
  padding: .55rem .9rem;
  border-radius: var(--radius);
  background: var(--value-bg);
  color: var(--value-ink);
  font-size: .9rem;
}

.flash--soft { background: var(--tint); color: var(--ink-soft); }

/* "Check your inbox to confirm …", with its Send again button inline */
.flash--confirm { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .75rem; }
.flash__button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-soft);
}

.empty__lead {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

/* ---------- Pills ---------- */

.pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 550;
  letter-spacing: .01em;
  border-radius: 999px;
  padding: .08rem .6rem;
  background: var(--noticed);
  color: var(--noticed-ink);
}

/* ---------- Sheets (form, detail) ---------- */

.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
}

@media (max-width: 540px) { .sheet { padding: 1.25rem; } }

.sheet__title {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.sheet__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.back {
  display: inline-block;
  color: var(--ink-faint);
  font-size: .875rem;
  text-decoration: none;
  margin-bottom: .75rem;
}

.sheet__top .back { margin: 0; }

.back:hover { color: var(--ink); }

/* ---------- Form ---------- */

.form { display: grid; gap: 1.5rem; }

.form__errors {
  margin: 0;
  padding: .75rem 1rem .75rem 2rem;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--ink-soft);
  font-size: .9rem;
}

.form__actions { display: flex; gap: .5rem; }
.form__delete { margin-left: auto; }

.more summary {
  cursor: pointer;
  color: var(--ink-faint);
  font-size: .9rem;
  list-style: none;
}

.more summary::before { content: "+ "; }
.more[open] summary::before { content: "− "; }
.more[open] summary { margin-bottom: 1rem; }
.more .field + .field { margin-top: 1rem; }

.danger-zone {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 540px) {
  .masthead { padding-top: 1.25rem; }
}

/* ---------- Masthead nav ---------- */

.masthead__nav { display: flex; align-items: center; gap: 1rem; }

.masthead__link {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
}

.masthead__link:hover, .masthead__link.is-current { color: var(--ink); }

.page-title {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

/* Small red label above a heading, and the yellow highlighter under one */
.eyebrow {
  margin: .5rem 0 .4rem;
  color: var(--red);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.highlight {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Lists of projects, people, runs ---------- */

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.item-row__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.item-row__link:hover { border-color: var(--ink-faint); box-shadow: var(--shadow); }

.item-row__body { display: grid; gap: .2rem; min-width: 0; }

.item-row__title { font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }

.item-row__description { color: var(--ink-soft); font-style: italic; font-size: .95rem; }

.item-row__aside {
  display: grid;
  justify-items: end;
  gap: .3rem;
  flex: none;
  font-size: .8rem;
  color: var(--ink-faint);
}

@media (max-width: 540px) {
  .item-row__link { flex-direction: column; align-items: flex-start; }
  .item-row__aside { justify-items: start; grid-auto-flow: column; gap: .6rem; }
}

/* ---------- A page header with an action ---------- */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin: .5rem 0 1.25rem;
}

/* A long word in the title wraps instead of pushing Edit off a phone screen. */
.page-head > div { min-width: 0; }
.page-head > .button { flex-shrink: 0; }

.page-head__title {
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  letter-spacing: -.01em;
}

@media (max-width: 540px) { .page-head__title { font-size: 1.75rem; } }

.page-head__description {
  margin: .25rem 0 0;
  color: var(--ink-soft);
  font-style: italic;
}

.check {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink-soft);
  font-size: .9rem;
  cursor: pointer;
}

.check__input { accent-color: var(--red); width: 1rem; height: 1rem; }

.hint { margin: 0; color: var(--ink-faint); font-size: .875rem; }

/* ---------- Display type ---------- */

.empty__lead, .log__title, .input--title, .sheet__title {
  font-family: var(--display);
  letter-spacing: -.015em;
}

.sheet { box-shadow: var(--shadow); }

/* ---------- Signing in and settings ---------- */

.sheet__lead { margin: 0 0 1.5rem; color: var(--ink-soft); }

.tokens {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.tokens:not(:has(li)) { margin: 0; }

.token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.25rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.token-row__body { display: grid; gap: .15rem; min-width: 0; }
.token-row__name { font-weight: 600; overflow-wrap: anywhere; }
.token-row__meta { color: var(--ink-faint); font-size: .85rem; }

.settings-section { margin-bottom: 2.5rem; }

/* A section's heading inside a page (Flow's name for it, from its action log) */
.log__title {
  margin: 0 0 .9rem;
  font-size: 1rem;
  font-weight: 600;
}
.settings-section p { color: var(--ink-soft); }

.token-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.token-form .input { flex: 1 1 14rem; }
.token-form .form__errors { flex-basis: 100%; }

.token-note { margin: 0; font-size: .9rem; color: var(--ink-soft); overflow-wrap: anywhere; }

.token {
  margin: 0 0 .75rem;
  padding: .9rem 1rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: .8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.page-foot { margin: 2rem 0 0; text-align: center; font-size: .9rem; color: var(--ink-faint); }
.page-foot__link { color: var(--ink-faint); }

