@font-face {
  font-family: "Fraunces Var";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --c-cream: #faf6f3;
  --c-ink: #592e21;
  --c-ink-soft: #676767;
  --c-line: rgba(165, 124, 108, 0.45);
  --c-white: #ffffff;
  --c-cta: #55281a;
  --serif: "Fraunces Var", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Geist", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--c-white); padding: 8px 12px; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--c-line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
.brand strong { font-family: var(--serif); font-weight: 560; font-size: 22px; letter-spacing: -0.03em; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nav button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--c-ink-soft);
  font-size: 14px;
}
.nav button[aria-current="page"] { color: var(--c-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: 40px; margin: 0 0 8px; }
h2 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 12px; }
h3 { font-size: 22px; margin: 0 0 8px; }
#preentry h1 { font-size: clamp(48px, 7vw, 84px); margin: 0; }
.kicker { margin: 0 0 12px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; color: #a77e6e; }
.lede { font-size: 20px; max-width: 40rem; }
.lede, .muted { color: var(--c-ink-soft); }
.hero { padding: 64px 0 28px; display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 48px; align-items: end; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 12px 0 48px; }
.card, .panel {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(89, 46, 33, 0.06);
}
.section { padding: 10px 0 54px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.meta { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #a77e6e; }
.auth { display: grid; gap: 12px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { border-radius: 999px; border: 1px solid var(--c-line); background: transparent; padding: 8px 12px; }
.tabs button[aria-pressed="true"] { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.prose { max-width: 42rem; }
.footer { border-top: 1px solid var(--c-line); padding: 28px 0 48px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--c-ink-soft); text-decoration: none; margin-right: 14px; }
.wordmark { width: min(220px, 100%); height: auto; }
.portal-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; }
.stack { display: grid; gap: 14px; }
.hidden { display: none !important; }
.profile-section summary { cursor: pointer; font-weight: 600; }
.profile-section label { margin-top: 14px; }
.top nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.top nav a { text-decoration: none; color: var(--c-ink-soft); font-size: 14px; }
body.signed-in .utility { display: none; }
@media (max-width: 860px) {
  .footer { flex-direction: column; }
}
.panel { margin: 16px 0; }
label { display: grid; gap: 6px; margin: 12px 0; font-size: 14px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  border-radius: 10px;
  padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn, a.btn {
  border: 1px solid var(--c-cta);
  background: var(--c-cta);
  color: #ffffff;
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn.secondary, a.btn.secondary { background: transparent; color: var(--c-cta); }
.error { color: #8a2b1b; min-height: 1.2em; }
.facts { display: grid; gap: 10px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--c-ink-soft); font-size: 13px; }
.badge {
  display: inline-block;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.list { display: grid; gap: 10px; }
.list button { text-align: left; }
@media (max-width: 860px) {
  .hero, .grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  #preentry h1 { font-size: 46px; }
  .top { align-items: flex-start; flex-direction: column; }
}
