/* TwoNests — "calm ground between two homes".
   Warm paper, nest green, clay accent. Deliberately not a legal-tech palette:
   no navy/gold, no gavels, no courtroom imagery. The people reading this are
   having a hard year; the page should feel like a kitchen table, not a filing.
   WCAG AA-ish contrast throughout (spec §13: stressed parents on old phones). */

:root {
  --ink: #1C2B33;
  --muted: #5F7280;
  --brand: #2E7D6B;
  --brand-dark: #235F52;
  --accent: #C97B3E;
  --line: #DCE4E7;
  --paper: #FBFAF7;
  --card: #FFFFFF;
  --band-a: #DCEBE6;
  --band-b: #F3E4D6;
  --warn: #FDF1E3;
  --radius: 12px;
  --wrap: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink);
  color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- header */
header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; }
.brand {
  font-weight: 800; font-size: 20px; color: var(--ink);
  text-decoration: none; display: flex; align-items: center; gap: 9px;
  letter-spacing: -0.02em; white-space: nowrap;
}
/* Two overlapping circles — two homes, one shared space. */
.mark {
  width: 22px; height: 14px; flex: none; position: relative;
}
.mark::before, .mark::after {
  content: ""; position: absolute; top: 0; width: 14px; height: 14px;
  border-radius: 50%; border: 2.5px solid var(--brand);
}
.mark::before { left: 0; }
.mark::after { right: 0; border-color: var(--accent); }

header nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
header nav a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  font-weight: 600; padding: 8px 11px; border-radius: 8px;
}
header nav a:hover { color: var(--ink); background: var(--paper); }
header nav a.cta {
  background: var(--brand); color: #fff; padding: 9px 16px;
}
header nav a.cta:hover { background: var(--brand-dark); color: #fff; }

/* ------------------------------------------------------------ typography */
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; }
h2 { font-size: clamp(22px, 3vw, 29px); line-height: 1.2; letter-spacing: -0.02em; margin: 38px 0 12px; }
h3 { font-size: 18px; margin: 26px 0 8px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); line-height: 1.55; margin: 0 0 22px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.09em; font-size: 12px;
  font-weight: 800; color: var(--brand); margin: 0 0 10px;
}
section.page { padding: 44px 0 64px; }
.narrow { max-width: 720px; }

/* --------------------------------------------------------------- pieces */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.btn {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 14px 26px; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: 0; font-size: 17px; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-dark); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); background: var(--card); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.pill {
  display: inline-block; background: var(--band-a); color: var(--brand-dark);
  border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 700;
}
.pill.clay { background: var(--band-b); color: #8A5124; }

/* The disclaimer. Never subtle, never below the fold. */
.notice {
  background: var(--warn); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 16px 18px; margin: 20px 0;
  font-size: 15px; line-height: 1.5;
}
.notice strong { display: block; margin-bottom: 3px; }
.disclaimer-bar {
  background: var(--warn); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin: 0 0 26px;
}

/* ---------------------------------------------------------------- table */
.sched { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.sched th, .sched td {
  border: 1px solid var(--line); padding: 9px 4px; text-align: center;
}
.sched th { background: #EEF3F5; font-size: 12.5px; letter-spacing: .03em; }
.sched td.a { background: var(--band-a); font-weight: 700; }
.sched td.b { background: var(--band-b); font-weight: 700; }
.sched caption { caption-side: bottom; color: var(--muted); font-size: 13.5px; padding-top: 9px; text-align: left; }
.table-scroll { overflow-x: auto; }

/* ----------------------------------------------------------------- form */
label { display: block; font-weight: 700; margin: 0 0 6px; font-size: 15px; }
.hint { color: var(--muted); font-size: 14px; font-weight: 400; margin: 0 0 8px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line);
  border-radius: 9px; font-size: 16px; font-family: inherit; background: var(--card);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-weight: 800; font-size: 18px; margin-bottom: 4px; padding: 0; }
.field { margin-bottom: 22px; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  background: var(--card);
}
.choice:hover { border-color: var(--brand); }
.choice input { margin: 3px 0 0; flex: none; }
.choice b { display: block; font-size: 15.5px; }
.choice span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--band-a); }
.error {
  background: #FDECEC; border: 1px solid #D8756B; color: #8A2A20;
  padding: 12px 15px; border-radius: 9px; margin-bottom: 18px; font-size: 15px;
}

/* --------------------------------------------------------------- footer */
footer.site {
  border-top: 1px solid var(--line); background: var(--card);
  margin-top: 60px; padding: 34px 0 44px;
}
footer .cols {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 9px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer a { color: var(--ink); text-decoration: none; font-size: 15px; }
footer a:hover { color: var(--brand); text-decoration: underline; }
.fine { color: var(--muted); font-size: 12.5px; margin-top: 30px; line-height: 1.55; }

/* ------------------------------------------------------------ utilities */
.stack > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.big-num { font-size: 40px; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.02em; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.list-plain a { text-decoration: none; font-weight: 600; }
.linkmesh { display: flex; flex-wrap: wrap; gap: 8px; }
.linkmesh a {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font-size: 14px; text-decoration: none; font-weight: 600;
}
.linkmesh a:hover { border-color: var(--brand); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  header nav a { padding: 7px 8px; font-size: 14px; }
  header nav a.cta { padding: 8px 13px; }
  .bar { flex-wrap: wrap; padding-bottom: 8px; }
}

/* ------------------------------------------------- the signed-in app --- */
.subnav {
  display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 26px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.subnav a {
  padding: 7px 12px; border-radius: 8px; text-decoration: none;
  color: var(--muted); font-weight: 600; font-size: 15px;
}
.subnav a:hover { background: var(--card); color: var(--ink); }
.subnav a.on { background: var(--band-a); color: var(--brand-dark); }

.flash-ok {
  background: var(--band-a); border: 1px solid var(--brand);
  color: var(--brand-dark); padding: 11px 15px; border-radius: 9px;
  margin-bottom: 18px; font-size: 15px;
}

/* Message thread: the author's own messages lean right, like every chat app
   anyone has ever used. Don't get clever here — people are stressed. */
.card.mine { border-color: var(--brand); background: #F4FAF8; }

/* Calendar grid */
table.cal td { height: 62px; vertical-align: top; text-align: left; padding: 5px 6px; }
table.cal td.out { opacity: .38; }
.daynum { font-size: 12px; color: var(--muted); display: block; }
.who { font-size: 12.5px; font-weight: 700; display: block; margin-top: 2px; }
.src {
  font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent); font-weight: 800;
}
textarea { resize: vertical; min-height: 90px; }
