@font-face {
  font-family: Inter;
  src: url('/assets/fonts/Inter-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/assets/fonts/Inter-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: InterDisplay;
  src: url('/assets/fonts/InterDisplay-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
/* AppTheme's seed-derived colors and surface blends, with local Inter fonts. */
:root {
  color-scheme: light dark;
  --page: #f4fbf8;
  --surface: #fff;
  --ink: #171d1b;
  --muted: #3f4946;
  --accent: #006b5e;
  --on-accent: #fff;
  --line: #bec9c5;
  --plane: #dbfaf4;
  --group: #d4e6e4;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e1513;
    --surface: #171d1b;
    --ink: #dde4e1;
    --muted: #bec9c5;
    --accent: #83d5c6;
    --on-accent: #003730;
    --line: rgba(63, 73, 70, .55);
    --plane: #0f2f2a;
    --group: #273933;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button, a { touch-action: manipulation; }
button { font: inherit; }
h1, h2, h3 { font-family: InterDisplay, Inter, sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0 16px; }
h2 { font-size: 1.3rem; margin: 28px 0 12px; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 24px; }
li { padding-left: 4px; margin: 8px 0; }
.header, main, footer { max-width: 1024px; margin: auto; padding-left: 32px; padding-right: 32px; }
.header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 48px; flex-shrink: 0; }
.brand img { display: block; border-radius: 12px; }
.wordmark { display: inline-flex; align-items: baseline; font-family: InterDisplay, Inter, sans-serif; font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: -.6px; }
.wordmark-cut { display: inline-grid; color: var(--accent); margin-left: -.055em; padding-bottom: .05em; }
.wordmark-cut span { grid-area: 1 / 1; }
.wordmark-cut span:first-child { clip-path: polygon(0 0, 100% 0, 100% 80.25%, 0 63.25%); }
.wordmark-cut span:last-child { clip-path: polygon(0 68.75%, 100% 85.75%, 100% 100%, 0 100%); transform: translateY(.045em); }
nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
nav a { font-size: .9375rem; display: inline-flex; min-height: 48px; align-items: center; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); text-decoration: underline; }
main { padding-top: 40px; padding-bottom: 56px; min-height: 60vh; }
.eyebrow { font-size: .875rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 58ch; }
.meta { color: var(--muted); font-size: .875rem; }
.home-intro { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--plane); }
.home-intro h1 { color: var(--accent); }
.home-intro .lead { margin-bottom: 0; }
.reading { max-width: 760px; margin: auto; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.reading > h2 { padding-top: 20px; border-top: 1px solid var(--line); }
.reading > h1 { color: var(--accent); }
.reading > :last-child { margin-bottom: 0; }
.notice { padding: 20px 24px; border-radius: 12px; background: var(--plane); margin: 24px 0; }
.notice p:last-child { margin-bottom: 0; }
.compact-list { margin: 16px 0; }
.contact-panel { padding: 24px; border-radius: 12px; background: var(--group); margin-top: 28px; }
.contact-panel h2 { margin-top: 0; }
.contact-panel .meta { margin: 16px 0 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.card { display: block; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.card h2 { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.card span { color: var(--accent); }
.card:hover { border-color: var(--accent); background: var(--plane); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--accent); border-radius: 12px; padding: 12px 24px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.button:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 24px 0 16px; }
.actions > a { min-height: 48px; display: inline-flex; align-items: center; }
.related-links { display: grid; margin-top: 24px; }
.related-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; border-top: 1px solid var(--line); }
.status { max-width: 680px; margin: 24px auto; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.status-mark { display: grid; place-items: center; width: 64px; height: 64px; background: var(--plane); border-radius: 16px; color: var(--accent); font-size: 1.8rem; margin: 0 0 24px; }
.status h1 { color: var(--accent); }
[hidden] { display: none !important; }
footer { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 32px; }
footer p { font-size: .875rem; color: var(--muted); margin: 8px 0; }
footer .wordmark { font-size: 1.375rem; }
footer .brand img { width: 36px; height: 36px; border-radius: 9px; }
.draft { background: var(--group); color: var(--muted); padding: 10px 24px; font-size: .875rem; text-align: center; border-bottom: 1px solid var(--line); }
.skip { position: absolute; left: 20px; top: -100px; background: var(--surface); padding: 12px; z-index: 2; }
.skip:focus { top: 10px; }
:target { scroll-margin-top: 24px; }
@media (max-width: 600px) {
  .header, main, footer { padding-left: 20px; padding-right: 20px; }
  .header { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 20px; padding-bottom: 8px; }
  .header nav { gap: 24px; }
  main { padding-top: 24px; padding-bottom: 32px; }
  .home-intro, .reading, .status { padding: 24px 20px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .notice, .contact-panel { padding: 20px; }
  .status { margin-top: 0; }
  .actions { align-items: stretch; flex-direction: column; }
}
@media print {
  :root { color-scheme: light; --page: #fff; --surface: #fff; --ink: #171d1b; --muted: #3f4946; --accent: #006b5e; --line: #bec9c5; --plane: #f4fbf8; --group: #f4fbf8; }
  .draft, .header nav, footer nav, .actions { display: none; }
  main { padding-top: 20px; }
  .reading, .status { border: 0; padding: 0; }
  .header { min-height: 64px; }
  h1 { font-size: 2rem; }
  .notice, .contact-panel { break-inside: avoid; }
}
