@font-face {
  font-family: Inter;
  src: url('/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/inter-pl.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #fff;
  --ink: #17191f;
  --sub: #515665;
  --line: #dcdfe2;
  --accent: #264cdb;
  --accent-bg: #eaf0ff;
  --primary: #1b1f2a;
  --primary-ink: #fff;
  --error: #922d2d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15171c; --surface: #1d2027; --ink: #f2f3f6; --sub: #b0b7c6;
    --line: #363d4b; --accent: #a3b7ff; --accent-bg: #263354;
    --primary: #e1e8ff; --primary-ink: #111a31; --error: #ffa2a2;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15171c; --surface: #1d2027; --ink: #f2f3f6; --sub: #b0b7c6;
  --line: #363d4b; --accent: #a3b7ff; --accent-bg: #263354;
  --primary: #e1e8ff; --primary-ink: #111a31; --error: #ffa2a2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 Inter, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
.wrap { width: min(100% - 2.5rem, 75rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; gap: 1.25rem; align-items: center; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; font-weight: 850; letter-spacing: -.065em; font-size: 1.28rem; }
.brand-mark {
  width: 1.45rem; height: 1.45rem; border: 1.4px solid currentColor;
  border-radius: 50%; margin-right: .55rem; position: relative; display: inline-block;
}
.brand-mark::before {
  content: ''; position: absolute; width: 1.63rem; height: .5rem; border: 1.3px solid currentColor;
  border-radius: 50%; transform: rotate(-36deg); top: .39rem; left: -.18rem;
}
.brand-dot { color: var(--accent); }
.bar nav { display: flex; gap: clamp(.65rem, 3vw, 2.2rem); margin-left: auto; align-items: center; }
.bar nav a { color: var(--sub); font-size: .86rem; white-space: nowrap; font-weight: 590; padding-block: .45rem; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--accent); }
.theme { border: 1px solid var(--line); border-radius: 50%; width: 2.4rem; aspect-ratio: 1; color: var(--ink); background: transparent; flex-shrink: 0; }
.theme:hover { background: var(--accent-bg); }
.skip { position: absolute; left: 1rem; top: -10rem; background: var(--surface); padding: .75rem; z-index: 2; }
.skip:focus { top: 1rem; }
main { flex: 1; padding-bottom: 5rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(2.25rem, 5vw, 4.65rem); }
.hero-copy { container-type: inline-size; }
.hero h1 { font-size: clamp(2.45rem, 12.45cqi, 4.85rem); font-weight: 755; letter-spacing: -.083em; line-height: 1.025; overflow-wrap: anywhere; }
.hero h1 em { color: var(--accent); font-style: normal; }
.eyebrow, .category {
  color: var(--accent); font-size: .72rem; font-weight: 730;
  letter-spacing: .09em; text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.eyebrow span { width: .48rem; height: .48rem; background: var(--accent); border-radius: 50%; }
.lead { color: var(--sub); max-width: 37rem; font-size: clamp(1rem, 1.4vw, 1.17rem); line-height: 1.65; margin-top: 1.2rem; }
.hero .lead { max-width: 29rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem; margin-top: 1.7rem; }
.button, .text-link { display: inline-flex; align-items: center; gap: .6rem; font-size: .87rem; font-weight: 650; }
.button { align-self: start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: .7rem 1rem; border-radius: .45rem; }
.button:hover { border-color: var(--accent); }
.button:disabled { opacity: .6; cursor: default; }
.button.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.text-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .23em; }
.hero-art {
  isolation: isolate; position: relative; aspect-ratio: 1.13; overflow: hidden; border-radius: .72rem;
  background: #0a0f21 radial-gradient(ellipse at 50% 48%, #273c6f, #0c1228 45%, #070b18 75%);
}
.hero-art::before {
  content: ''; position: absolute; inset: 0;
  background: center / cover no-repeat url('/pluto.jpg');
  mask-image: radial-gradient(ellipse at center, #000 39%, transparent 83%);
}
.orbit { position: absolute; border: 1px solid #b0bdf04a; border-radius: 50%; aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -50%; }
.orbit-outer { width: 79%; }
.orbit-inner { width: 64%; border-style: dashed; opacity: .52; }
.orbit-dot { position: absolute; top: 24%; left: 21%; width: .48rem; aspect-ratio: 1; border-radius: 50%; background: #a8bbff; box-shadow: 0 0 .8rem #9bb0ff; }
.cross { position: absolute; width: 11px; height: 11px; opacity: .56; background: linear-gradient(#abbcff, #abbcff) center / 1px 100% no-repeat, linear-gradient(#abbcff, #abbcff) center / 100% 1px no-repeat; }
.cross-left { bottom: 11%; left: 8%; }
.cross-right { top: 11%; right: 8%; }
.section-block { border-top: 1px solid var(--line); margin-top: 2.6rem; padding-top: 1.65rem; }
.hero + .section-block { margin-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.15rem; }
h2 { font-weight: 720; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.055em; }
.section-heading .text-link { color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.project-card {
  display: flex; flex-direction: column; padding: 1.1rem 1.2rem 1.3rem;
  border: 1px solid var(--line); border-radius: .65rem; min-height: 10.55rem; background: var(--surface);
  overflow-wrap: anywhere;
}
.project-card:hover { border-color: var(--accent); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .85rem; }
.project-icon { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; color: var(--accent); background: var(--accent-bg); border-radius: .48rem; }
.card-arrow { color: var(--sub); font-size: 1.05rem; }
.project-card:hover .card-arrow { color: var(--accent); }
.project-card h3 { font-size: 1.16rem; letter-spacing: -.035em; margin-top: .27rem; }
.project-card p { font-size: .85rem; color: var(--sub); margin-top: .45rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--sub); }
.footer-inner { min-height: 5rem; display: flex; align-items: center; gap: 1rem; font-size: .82rem; }
.footer-inner .brand { color: var(--ink); }
.footer-inner > a:last-child { margin-left: auto; }
.footer-inner > a:last-child:hover { color: var(--accent); }
.page-heading { margin: clamp(2.5rem, 6vw, 4.5rem) 0 1.6rem; overflow-wrap: anywhere; }
.page-heading h1 { font-size: clamp(2.45rem, 6vw, 4.5rem); letter-spacing: -.08em; font-weight: 755; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.filter { border: 1px solid var(--line); border-radius: 2rem; padding: .42rem .85rem; font-size: .84rem; }
.filter[aria-current], .filter:hover { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.back { margin-top: 2rem; color: var(--accent); }
.back + .page-heading, .back + .article { margin-top: 1.3rem; }
.project-heading .category { margin-block: .8rem .5rem; }
.project-heading .button { margin-top: 1rem; }
.project-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr); gap: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.project-detail aside { align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: 1.15rem; overflow-wrap: anywhere; }
.project-detail dt { font-size: .78rem; color: var(--sub); }
.project-detail dd { margin-block: .18rem .8rem; font-weight: 640; }
.project-detail dd:last-child { margin-bottom: 0; }
.prose { max-width: 43rem; color: var(--sub); overflow-wrap: anywhere; }
.prose h2 { color: var(--ink); margin-block: 1.6rem .65rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.article-body { margin-block: 1.4rem 2rem; }
.article .page-heading { margin-top: .5rem; }
.empty { padding: 1.1rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--sub); }
.entry-list, .admin-list { list-style: none; margin: 0; padding: 0; }
.entry-list li, .admin-list li { border-top: 1px solid var(--line); }
.entry-list li:last-child, .admin-list li:last-child { border-bottom: 1px solid var(--line); }
.entry-list a { display: grid; grid-template-columns: minmax(7.5rem, 1fr) 4fr auto; gap: 1rem; padding: 1rem .25rem; align-items: center; }
.entry-list a:hover strong, .admin-list a:hover { color: var(--accent); text-decoration: underline; }
.entry-main { display: grid; overflow-wrap: anywhere; }
.entry-list time, .entry-main > span, .admin-list span { font-size: .82rem; color: var(--sub); }
.journal-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.journal-filter select { width: auto; max-width: 100%; }
.admin { max-width: 64rem; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-heading .page-heading { margin-bottom: 0; }
.admin-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
.admin-grid h2, .admin .section-block h2 { margin-bottom: 1rem; }
.admin-list { margin-top: 1rem; }
.admin-list li { padding: .75rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; overflow-wrap: anywhere; }
.form { max-width: 45rem; display: grid; gap: 1rem; }
.form.narrow { max-width: 25rem; }
.form label { display: grid; gap: .32rem; font-weight: 610; font-size: .88rem; }
input, textarea, select { display: block; width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: .4rem; padding: .65rem; }
textarea { min-height: 6rem; resize: vertical; }
.form .button { justify-self: start; }
.muted { color: var(--sub); }
.button + .muted { margin-top: .75rem; }
.feedback { margin-bottom: 1rem; padding: .75rem 1rem; border-radius: .4rem; background: var(--accent-bg); }
.feedback.error { color: var(--error); border: 1px solid currentColor; background: var(--surface); }
.feedback a { text-decoration: underline; }
.publish-box { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.publish-box h2 { margin-bottom: 1rem; }
.publish-box summary { font-weight: 650; cursor: pointer; }
.publish-box summary + form { margin-top: 1rem; }
.form .checkbox { display: flex; align-items: baseline; gap: .6rem; }
.checkbox input { flex: none; width: 1rem; height: 1rem; accent-color: var(--accent); }

@media (max-width: 56rem) {
  .hero { gap: 1.8rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2rem); }
  .bar { min-height: 4rem; gap: .65rem; flex-wrap: wrap; }
  .hero, .project-detail, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.15rem, 12.3cqi, 4.1rem); }
  .hero-art { aspect-ratio: 1.4; }
  .hero { padding-bottom: 2rem; }
  .entry-list a { grid-template-columns: 1fr auto; gap: .35rem .6rem; }
  .entry-list time { grid-column: 1 / -1; }
}
@media (max-width: 26rem) {
  .bar nav { order: 3; width: 100%; justify-content: space-between; padding-bottom: .45rem; }
  .bar .theme { margin-left: auto; }
  .bar > .brand, .bar > .theme { margin-top: .6rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card { min-height: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
}
