:root {
  --ground: #15181B;
  --ivory: #F1EEE6;
  --ivory-dim: #B9B6AE;
  --copper: #CF8048;
  --copper-sheen: linear-gradient(180deg, #F6C7A3 0%, #CF8048 30%, #7C4020 55%, #DE9763 72%, #A85C30 100%);
  --field: #1E2226;
  --field-edge: #4A4F55;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ivory);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
a { color: #DE9763; }
a:hover { color: #F6C7A3; }
a:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 2px; }

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; font-size: 19px; letter-spacing: 0.03em; }
.brand svg { width: 30px; height: 30px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--ivory); text-decoration: none; font-size: 16px; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--copper); color: var(--ivory); }
.nav ul a[aria-current="page"] { border-bottom-color: var(--copper); }

/* Home */
.home {
  flex: 1;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Writing index and posts */
.page { flex: 1; width: 100%; max-width: 700px; margin: 0 auto; padding: 40px 24px 88px; }
.page h1 { margin: 0; text-align: left; }
.lede { margin: 14px 0 0; color: var(--ivory-dim); }
.posts { list-style: none; margin: 40px 0 0; padding: 0; }
.posts li { padding: 26px 0; border-top: 1px solid #33383D; }
.posts li:last-child { border-bottom: 1px solid #33383D; }
.posts a { font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; font-size: 26px; line-height: 1.2; text-decoration: none; color: var(--ivory); }
.posts a:hover { color: #DE9763; }
.posts p { margin: 8px 0 0; color: var(--ivory-dim); }
.meta { margin: 12px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: var(--ivory-dim); }
article p, article li { font-size: 19px; line-height: 1.65; }
article p { margin: 22px 0 0; }
article .meta + p { margin-top: 34px; }
article ul { margin: 22px 0 0; padding-left: 22px; }
article li { margin-top: 10px; }
article li::marker { color: var(--copper); }
.back { display: inline-block; margin-top: 48px; }

/* Logo: everything sized in em so it scales as one piece */
.logo {
  font-size: clamp(52px, 13.5vw, 132px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.04em;
  margin: 0;
}
.logo svg { width: 1.55em; height: 1.55em; flex: none; }
.logo-words { display: flex; flex-direction: column; gap: 0.11em; }
.logo-name {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 1em;
  line-height: 0.82;
  letter-spacing: -0.02em;
  background: var(--copper-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-tag { display: flex; align-items: center; gap: 0.12em; }
.logo-tag::before { content: ""; flex: 1; height: 0.028em; min-height: 2px; background: var(--ivory); }
.logo-tag span {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.23em;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
}

.soon {
  margin: 44px 0 0;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--copper);
}
h1 {
  margin: 14px 0 0;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  text-wrap: balance;
}
.about { margin: 20px 0 0; max-width: 34em; color: var(--ivory-dim); }

/* One moment of motion: the power stroke switches on */
.power { transform-origin: 0 2px; animation: power-on 900ms 300ms ease-out both; }
@keyframes power-on { from { transform: scaleY(0); opacity: 0.2; } to { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .power { animation: none; } }
