:root {
  --panel: #0e1c18;
  --mint: #c8f5c0;
  --paper: #f7f4ee;
  --ink: #161513;
  --muted: #6a675f;
  --line: #ddd8ce;
  --max: 38rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

.draft-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-switch a {
  color: #b7c4bc;
  text-decoration: none;
}

.draft-switch a.is-on,
.draft-switch a:hover {
  color: var(--mint);
}

.shell {
  display: grid;
}

.panel {
  background: var(--panel);
  color: #eef6f1;
  padding: 1rem 1.1rem 1.4rem;
}

.panel__brand {
  display: block;
  margin: 1rem 0 0.3rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #fff;
}

.panel p {
  margin: 0 0 1rem;
  color: #b7c4bc;
  max-width: 22rem;
}

.next {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
}

.next small {
  display: block;
  color: var(--mint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 0.35rem;
}

.nav-toggle {
  margin-top: 0.8rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--mint);
}

.main {
  padding: 1.2rem 1.1rem 2.4rem;
}

.item {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.item:hover .item__title {
  text-decoration: underline;
}

.kicker {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item__title,
.page h1,
.article h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.item__title {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.item p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.page,
.article {
  max-width: var(--max);
}

.page h1,
.article h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 0.6rem;
}

.lede {
  color: var(--muted);
}

.list a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.back {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.site-footer {
  padding-top: 1.2rem;
  color: #8aa095;
  font-size: 0.8rem;
}

.site-footer a {
  color: #d5e4da;
}

@media (min-width: 900px) {
  .shell {
    grid-template-columns: minmax(16rem, 32vw) minmax(0, 1fr);
    min-height: 100svh;
  }

  .panel {
    position: sticky;
    top: 0;
    height: 100svh;
    padding: 1.4rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    margin-top: auto;
  }

  .main {
    padding: 2.2rem 8vw 4rem;
  }
}
