:root {
  color-scheme: dark;
  --night: #1b1b1b;
  --chalk: #e8e7e3;
  --ash: #a3a29d;
  --smoke: #8a8984;
  --line: #2c2c2a;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font: 17px/28px var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; border-radius: 4px; }

.top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; padding: 20px 24px; }
.top .pill { margin-left: auto; }
.home { font: 500 14px/20px var(--sans); color: var(--ash); text-decoration: none; }
.home:hover { color: var(--chalk); }
.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chalk);
  color: var(--night);
  font: 500 14px/20px var(--sans);
  text-decoration: none;
}

.opening {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.opening h1 { margin: 0; font: 700 112px/1 var(--sans); letter-spacing: -0.045em; }
.opening .head { gap: 14px; justify-content: center; }
.opening .sense { font-size: 17px; line-height: 26px; }
.cue {
  position: absolute;
  bottom: 40px;
  font-size: 15px;
  line-height: 22px;
  color: var(--smoke);
  text-decoration: none;
}
.cue:hover { color: var(--chalk); }

.head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.head strong { font: 700 30px/36px var(--sans); letter-spacing: -0.02em; }
.say { font: 17px/26px var(--serif); color: var(--ash); }
.head em { font: italic 17px/26px var(--serif); color: var(--ash); }
.from { font-size: 14px; line-height: 26px; color: var(--smoke); }
.sense { margin: 0; color: var(--ash); }
.senses { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 17px; line-height: 26px; }
.senses li { display: flex; gap: 10px; color: var(--ash); }
.senses b { flex: none; width: 20px; font-weight: 700; color: var(--chalk); }
.senses li:last-child span { color: var(--chalk); }
.opening .senses { max-width: 560px; text-align: left; }

.entries { max-width: 720px; margin: 0 auto; padding: 40px 16px 0; }
.entries article { display: flex; flex-direction: column; gap: 10px; padding: 44px 0; border-top: 1px solid var(--line); }
.links { margin: 8px 0 0; display: flex; gap: 20px; font-size: 15px; line-height: 22px; }
.links a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--smoke); text-underline-offset: 4px; }
.links a:hover { text-decoration-color: var(--chalk); }
.links a.quiet { font-weight: 400; color: var(--ash); text-decoration: none; }
.links a.quiet:hover { color: var(--chalk); }

.made { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; line-height: 22px; color: var(--ash); }
.made em { font: italic 15px/22px var(--serif); color: var(--smoke); }
.maker { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ash); }
.maker:hover { color: var(--chalk); }
.maker img { width: 20px; height: 20px; border-radius: 50%; background: var(--line); }
.section { margin: 0; padding: 72px 0 16px; font: italic 400 17px/26px var(--serif); color: var(--smoke); }
.people .head strong { font-size: 26px; line-height: 32px; }
.senses a { color: var(--chalk); text-decoration: underline; text-decoration-color: var(--smoke); text-underline-offset: 4px; }

.repos { margin: 0; padding: 0 0 8px; list-style: none; display: flex; flex-direction: column; }
.repos li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.repos li:last-child { border-bottom: 1px solid var(--line); }
.repos a { font-weight: 700; font-size: 18px; text-decoration: none; }
.repos a:hover { text-decoration: underline; text-decoration-color: var(--smoke); text-underline-offset: 4px; }
.repos em { font: italic 16px/26px var(--serif); color: var(--ash); }
.repos span { font-size: 14px; color: var(--smoke); }
.repos p { flex-basis: 100%; margin: 0; color: var(--ash); }
.writing .links { padding: 4px 0 8px; }

.foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 64px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 22px;
  color: var(--smoke);
}
.entries + .foot { border-top: 0; }
.entries article:last-child { border-bottom: 1px solid var(--line); }
.foot p { margin: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--chalk); }

@media (max-width: 600px) {
  .opening h1 { font-size: 72px; }
  .entries article { padding: 32px 0; }
  .head strong { font-size: 26px; line-height: 32px; }
}

.opening h1 { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .opening h1 { animation: write 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both; }
  .opening h1::after {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 4%;
    width: 4px;
    border-radius: 2px;
    background: var(--chalk);
    transform: translateX(-100%);
    animation: pen 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both, lift 0.4s ease 1.75s forwards;
  }
  .opening .head, .opening .senses { animation: appear 0.6s ease 1.6s both; }
  .opening .cue { animation: appear 0.6s ease 2.1s both; }
}

@keyframes write { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% 0 -10% 0); } }
@keyframes pen { from { left: 0; } to { left: 100%; } }
@keyframes lift { to { opacity: 0; } }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
