
:root {
  color-scheme: light;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --ink: #24342c;
  --muted: #6d766f;
  --sage: #7f9c83;
  --sage-deep: #3d624b;
  --sage-soft: #e4ece2;
  --coral: #c96e5b;
  --coral-soft: #f5ded6;
  --gold: #b98b43;
  --line: rgba(36, 52, 44, .14);
  --shadow: 0 18px 50px rgba(62, 67, 49, .10);
  --shadow-soft: 0 12px 30px rgba(62, 67, 49, .08);
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); }
button, input, select { font: inherit; }
button, select, input { min-height: 48px; }
button { cursor: pointer; }
a { color: var(--sage-deep); text-underline-offset: 3px; }
.orbit-shell { width: min(100%, 1180px); margin: 0 auto; padding: 18px 16px 72px; }
.page-nav { display:flex; gap:8px; overflow-x:auto; padding:2px 0 16px; margin-bottom:8px; scrollbar-width:thin; }
.nav-chip { flex:0 0 auto; display:inline-flex; align-items:center; min-height:38px; padding:7px 12px; border:1px solid var(--line); border-radius:999px; background:rgba(255,253,248,.75); color:var(--muted); font-size:.76rem; font-weight:750; text-decoration:none; }
.nav-chip.active { border-color:var(--sage-deep); background:var(--sage-deep); color:white; }
.orbit-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.orbit-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
.orbit-mark { position: relative; width: 28px; height: 28px; border: 1.5px solid var(--sage-deep); border-radius: 50%; }
.orbit-mark::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--coral); }
.orbit-mark::after { content: ""; position: absolute; width: 6px; height: 6px; top: -3px; left: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--cream); }
.identity-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 8px 7px 12px; color: var(--muted); background: rgba(255,253,248,.72); font-size: .82rem; }
.identity-pill form { margin: 0; }
.text-button { border: 0; min-height: 34px; border-radius: 999px; padding: 6px 10px; background: var(--ink); color: white; font-size: .78rem; font-weight: 700; }
.local-preview { margin: -12px 0 20px; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(255,253,248,.68); color: var(--muted); font-size: .88rem; }
.orbit-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 30px 24px; background: var(--ink); color: white; box-shadow: var(--shadow); }
.orbit-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -105px; top: -125px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.05), 0 0 0 72px rgba(255,255,255,.035); }
.eyebrow { margin: 0 0 12px; color: #c8dacb; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { position: relative; z-index: 1; max-width: 720px; margin-bottom: 14px; font-size: clamp(2.35rem, 12vw, 5.9rem); line-height: .92; letter-spacing: -.055em; }
.orbit-hero p:last-child { position: relative; z-index: 1; max-width: 650px; margin: 0; color: #dfe7e0; }
.section { margin-top: 54px; }
.section-heading { display: grid; gap: 7px; margin-bottom: 20px; }
.section-kicker { color: var(--coral); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.section h2 { margin-bottom: 0; font-size: clamp(2rem, 9vw, 3.7rem); line-height: 1; letter-spacing: -.045em; }
.section-intro { max-width: 700px; margin: 0; color: var(--muted); }
.day-grid { display: grid; gap: 14px; }
.day-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.82); }
.day-card:first-child { border-color: rgba(201,110,91,.38); background: var(--paper); box-shadow: var(--shadow); }
.day-date { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.day-date h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
.day-date time { color: var(--muted); font-size: .78rem; }
.update-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.update-item { display: grid; grid-template-columns: 9px 1fr; gap: 12px; }
.update-dot { width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.update-item p { margin: 0 0 4px; }
.update-meta { color: var(--muted); font-size: .75rem; font-weight: 700; }
.quiet-day { margin: 0; color: var(--muted); font-family: var(--serif); font-style: italic; }
.section-disclosure { border: 1px solid var(--line); border-radius: 24px; background: rgba(255,253,248,.64); box-shadow: var(--shadow-soft); }
.section-disclosure > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; min-height: 104px; padding: 20px; border-radius: inherit; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.section-disclosure > summary::-webkit-details-marker { display: none; }
.section-disclosure > summary:focus-visible { outline: 3px solid rgba(61,98,75,.24); outline-offset: 3px; }
.section-disclosure > summary .section-heading { margin: 0; }
.disclosure-control { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: white; transition: transform .28s ease, background .28s ease; }
.disclosure-control::before, .disclosure-control::after { content: ""; position: absolute; width: 14px; height: 2px; border-radius: 999px; background: currentColor; }
.disclosure-control::after { transform: rotate(90deg); transition: transform .28s ease; }
.section-disclosure[open] > summary .disclosure-control { transform: rotate(180deg); background: var(--coral); }
.section-disclosure[open] > summary .disclosure-control::after { transform: rotate(0); }
.section-disclosure-body { padding: 4px 20px 22px; animation: orbit-reveal .3s ease both; }
.disclosure-meta { display: inline-flex; width: fit-content; align-items: center; gap: 7px; margin-top: 5px; color: var(--sage-deep); font-size: .76rem; font-weight: 800; }
.disclosure-meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(185,139,67,.13); }
.photo-grid { display: grid; gap: 14px; }
.photo-card { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); }
.photo-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage-soft); }
.photo-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s cubic-bezier(.2,.75,.25,1); }
.photo-card:hover .photo-frame img { transform: scale(1.025); }
.photo-caption { padding: 16px; }
.photo-caption p { margin: 0 0 5px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; }
.photo-caption time { color: var(--muted); font-size: .74rem; font-weight: 750; }
.pattern-panel { padding: 20px; border-radius: 22px; background: var(--sage-soft); }
.pattern-panel h3 { margin-bottom: 4px; font-family: var(--serif); font-size: 1.35rem; }
.pattern-list { display: grid; gap: 12px; margin-top: 20px; }
.pattern-row { display: grid; grid-template-columns: 70px minmax(0,1fr) 28px; align-items: center; gap: 10px; font-size: .78rem; }
.pattern-track { width: 100%; height: 11px; overflow: hidden; border: 0; border-radius: 999px; background: rgba(61,98,75,.13); appearance: none; }
.pattern-track::-webkit-progress-bar { border-radius: 999px; background: rgba(61,98,75,.13); }
.pattern-track::-webkit-progress-value { min-width: 8px; border-radius: 999px; background: var(--sage-deep); }
.pattern-track::-moz-progress-bar { min-width: 8px; border-radius: 999px; background: var(--sage-deep); }
.pattern-row strong { text-align: right; }
.timeline { position: relative; list-style: none; margin: 26px 0 0; padding: 0 0 0 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 7px; bottom: 8px; width: 1px; background: var(--line); }
.incident { position: relative; padding: 0 0 24px; }
.incident::before { content: ""; position: absolute; width: 11px; height: 11px; left: -24px; top: 7px; border: 3px solid var(--cream); border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.incident-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.incident h3 { margin-bottom: 5px; font-family: var(--serif); font-size: 1.35rem; }
.incident-date { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.incident-summary { margin: 0 0 10px; }
.incident details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,248,.7); }
.incident summary { min-height: 46px; display: flex; align-items: center; padding: 10px 14px; color: var(--sage-deep); font-size: .82rem; font-weight: 800; cursor: pointer; }
.incident-details { padding: 0 14px 14px; }
.incident-details dl { display: grid; gap: 9px; margin: 0; }
.incident-details div { display: grid; gap: 2px; }
.incident-details dt { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.incident-details dd { margin: 0; }
.timeline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 0 26px; }
.view-more-button { position: relative; overflow: hidden; min-height: 48px; border: 1px solid var(--sage-deep); border-radius: 999px; padding: 10px 18px; background: var(--sage-deep); color: white; font-size: .82rem; font-weight: 850; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.view-more-button::after { content: ""; position: absolute; width: 36px; height: 100%; top: 0; left: -55px; transform: skewX(-20deg); background: rgba(255,255,255,.16); transition: left .45s ease; }
.view-more-button:hover { transform: translateY(-1px); background: var(--ink); box-shadow: 0 8px 20px rgba(36,52,44,.16); }
.view-more-button:hover::after { left: calc(100% + 20px); }
.view-more-button .when-expanded { display: none; }
.view-more-button[aria-expanded="true"] .when-collapsed { display: none; }
.view-more-button[aria-expanded="true"] .when-expanded { display: inline; }
.timeline-count { margin: 0; color: var(--muted); font-size: .76rem; }
.profile-grid { display: grid; gap: 14px; }
.profile-card { padding: 21px; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); }
.profile-card h3 { margin-bottom: 17px; font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.02em; }
.profile-group + .profile-group { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-group h4 { margin: 0 0 10px; color: var(--coral); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; }
.profile-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.profile-list strong { display: block; margin-bottom: 2px; color: var(--sage-deep); font-size: .78rem; }
.profile-list p { margin: 0; }
.profile-list ul { margin: 7px 0 0; padding-left: 20px; color: var(--muted); }
.orbit-footer { margin-top: 58px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 18px; background: var(--cream); }
.unlock-shell { width: min(100%, 440px); }
.unlock-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.unlock-card { position: relative; overflow: hidden; padding: 27px 22px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.unlock-card::before { content: ""; position: absolute; width: 160px; height: 160px; right: -92px; top: -92px; border: 1px solid var(--sage); border-radius: 50%; box-shadow: 0 0 0 24px rgba(127,156,131,.09); }
.unlock-card h1 { color: var(--ink); font-size: 2.65rem; }
.unlock-card > p { color: var(--muted); }
.unlock-form { display: grid; gap: 15px; margin-top: 24px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .78rem; font-weight: 800; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; background: white; color: var(--ink); outline: none; }
.field input:focus, .field select:focus { border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(61,98,75,.12); }
.field small { color: var(--muted); font-size: .73rem; }
.unlock-button { border: 0; border-radius: 14px; padding: 12px 16px; background: var(--ink); color: white; font-weight: 850; }
.unlock-button:hover { background: var(--sage-deep); }
.unlock-button:disabled { cursor: not-allowed; opacity: .48; }
.unlock-error { margin: 0; padding: 11px 13px; border-radius: 12px; background: var(--coral-soft); color: #7c3024 !important; font-size: .84rem; }
.privacy-note { margin: 16px 3px 0; color: var(--muted); font-size: .72rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 620px) {
  .orbit-shell { padding: 26px 28px 90px; }
  .orbit-hero { padding: 52px 46px; }
  .day-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .section-disclosure > summary { padding: 24px 26px; }
  .section-disclosure-body { padding: 4px 26px 28px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-card:first-child, .profile-card:nth-child(5n) { grid-column: span 2; }
  .incident-details dl { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 900px) {
  .orbit-shell { padding-inline: 40px; }
  .section { margin-top: 78px; }
  .incidents-layout { display: grid; grid-template-columns: minmax(270px,.72fr) minmax(0,1.55fr); gap: 46px; align-items: start; }
  .pattern-panel { position: sticky; top: 20px; }
  .profile-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .profile-card:first-child, .profile-card:nth-child(5n) { grid-column: span 1; }
  .profile-card:nth-child(4n) { grid-column: span 2; }
}
@keyframes orbit-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
