/* Couch Committee's public site. One light look, drawn from the logo: flat color, navy outlines,
   rounded type. The sky must stay exactly #bfdcec, because couch.png has it baked in. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sky: #bfdcec;
  --mist: #eaf3f8;
  --white: #ffffff;
  --navy: #1f2a44;
  --slate: #47536d;
  --couch: #e8a33a;
  --red: #c93f24;
  --teal: #21746e;
  --line: 3px solid var(--navy);
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 1.125rem/1.6 var(--body);
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; max-width: 38em; }

.wrap {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.stack { display: grid; gap: 1.25rem; align-content: start; justify-items: start; min-width: 0; }
.lead { font-size: 1.25rem; }
.quiet { color: var(--slate); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1; padding: 0.5rem 1rem; background: var(--white); }

/* Header */
.site-header { background: var(--sky); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  font: 600 1.375rem var(--display);
  text-decoration: none;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-weight: 700; }
.site-nav a { padding-block: 0.5rem; text-decoration: none; }
.site-nav a:hover, .site-nav [aria-current] { text-decoration: underline; text-decoration-thickness: 3px; }

.button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: var(--line);
  border-radius: 999px;
  background: var(--couch);
  color: var(--navy);
  font: 600 1.2rem/1.3 var(--display);
  text-decoration: none;
}

.button:hover { background: #f3b957; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* Home: hero */
.hero { background: var(--sky); border-bottom: var(--line); }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 2rem;
  padding-top: 2.5rem;
}

.hero .stack { padding-bottom: 4rem; align-self: center; }
.hero img { display: block; width: 100%; }

/* Home: the pretend list */
.band { padding-block: 5rem; }
.band-mist { background: var(--mist); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.panel {
  min-width: 0;
  border: var(--line);
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: var(--line);
  background: var(--couch);
}

.panel-title span { font-size: 0.95rem; font-weight: 700; }
.rows { margin: 0; padding: 0; list-style: none; }

.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: var(--white);
}

.row + .row { border-top: 1px solid #c8d5e0; }
.row > :nth-last-child(1) { margin-left: auto; }
.row-text { flex: 1; min-width: 0; line-height: 1.35; }
.row-text strong { display: block; font-weight: 800; }
.row-text small { display: block; color: var(--slate); font-size: 0.95rem; }
.row-text em { display: block; font-size: 0.95rem; }
.row.dragging { background: #fdf1da; }

.handle {
  flex: none;
  width: 2.25rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--slate);
  font-size: 1.4rem;
  line-height: 1;
  cursor: grab;
  touch-action: none;
}

.small-button {
  flex: none;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: 700 0.95rem var(--body);
  cursor: pointer;
}

.small-button:hover { background: var(--mist); }
.status { min-height: 1.6em; }

.tag {
  display: inline-block;
  padding: 0.1em 0.65em;
  border-radius: 999px;
  background: #d2f4ea;
  color: #0d503c;
  font-size: 0.9rem;
  font-weight: 700;
}

.badge {
  flex: none;
  padding: 0.15em 0.6em;
  border-radius: 6px;
  background: #ffd257;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Home: what it remembers */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; margin: 2.5rem 0 0; }
.facts dt { font: 600 1.35rem/1.25 var(--display); }
.facts dd { margin: 0.5rem 0 0; color: var(--slate); }

.closing { background: var(--navy); color: var(--white); }
.closing :focus-visible { outline-color: var(--white); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }

/* How it works */
.page-top { background: var(--sky); border-bottom: var(--line); padding-block: 2.5rem 4rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  padding-block: 3.5rem;
  counter-increment: step;
}

.step + .step { border-top: 1px solid #c8d5e0; }

.step::before {
  content: counter(step);
  font: 700 4rem/0.65 var(--display);
  color: var(--red);
}

.field-label { display: block; font-size: 0.95rem; font-weight: 700; }

.field {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.8rem;
  border: 2px solid #8794a8;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.panel-body { display: grid; gap: 0.75rem; padding: 1.1rem; }
.field-row { display: flex; gap: 0.75rem; align-items: center; }
.done { color: var(--teal); font-weight: 800; font-size: 0.95rem; }
.next { color: var(--red); font-weight: 800; font-size: 0.95rem; }

.questions { display: grid; margin-top: 2rem; border-top: 2px solid var(--navy); }
.questions details { border-bottom: 2px solid var(--navy); }
.questions summary { padding: 1rem 0; font: 600 1.25rem/1.3 var(--display); cursor: pointer; }
.questions p { padding-bottom: 1.25rem; }

/* Footer */
.site-footer { padding-block: 2rem; font-size: 1rem; color: var(--slate); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }

@media (max-width: 48rem) {
  .hero .wrap, .split, .facts { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-top: 1rem; }
  .hero .stack { padding-bottom: 0; }
  .band { padding-block: 3.5rem; }
  .step { grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem 1rem; padding-block: 2.5rem; }
  .step::before { font-size: 3rem; }
  .step > .panel { grid-column: 1 / -1; }
}

@media (max-width: 26rem) {
  .row { gap: 0.5rem; padding-inline: 0.75rem; }
  .small-button { padding-inline: 0.7rem; }
}
