@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: light;
  --background: #f7f4ec;
  --foreground: #163551;
  --ink: #0f2439;
  --muted: #638096;
  --rule: #bed0dc;
  --accent: #cc9c30;
  --accent-dark: #b28221;
  --panel: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.5 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(190, 208, 220, 0.38), transparent 36rem),
    var(--background);
}

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--accent-dark);
}

.masthead {
  align-items: center;
  background: rgba(247, 244, 236, 0.94);
  border-bottom: 1px solid rgba(190, 208, 220, 0.8);
  display: flex;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  text-decoration: none;
}

.mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--background);
  display: inline-flex;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.brand-name,
.brand-note,
.home-link,
.eyebrow,
.article-nav,
.next-card span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-name {
  color: var(--ink);
  display: block;
}

.brand-note {
  color: var(--muted);
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  margin-top: 0.18rem;
}

.home-link {
  color: var(--muted);
  text-decoration: none;
}

.article {
  margin: 0 auto;
  max-width: 46rem;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2rem) clamp(5rem, 10vw, 7rem);
}

.article-nav {
  margin-bottom: 3rem;
}

.article-nav a {
  color: var(--muted);
  text-decoration: none;
}

.eyebrow {
  color: var(--accent-dark);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 0 0 1.2rem;
}

h1 {
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}

.dek {
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  color: #4e687c;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.45rem);
  line-height: 1.45;
  margin: 2rem 0 3rem;
  padding: 1.2rem 0;
}

p,
li {
  color: #314b60;
  font-size: clamp(1.06rem, 2vw, 1.13rem);
  line-height: 1.8;
}

p {
  margin: 0 0 1.6rem;
}

ul {
  margin: 1rem 0 2rem;
  padding-left: 1.35rem;
}

li {
  margin: 0.45rem 0;
  padding-left: 0.3rem;
}

li::marker {
  color: var(--accent);
}

strong {
  color: var(--ink);
  font-weight: 700;
}

code {
  background: #e5edf1;
  border-radius: 0.2rem;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  padding: 0.08rem 0.32rem;
}

blockquote {
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 1.72rem);
  line-height: 1.45;
  margin: 3rem 0;
  padding: 0.2rem 0 0.2rem 1.5rem;
}

.next-card {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding-top: 1.8rem;
}

.next-card span {
  color: var(--accent-dark);
  display: block;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-bottom: 0.4rem;
}

.next-card a {
  display: inline-block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  text-decoration: none;
}

@media (max-width: 640px) {
  .masthead {
    align-items: flex-start;
    gap: 1rem;
  }

  .home-link {
    margin-top: 0.35rem;
  }
}
