@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/nunito-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --body: "Nunito Sans", sans-serif;
  --display: "Bricolage Grotesque", "Nunito Sans", sans-serif;
  --background: #f9f7ee;
  --paper: #fffdf6;
  --forest: #174640;
  --ink: #213f38;
  --muted: #4e6258;
  --sage: #dae8d4;
  --honey: #e8b653;
  --peach: #e78b64;
  --berry: #b84f64;
  --line: #e0e5d8;
  background: var(--background);
  color: var(--ink);
  font: 500 1rem/1.5 var(--body);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}
body > main { flex: 1; }
button { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a54c62; outline-offset: 4px; }
.shell { width: min(100% - 3.5rem, 76rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  transform: translateY(-200%);
  padding: .65rem .95rem;
  color: white;
  background: var(--forest);
  border-radius: .6rem;
}
.skip-link:focus { transform: translateY(0); }

.topbar-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.topbar-inner { min-height: 5.4rem; }
.topbar-inner:has(.owner-navigation:not([hidden])) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.owner-navigation {
  display: flex;
  justify-self: center;
  gap: .3rem;
  padding: .3rem;
  border: 1px solid #e2e6d8;
  border-radius: 1rem;
  background: #efefe3;
}
.owner-navigation button {
  min-height: 2.65rem;
  padding: .35rem .95rem;
  border: 0;
  border-radius: .72rem;
  background: transparent;
  color: var(--forest);
  font-size: .93rem;
  font-weight: 850;
  cursor: pointer;
}
.owner-navigation button:hover { background: #e0e8d6; }
.owner-navigation button[aria-pressed="true"] { background: var(--forest); color: var(--paper); }
body:has(.hero:not([hidden])) .topbar {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
  text-decoration: none;
}
.wordmark {
  display: grid;
  justify-items: center;
  font: 800 1.48rem/.84 var(--display);
  font-variation-settings: "opsz" 78;
  letter-spacing: -.06em;
}
.wordmark-row { display: flex; align-items: center; gap: .045em; }
.wordmark-kids { font-size: 1.05em; padding-bottom: .12em; }
.wordmark-kids > :nth-child(1) { color: #27635b; transform: rotate(-9deg); }
.wordmark-kids > :nth-child(2) { color: #b37926; transform: rotate(-4deg) translateY(.06em); }
.wordmark-kids > :nth-child(3) { color: #c46870; transform: rotate(5deg); }
.wordmark-kids > :nth-child(4) { color: #2a6257; transform: rotate(7deg); }
.wordmark-house > :nth-child(1) { color: #b54c60; transform: rotate(-7deg); }
.wordmark-house > :nth-child(3) { color: #b97a29; transform: rotate(-3deg); }
.wordmark-house > :nth-child(4) { color: #b54c60; transform: rotate(4deg); }
.wordmark-house > :nth-child(5) { color: #b97a29; transform: rotate(5deg); }
.wordmark-home {
  display: inline-grid;
  place-items: end center;
  width: .82em;
  height: .85em;
  margin: 0 .03em;
  padding-bottom: .16em;
  color: #fff8ee;
  background: #c16d72;
  clip-path: polygon(50% 0, 100% 38%, 93% 99%, 8% 99%, 0 38%);
  transform: rotate(-3deg);
}
.wordmark-home > span { font: 800 .39em/1 var(--body); }
.brand-caption {
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.23;
  color: var(--muted);
}
.live-logo { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
.live-review { padding-block: clamp(1.1rem, 4vw, 3rem) 3rem; }
.live-review h1 {
  margin-bottom: .45rem;
  font: 780 clamp(2.25rem, 5vw, 4.25rem)/.98 var(--display);
  letter-spacing: -.052em;
  color: var(--forest);
}
.live-review p { margin-bottom: 1.3rem; color: var(--muted); }
.live-frame {
  display: block;
  width: 100%;
  height: 34rem;
  border: 0;
  border-radius: 1.15rem;
  background: #0d141a;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: transparent;
  font-weight: 800;
  color: var(--forest);
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover { background: var(--sage); }

.hero {
  position: relative;
  display: grid;
  min-height: max(42rem, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: #f2e5d2;
}
.hero-wall {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.hero-inner {
  display: grid;
  align-items: center;
  padding-block: clamp(7rem, 10vw, 9rem) clamp(7.25rem, 10vw, 9.5rem);
}
.hero-copy {
  max-width: min(28rem, 40vw);
  margin-inline-start: clamp(0rem, 2vw, 2rem);
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin-bottom: 1rem;
  font: 800 clamp(3.6rem, 5.65vw, 6.2rem)/.92 var(--display);
  font-variation-settings: "opsz" 85;
  letter-spacing: -.043em;
  color: #193f32;
}
.hero h1 span { color: #943e4d; overflow-wrap: anywhere; }
#hero-title span { white-space: nowrap; }
.hero-description {
  max-width: 24rem;
  margin-bottom: 1.4rem;
  color: #3d5348;
  font-size: clamp(1.02rem, 1.4vw, 1.175rem);
  line-height: 1.47;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 3rem;
  padding: .65rem 1.15rem;
  border: 0;
  border-radius: .82rem;
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: #fffcf1; background: var(--forest); }
.button-primary:hover { background: #286458; }
.button-primary:disabled { background: #d5dbca; color: #4d6156; cursor: not-allowed; }

.entry-form { max-width: 25rem; }
.sign-in-fields {
  display: grid;
  gap: .72rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field {
  display: grid;
  gap: .27rem;
  color: var(--forest);
  font-size: .91rem;
  font-weight: 850;
}
.field input, .field select {
  width: 100%;
  min-height: 2.82rem;
  padding: .56rem .73rem;
  border: 1px solid #cbcfb7;
  border-radius: .69rem;
  background: #fffdf2;
  color: var(--ink);
  font: 650 1rem/1.25 var(--body);
}
.field select {
  appearance: none;
  padding-right: 1.9rem;
  background-image: linear-gradient(45deg, transparent 50%, #446359 50%),
    linear-gradient(135deg, #446359 50%, transparent 50%);
  background-position: calc(100% - 15px) 53%, calc(100% - 10px) 53%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field input:hover, .field select:hover { border-color: #8a9f8b; }
.entry-form .button { justify-content: center; width: 100%; }
.sign-in-fields input { background: #fffdf4df; }
.password-field { position: relative; }
.password-field input { padding-right: 5rem; }
.password-field button {
  position: absolute;
  inset: .28rem .34rem .28rem auto;
  min-width: 3.35rem;
  padding: .1rem .56rem;
  border: 0;
  border-radius: .5rem;
  background: #eeeadd;
  color: var(--forest);
  font: 800 .82rem var(--body);
  cursor: pointer;
}
.password-field button:hover { background: var(--sage); }
.sign-in-fields .button {
  margin-top: .12rem;
  box-shadow: 0 .26rem .55rem #2f542a22;
}
.form-error { margin: 0; color: #8a3144; font-size: .9rem; font-weight: 750; }
.access-feedback { margin: 0; color: #255746; font-size: .91rem; font-weight: 800; }
.hero .access-pane h1 { font-size: clamp(2.65rem, 4.6vw, 4.8rem); line-height: .98; }
.access-form { display: grid; gap: .83rem; }
.access-form input { background: #fffdf4ef; }
.forgotten-password { margin-top: .56rem; }
.access-links { display: flex; flex-wrap: wrap; gap: .4rem .85rem; margin-top: .56rem; }
.demo-inbox {
  max-width: 25rem;
  margin-bottom: .9rem;
  padding: .68rem .85rem;
  border: 1px solid #d4ccb6;
  border-radius: .75rem;
  background: #fff9e9e6;
  color: var(--forest);
  font-size: .88rem;
}
.demo-inbox summary { font-weight: 850; cursor: pointer; }
.demo-inbox p { margin: .48rem 0 0; overflow-wrap: anywhere; }
.demo-inbox strong { font-size: 1.1rem; letter-spacing: .08em; }
.demo-access { max-width: 25rem; margin-top: 1rem; }
.demo-access p { margin-bottom: .42rem; color: #4b5d4e; font-size: .88rem; font-weight: 780; }
.demo-options { display: flex; flex-wrap: wrap; gap: .42rem; }
.demo-options button {
  min-height: 2.5rem;
  padding: .36rem .73rem;
  border: 1px solid #cebea2;
  border-radius: 1.5rem;
  background: #fff9ead6;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 800;
  cursor: pointer;
}
.demo-options [data-demo-family="owner"] { background: #e2ead7; border-color: #b6c3ac; }
.demo-options button:hover { background: var(--sage); border-color: #a5b8a1; }

.owner-home { display: grid; gap: 1.18rem; padding-bottom: clamp(2.4rem, 6vw, 5rem); }
.owner-overview {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1.4rem, 4.9vw, 3.4rem);
  border-radius: 1.9rem;
  background:
    radial-gradient(ellipse 24rem 15rem at 104% 125%, #c9d9bf 0 75%, transparent 75.5%),
    radial-gradient(ellipse 27rem 14rem at 86% 146%, #edd28f 0 75%, transparent 75.5%),
    radial-gradient(ellipse 16rem 12rem at 100% -40%, #e8bcaa 0 75%, transparent 75.5%),
    #f3e9d6;
}
.owner-date { margin: 0 0 .65rem; color: var(--muted); font-size: .92rem; font-weight: 850; }
.owner-date::first-letter { text-transform: uppercase; }
.owner-overview h1 { margin: 0; color: var(--forest); font: 800 clamp(2.4rem, 5.3vw, 4.65rem)/.98 var(--display); letter-spacing: -.047em; }
.owner-overview .button { flex: none; white-space: nowrap; }
.owner-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.owner-metrics > div {
  display: grid;
  gap: .65rem;
  align-content: space-between;
  min-width: 0;
  padding: clamp(.95rem, 2.6vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1.22rem;
  background: var(--paper);
}
.owner-metrics > div:nth-child(2) { background: #e9efde; }
.owner-metrics > div:nth-child(4) { background: #f7ecde; border-color: #ede3d7; }
.owner-metrics dt { color: var(--muted); font-size: .91rem; font-weight: 850; line-height: 1.3; }
.owner-metrics dd { margin: 0; color: var(--forest); font: 800 clamp(2.05rem, 4.15vw, 3.4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.owner-insights { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: .9rem; }
.insight-card {
  min-width: 0;
  padding: clamp(1.05rem, 2.9vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
}
.insight-card h2 { margin: 0; color: var(--forest); font: 780 1.42rem/1.12 var(--display); letter-spacing: -.024em; }
.insight-note { margin: .46rem 0 0; color: var(--muted); font-size: .91rem; }
.journey-distribution, .online-list { list-style: none; margin: 1.15rem 0 0; padding: 0; }
.journey-distribution { display: grid; gap: 1rem; }
.journey-distribution li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .7rem; }
.journey-distribution li span { font-weight: 750; overflow-wrap: anywhere; }
.journey-distribution strong { color: var(--muted); font-weight: 850; font-size: .86rem; }
.journey-bar { grid-column: 1 / -1; height: .52rem; border-radius: 2rem; background: #efeee4; overflow: hidden; }
.journey-bar span { display: block; height: 100%; border-radius: inherit; background: #81a791; }
.journey-distribution li:nth-child(3n + 2) .journey-bar span { background: #d6a658; }
.journey-distribution li:nth-child(3n) .journey-bar span { background: #cf8999; }
.online-empty { margin: 1rem 0 0; padding: .8rem; border-radius: .7rem; background: #f2f2e7; color: var(--muted); }
.online-list li { display: flex; align-items: center; gap: .72rem; padding: .66rem 0; border-top: 1px solid var(--line); }
.online-initial { display: grid; place-items: center; flex: 0 0 2.3rem; aspect-ratio: 1; border-radius: 50%; background: #dbe9d6; color: var(--forest); font-weight: 850; }
.online-list li div { display: grid; min-width: 0; gap: .05rem; overflow-wrap: anywhere; }
.online-list strong { color: var(--forest); }
.online-list li div span { color: var(--muted); font-size: .86rem; }

.family-home { display: grid; gap: 1.05rem; padding-bottom: clamp(2.2rem, 6vw, 5rem); }
.family-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 1fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 4rem);
  padding: clamp(1.35rem, 5.3vw, 4.6rem);
  min-height: 20rem;
  border-radius: 2rem;
  background:
    radial-gradient(ellipse 27rem 19rem at 102% 119%, #c4d5b7 0 72%, transparent 72.5%),
    radial-gradient(ellipse 22rem 15rem at 73% 117%, #edc474 0 72%, transparent 72.5%),
    radial-gradient(ellipse 23rem 15rem at 97% 9%, #e7b8a7 0 72%, transparent 72.5%),
    #f3e8d5;
}
.family-welcome h1 {
  max-width: 12ch;
  margin-bottom: .68rem;
  color: var(--forest);
  overflow-wrap: anywhere;
  font: 800 clamp(2.55rem, 5.4vw, 5.35rem)/.97 var(--display);
  letter-spacing: -.052em;
}
.family-welcome h1 span { color: #975061; }
.family-welcome p { margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); font-weight: 800; }
.family-journey {
  padding: clamp(1.1rem, 3vw, 1.65rem);
  border: 1px solid #fff8ea;
  border-radius: 1.3rem;
  background: #fffdf3f5;
  color: var(--forest);
  box-shadow: 0 .45rem 1.55rem #63593e17;
}
.journey-label, .journey-days { margin: 0; color: var(--muted); font-size: .91rem; font-weight: 750; }
.family-journey h2 { margin: .3rem 0 .65rem; font: 780 clamp(1.3rem, 2.4vw, 1.85rem)/1.1 var(--display); }
.journey-time { margin: 0 0 .28rem; font-size: 1.18rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.family-access {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.4rem);
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--paper);
}
.family-access-icon {
  display: grid;
  place-items: center;
  inline-size: 3.25rem;
  block-size: 3.25rem;
  border-radius: 1rem;
  background: #f4e6d1;
  color: #72512e;
}
.family-access[data-open="true"] .family-access-icon { background: var(--sage); color: var(--forest); }
.family-access h2 { margin: 0 0 .16rem; color: var(--forest); font: 780 1.48rem/1.1 var(--display); }
.family-access p { margin: 0; color: var(--muted); }
#access-state { font-weight: 850; }
.family-access .button { white-space: nowrap; }

.family-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid #d6dfc9;
  border-radius: 1.42rem;
  background: #e8eedc;
}
.family-initial {
  display: grid;
  place-items: center;
  width: clamp(3rem, 5vw, 4.4rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font: 780 clamp(1.5rem, 3vw, 2.25rem)/1 var(--display);
}
.family-summary h1 {
  margin: 0;
  color: var(--forest);
  font: 780 clamp(1.55rem, 3.4vw, 2.8rem)/1.04 var(--display);
  letter-spacing: -.045em;
}
.family-summary p { margin: .45rem 0 0; color: var(--muted); font-weight: 650; }
.family-summary .nav-link { background: var(--paper); white-space: nowrap; }
.family-summary .nav-link:hover { background: #f3f5ea; }

.admin { margin-bottom: clamp(2rem, 4.4vw, 4rem); }
.admin-heading {
  padding: clamp(1.3rem, 4vw, 2.8rem);
  border-radius: 1.7rem;
  background:
    radial-gradient(ellipse 19rem 12rem at 99% 128%, #d4a28e 0 72%, transparent 72.5%),
    radial-gradient(ellipse 20rem 13rem at 88% 127%, #ebc277 0 72%, transparent 72.5%),
    radial-gradient(ellipse 15rem 9rem at 99% -16%, #c5d4b7 0 72%, transparent 72.5%),
    #eff0e0;
  color: var(--forest);
}
.admin-heading h1 {
  margin-bottom: .55rem;
  font: 780 clamp(2rem, 4.4vw, 3.8rem)/1.04 var(--display);
  letter-spacing: -.055em;
}
.admin-heading > p { margin: 0; color: var(--muted); }
.admin-heading > .admin-example { margin-top: .45rem; font-size: .91rem; font-weight: 800; }
.admin-controls { margin: 1.1rem 0; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr); gap: 1rem; align-items: start; }
.admin-card {
  min-width: 0;
  padding: clamp(1.05rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1.16rem;
  background: var(--paper);
}
.admin-card h2 {
  margin: 0;
  color: var(--forest);
  font: 770 1.32rem/1.17 var(--display);
  letter-spacing: -.02em;
}
.admin-form { display: grid; gap: .88rem; }
.admin-form .button { justify-content: center; }
.text-action {
  justify-self: start;
  padding: .2rem 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: .88rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.text-action:hover { color: #98485e; }
.admin-families { grid-template-columns: minmax(0, 1fr); }
.family-registration { padding: clamp(1.08rem, 3vw, 2rem); }
.family-registration h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
.registration-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.85rem, 2.5vw, 1.6rem);
  margin-top: 1rem;
}
.registration-fields fieldset, .new-child-fields {
  display: grid;
  align-content: start;
  gap: .72rem;
}
.registration-fields fieldset {
  margin: 0;
  min-width: 0;
  padding: clamp(.85rem, 2vw, 1.25rem);
  border: 1px solid #dfe3d1;
  border-radius: 1rem;
  background: #f8f7ea;
}
.registration-fields legend { padding-inline: .38rem; color: var(--forest); font-weight: 850; }
.assignment-preview {
  margin: 0;
  padding: .56rem .7rem;
  border-radius: .55rem;
  background: #e3ecd8;
  color: var(--forest);
  font-size: .88rem;
  font-weight: 800;
}
.registration-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.05rem; margin-top: 1rem; }
.temporary-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .7rem;
  margin-top: 1rem;
  padding: clamp(.95rem, 2.7vw, 1.45rem);
  border: 1px solid #d1dfca;
  border-radius: 1rem;
  background: #e9efdf;
}
.temporary-access h3 { margin: 0; color: var(--forest); font: 780 1.25rem/1.15 var(--display); }
.temporary-access p { margin: .4rem 0 0; color: var(--muted); font-size: .91rem; }
.temporary-access dl { display: flex; flex-wrap: wrap; gap: .65rem 1.35rem; margin: .75rem 0 0; }
.temporary-access dt { color: var(--muted); font-size: .84rem; font-weight: 800; }
.temporary-access dd { margin: 0; color: var(--forest); font-weight: 850; overflow-wrap: anywhere; }
.temporary-access .nav-link { background: var(--paper); }
.temporary-access #copy-feedback { grid-column: 1 / -1; }
.time-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.admin-hint, .admin-feedback { margin: 0; color: var(--muted); font-size: .91rem; font-weight: 700; }
.admin-feedback { color: #305f49; }
.admin-feedback[data-error="true"] { color: #8a3144; }
.admin-records { margin: .9rem 0 0; padding: 0; list-style: none; }
.admin-records li {
  display: grid;
  gap: .22rem;
  padding: .72rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.admin-records strong { color: var(--forest); line-height: 1.18; }
.admin-records span { color: var(--muted); font-size: .91rem; }

.icon { flex: none; display: inline-block; width: 1rem; height: 1rem; position: relative; }
.icon-grid {
  background: currentColor;
  clip-path: polygon(0 0, 42% 0, 42% 42%, 0 42%, 0 0,
    58% 0, 100% 0, 100% 42%, 58% 42%, 58% 0, 0 0,
    0 58%, 42% 58%, 42% 100%, 0 100%, 0 58%,
    58% 58%, 100% 58%, 100% 100%, 58% 100%, 58% 58%, 0 58%);
}
.icon-single { height: .76rem; border: 1.8px solid currentColor; border-radius: .18rem; }
.icon-camera::before {
  content: "";
  position: absolute;
  inset: .18rem .22rem .18rem 0;
  border: 1.7px solid currentColor;
  border-radius: .23rem;
}
.icon-camera::after {
  content: "";
  position: absolute;
  inset: .2rem 0 .2rem auto;
  width: .33rem;
  background: currentColor;
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 62%);
}

.viewer { padding-block: clamp(2.4rem, 3.55vw, 3.3rem); scroll-margin-top: 1rem; }
.viewer-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.1rem;
  margin-bottom: 1.15rem;
}
.viewer-heading h2 {
  margin-bottom: .05rem;
  font: 780 clamp(2rem, 3.45vw, 3rem)/1 var(--display);
  letter-spacing: -.047em;
}
.viewer-description { margin: .48rem 0 0; color: var(--muted); }
.view-controls {
  display: inline-flex;
  flex: none;
  gap: .15rem;
  padding: .28rem;
  background: #eeeee2;
  border: 1px solid #e3e6d8;
  border-radius: .92rem;
}
.view-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .52rem;
  min-height: 2.62rem;
  padding: .35rem .72rem;
  border: 1px solid transparent;
  border-radius: .64rem;
  color: #40584c;
  background: transparent;
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.view-controls button[aria-pressed="true"] {
  color: var(--forest);
  border-color: #dfe6d5;
  background: var(--paper);
  box-shadow: 0 .093rem .2rem #1e453915;
}
.view-controls button[aria-pressed="false"]:hover { background: var(--sage); }

.camera-grid, .camera-picker ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.camera-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.01rem; }
.camera-grid li { min-width: 0; }
.camera {
  display: grid;
  width: 100%;
  height: 100%;
  padding: .37rem;
  border: 1px solid var(--line);
  border-radius: 1.19rem;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .17s, box-shadow .17s;
}
.camera:hover {
  border-color: #a5bea4;
  box-shadow: 0 .4rem 1rem #2a50331c;
}
.camera-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: .88rem;
  background: var(--sage);
}
.camera-image img { width: 100%; height: 100%; object-fit: cover; }
.expand {
  position: absolute;
  display: grid;
  place-items: center;
  inset: auto .57rem .57rem auto;
  width: 2rem;
  height: 2rem;
  border-radius: .62rem;
  background: #fffdf2ee;
  color: var(--forest);
}
.expand::before {
  content: "";
  width: .82rem;
  height: .82rem;
  border: .12rem solid;
  border-radius: .1rem;
  mask-image: radial-gradient(circle, transparent 57%, #000 61%);
}
.camera-caption { display: grid; gap: .18rem; padding: .67rem .62rem .62rem; }
.channel-number {
  margin-bottom: 0;
  font-size: .82rem;
  line-height: 1.2;
  color: #4f6558;
  font-weight: 850;
}
.camera-name {
  font: 750 clamp(.96rem, 1.5vw, 1.17rem)/1.15 var(--display);
  letter-spacing: -.014em;
}

.single-view { display: grid; grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr); gap: 1rem; }
.featured, .camera-picker {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .75rem;
  border-radius: 1.25rem;
}
.featured { align-self: start; min-width: 0; }
.featured-header { padding: .45rem .38rem .72rem; }
.featured-header .channel-number { margin-bottom: .22rem; }
.featured-header h3, .camera-picker h3 {
  margin-bottom: 0;
  font: 775 clamp(1.15rem, 2.35vw, 1.7rem)/1.18 var(--display);
  letter-spacing: -.027em;
}
.featured video {
  display: block;
  width: 100%;
  max-height: 60vh;
  aspect-ratio: 16 / 9;
  background: #18312c;
  object-fit: contain;
  border-radius: .8rem;
}
.player-message { margin: .65rem 0 0; font-size: .9rem; color: var(--muted); }
.camera-picker h3 { margin: .4rem .3rem .65rem; font-size: 1.1rem; }
.camera-picker ul { display: grid; gap: .32rem; }
.camera-picker button {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .36rem .45rem;
  border: 1px solid transparent;
  border-radius: .69rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.camera-picker button[aria-current="true"] { background: #e5eddb; border-color: #cbdcc9; }
.camera-picker button:hover { background: #edf1e4; }
.camera-picker button img {
  flex: none;
  width: 3.3rem;
  height: 2.4rem;
  object-fit: cover;
  background: var(--sage);
  border-radius: .34rem;
}
.camera-picker button span { display: grid; gap: .1rem; font-weight: 800; line-height: 1.12; font-size: .9rem; }

.footer { padding-block: 1.3rem 1.6rem; background: #e6eddd; }
.footer-brand { display: block; font: 780 1.3rem/1.18 var(--display); color: var(--forest); }
.footer-description { font-size: .83rem; color: var(--muted); }
.footer a { font-size: .875rem; font-weight: 800; text-underline-offset: .22rem; }

@media (max-width: 65rem) {
  .hero-wall img { object-position: 67% bottom; }
  .hero-copy { margin-inline-start: 0; }
  .hero h1 { font-size: clamp(3.4rem, 6.1vw, 4.55rem); }
  .camera-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 54rem) {
  body:has(.hero:not([hidden])) .topbar { position: relative; background: #f2e5d2; }
  .hero { min-height: auto; }
  .hero-wall { position: relative; }
  .hero-wall img {
    height: auto;
    max-height: min(48rem, 57vw);
    object-position: center 42%;
    mask-image: linear-gradient(transparent, #000 5% 84%, transparent);
  }
  .hero-inner {
    width: min(100% - 3rem, 30rem);
    padding-block: clamp(.55rem, 2vw, 1.4rem) 2.65rem;
  }
  .hero-copy { max-width: none; }
  .hero h1 { margin-bottom: .8rem; font-size: clamp(2.9rem, 9.5vw, 4.65rem); }
  .hero h1 br { display: none; }
  .hero-description { margin-bottom: 1.12rem; }
  .entry-form, .demo-access { max-width: none; }
}

@media (max-width: 46rem) {
  .shell { width: calc(100% - 2rem); }
  .topbar-inner { min-height: 4.55rem; }
  .topbar-inner:has(.owner-navigation:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; padding-block: .85rem .95rem; }
  .owner-navigation { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr 1.26fr; }
  .owner-navigation button { padding-inline: .4rem; font-size: .87rem; }
  .hero-wall img { max-height: min(28rem, 74vw); }
  .hero-inner { width: min(100% - 2rem, 30rem); }
  .camera-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .66rem; }
  .single-view { grid-template-columns: 1fr; }
  .camera-picker ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-layout { grid-template-columns: 1fr; }
  .registration-fields { grid-template-columns: 1fr; }
  .family-overview { grid-template-columns: 1fr; min-height: 0; border-radius: 1.35rem; }
  .family-welcome h1 { max-width: 18ch; }
  .owner-overview { align-items: start; flex-direction: column; border-radius: 1.4rem; }
  .owner-insights { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 31rem) {
  .shell { width: calc(100% - 1.65rem); }
  .brand { gap: .6rem; }
  .brand-caption { font-size: .7rem; }
  .nav-link { padding: .48rem .62rem; gap: .4rem; font-size: .87rem; }
  .viewer-heading { align-items: start; flex-direction: column; gap: .85rem; }
  .view-controls { display: flex; align-self: stretch; }
  .view-controls button { flex: 1; }
  .admin-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .camera { border-radius: .95rem; padding: .28rem; }
  .camera-image { border-radius: .71rem; }
  .camera-caption { padding: .56rem .4rem .5rem; }
  .expand { inset: auto .38rem .38rem auto; width: 1.65rem; height: 1.65rem; }
  .camera-picker button img { width: 2.55rem; height: 2rem; }
  .family-summary { grid-template-columns: auto minmax(0, 1fr); gap: .82rem; }
  .family-summary .nav-link { grid-column: 2; justify-self: start; }
  .family-access { grid-template-columns: auto minmax(0, 1fr); }
  .family-access .button { grid-column: 1 / -1; justify-content: center; }
  .registration-actions .button { width: 100%; justify-content: center; }
  .temporary-access { grid-template-columns: minmax(0, 1fr); }
  .temporary-access .nav-link { justify-self: start; }
  .owner-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 22rem) {
  .topbar-inner { gap: .75rem; }
  .brand-caption { display: none; }
  .hero h1 { font-size: 2.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .camera { transition: none; }
}
