@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=IM+Fell+English:ital@0;1&display=swap');

:root {
  /* Palette sampled from the prints: cream plate tone, sepia, rust, oxblood */
  --paper: #f3e9d6;
  --paper-2: #e9dbc1;
  --paper-3: #dccaa9;
  --ink: #2b1b13;
  --ink-2: #4a3226;
  --sepia: #6e3d24;
  --rust: #a2562f;
  --oxblood: #7b2619;
  --muted: #7a6553;
  --hair: rgba(43, 27, 19, .16);
  --night: #15100d;
  --night-2: #1f1813;

  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --text: 'EB Garamond', Georgia, serif;
  --fell: 'IM Fell English', 'EB Garamond', Georgia, serif;

  --switcher-h: 38px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.smallcaps {
  font-family: var(--text);
  font-variant: all-small-caps;
  letter-spacing: .14em;
  font-size: 1.05em;
}

.draft-flag {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--oxblood);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1px 6px;
  vertical-align: middle;
}

/* ---------- Prototype switcher (not part of any design) ---------- */
.proto-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--switcher-h);
  display: flex; align-items: center; gap: 4px;
  padding: 0 10px;
  background: rgba(18, 18, 20, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #ddd;
  font: 13px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: auto; scrollbar-width: none;
  transition: transform .3s ease;
}
.proto-bar::-webkit-scrollbar { display: none; }
.proto-bar.hidden { transform: translateY(-100%); }
.proto-bar .label { opacity: .55; margin-right: 6px; white-space: nowrap; }
.proto-bar a {
  text-decoration: none; white-space: nowrap;
  padding: 6px 10px; border-radius: 6px; color: #ccc;
}
.proto-bar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.proto-bar a[aria-current="page"] { background: #fff; color: #111; }
.proto-bar a b { font-weight: 600; margin-right: 4px; }
.proto-bar .spacer { flex: 1; }
.proto-bar button {
  background: none; border: 0; color: #aaa; cursor: pointer; padding: 6px 8px; white-space: nowrap;
}
.proto-tab {
  position: fixed; top: 0; right: 12px; z-index: 1000;
  font: 12px system-ui, sans-serif; color: #ddd; background: rgba(18,18,20,.85);
  border: 0; border-radius: 0 0 6px 6px; padding: 4px 10px; cursor: pointer;
  display: none;
}
.proto-bar.hidden + .proto-tab { display: block; }
@media (max-width: 640px) {
  .proto-bar .label, .proto-bar a span { display: none; }
}
