:root {
  --paper: #f4ecdc;
  --paper-2: #efe4d0;
  --ink: #241c16;
  --ink-soft: #5c4e40;
  --rule: #d7c7ae;
  --wax: #7a2e2a;
  --wax-hover: #5e201d;
  --locked: #b7a894;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, #fbf6ea 0%, transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.frame {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 4rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.4rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mark img { width: 28px; height: 28px; }

nav { display: flex; align-items: center; gap: 1.1rem; }
nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover { color: var(--ink); }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wax);
  margin: 0 0 0.8rem;
}

h1, h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.65rem);
  line-height: 1.14;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 2.5rem 0 0.9rem;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1.4rem;
}
.lede em { font-family: "Source Serif 4", Georgia, serif; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2.4rem;
}

.btn {
  appearance: none;
  border: 0;
  background: var(--wax);
  color: #fbf6ea;
  font: inherit;
  font-weight: 600;
  padding: 0.72rem 1.18rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background-color 140ms ease;
}
.btn:hover { background: var(--wax-hover); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.35);
}

.excerpt {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.14rem;
  line-height: 1.72;
  padding: 1.35rem 1.4rem;
  background: var(--paper-2);
  border-left: 3px solid var(--wax);
  border-radius: 0 0.6rem 0.6rem 0;
  margin: 0 0 2.2rem;
}
.excerpt p { margin: 0 0 0.9rem; }
.excerpt p:last-child { margin-bottom: 0; }
.excerpt .lock {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}

.principles {
  display: grid;
  gap: 1.1rem;
  margin: 1rem 0 2.2rem;
}
.principle {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
}
.principle strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.06rem;
  margin-bottom: 0.25rem;
}
.principle p {
  margin: 0;
  color: var(--ink-soft);
}

.shelf {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.shelf li {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 0.15rem 0.95rem;
  padding: 0.95rem 1.05rem;
  background: var(--paper-2);
  border-radius: 0.6rem;
}
.days {
  grid-row: 1 / span 2;
  font-variant-numeric: tabular-nums;
  color: var(--wax);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
}
.shelf strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.12rem;
}
.shelf span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.colophon {
  margin-top: 3.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.colophon a {
  color: var(--wax);
  text-decoration: none;
}
.colophon a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .frame { padding: 1rem 1rem 3rem; }
  .top { flex-direction: column; align-items: flex-start; }
  .excerpt { font-size: 1.08rem; padding: 1.15rem; }
  .shelf li { grid-template-columns: 1fr; }
  .days { grid-row: auto; margin-bottom: 0.1rem; }
}
