:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #222222;
  --quiet: #737373;
  --hover: #000000;
  --select: #dddddd;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; position: relative; }
main { width: calc(100% - 88px); margin: 44px 44px 0; }
header { display: flex; align-items: flex-start; gap: 28px; }
.heading-copy { flex: 1; min-width: 0; }
.portrait {
  position: static;
  width: 240px;
  flex-shrink: 0;
  height: auto;
  display: block;
  z-index: 3;
}
h1, h2, p, ul { margin: 0; }
h1, h2 { font-size: .875rem; font-weight: 600; line-height: 1.65; }
h1 { margin-bottom: 22px; }
.theme-toggle {
  appearance: none;
  display: inline-block;
  margin-left: 3px;
  padding: 0;
  border: 0;
  background: none;
  font-family: Arial, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1;
  color: inherit;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--hover); }
.expand > summary {
  cursor: pointer;
  list-style: none;
}
.expand > summary::-webkit-details-marker { display: none; }
.expand > summary::after {
  content: "›";
  display: inline-block;
  margin-left: 6px;
  color: var(--quiet);
}
.expand[open] > summary::after { content: "˅"; }
.expand ul { margin-top: 4px; }
p, li { font-size: .875rem; line-height: 1.7; }
section { margin-top: 20px; }
h2 { margin-bottom: 7px; }
ul { padding-left: 20px; list-style-type: "·  "; }
li { padding-left: 2px; }
li + li { margin-top: 4px; }
.category {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: #aaaaaa;
}
.aside { color: var(--quiet); }
.signoff { margin-top: 24px; }
.contact { margin-top: 8px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: #aaaaaa; }
a:hover { color: var(--hover); text-decoration-color: currentColor; }
a:focus-visible, .theme-toggle:focus-visible, .expand > summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
  border-radius: 1px;
}
::selection { background: var(--select); }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111111;
  --ink: #ededed;
  --quiet: #9a9a9a;
  --hover: #ffffff;
  --select: #333333;
}
:root[data-theme="dark"] .skyline,
:root[data-theme="dark"] .sun,
:root[data-theme="dark"] .portrait { filter: invert(1); }
.horizon { margin-top: auto; padding: 36px 0 0; width: 100%; overflow: hidden; }
.sky { position: relative; width: min(calc(100% - 64px), 1000px); aspect-ratio: 3 / 1; margin-inline: auto; overflow: hidden; background: var(--paper); }
.skyline { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; z-index: 2; }
.sun { position: absolute; z-index: 1; left: var(--sun-x, 50%); top: var(--sun-y, 20%); width: clamp(30px, 3.75vw, 50px); height: auto; transform: translate(-50%, -50%); opacity: var(--sun-opacity, 1); }
[hidden] { display: none !important; }
.local-time { display: flex; gap: 10px; justify-content: center; margin: 0 0 8px; font-size: .75rem; line-height: 1.5; color: var(--quiet); }
.local-time time:empty { display: none; }
.local-time time:not(:empty)::after { content: " ·"; padding-left: 10px; }
.no-script { text-align: center; font-size: .75rem; padding: 0 24px 20px; }
@media (min-width: 1000px) {
  header { position: relative; padding-right: 284px; }
  .portrait { position: absolute; top: 0; right: 16px; }
}
@media (min-width: 1500px) { main { width: calc(100% - 104px); margin: 52px 52px 0; } }
@media (max-width: 600px) {
  main { width: auto; margin: 32px 32px 0; }
  header { gap: 16px; }
  .portrait { width: 100px; }
  h1 { margin-bottom: 22px; }
  section { margin-top: 20px; }
  .horizon { padding: 32px 0 0; }
  .sky { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: no-preference) {
  .sky[data-ready="true"] .sun { transition: left 1s linear, top 1s linear, opacity 1s linear; }
}
@media print { .horizon { break-inside: avoid; } main { margin: 24px; } }
