/* ===== tāstium — shared core design system ===== */
:root {
  --bg:        #f8f5f0;
  --bg-sink:   #efeae3;
  --surface:   #ffffff;
  --surface-2: #f3efe8;
  --plum:      #3e2c56;
  --plum-deep: #2a1d3c;
  --purple:    #8c6bb3;
  --purple-soft: #dccfeb;
  --sage:      #7B8B73;
  --sage-soft: rgba(123,139,115,0.16);
  --ember:     #c25541;
  --ink:       #16181d;
  --ink-70:    rgba(22,24,29,0.62);
  --ink-55:    rgba(22,24,29,0.50);
  --ink-35:    rgba(22,24,29,0.30);
  --ink-15:    rgba(22,24,29,0.10);
  --ink-08:    rgba(22,24,29,0.06);
  --hairline:  rgba(22,24,29,0.07);
  --hairline-2: rgba(22,24,29,0.13);
  --serif: "Playfair Display", "Iowan Old Style", "Cochin", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans);
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--purple-soft); color: var(--plum-deep); }

/* ===== Type ===== */
.kicker {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--plum);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: var(--sage); flex: none;
}
.kicker.no-dot::before { display: none; }

h1, h2, h3 {
  font-family: var(--serif); font-weight: 500;
  color: var(--ink); letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.5vw, 88px); font-style: italic; font-weight: 500; }
h1 .roman { font-style: normal; font-weight: 400; }
h2 { font-size: clamp(34px, 4.5vw, 56px); font-style: italic; }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-style: normal; font-weight: 500; }

.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ===== Layout ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }

/* ===== Nav ===== */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,245,240,0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
nav.top.scrolled { border-bottom-color: var(--hairline); }
nav.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
nav.top .brand {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center;
  line-height: 0;
}
nav.top .brand-logo {
  height: 72px; width: auto; display: block;
  border-radius: 18px;
}
nav.top .links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; color: var(--ink-70);
}
nav.top .links a { text-decoration: none; transition: color .15s; }
nav.top .links a:hover { color: var(--ink); }
nav.top .links a.current { color: var(--ink); font-weight: 600; }
nav.top .cta {
  background: var(--plum); color: var(--bg);
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .15s;
}
nav.top .cta:hover { background: var(--plum-deep); }
@media (max-width: 720px) {
  nav.top .links a:not(.cta) { display: none; }
}

/* ===== Buttons ===== */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 16px 28px; border-radius: 999px;
  transition: transform .12s ease, background .15s ease, color .15s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--plum); color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 12px 24px rgba(62,44,86,0.22); }
.btn-primary:hover { background: var(--plum-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline-2); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-arrow { transition: transform .15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ===== Footer ===== */
footer {
  padding: 80px 0 60px;
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
}
footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px;
  align-items: flex-end;
}
footer .brand-block { max-width: 360px; }
footer .brand-block .wm { font-family: var(--serif); font-style: italic; font-size: 28px; font-weight: 500; }
footer .brand-block p { color: var(--ink-55); font-size: 14px; margin-top: 8px; }
footer .meta { font-size: 13px; color: var(--ink-55); display: flex; gap: 24px; flex-wrap: wrap; }
footer .meta a { text-decoration: none; }
footer .meta a:hover { color: var(--ink); }

/* small scroll-in animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* --- Converted from prototype <image-slot> elements ---------------------
   Box sizing still comes from the per-context selectors that used to target
   the custom element (.art-cover .image-slot, .post-card .image-slot, ...).
   These rules just carry over the visual defaults the element applied. */
.image-slot{display:block;background:rgba(0,0,0,.04);overflow:hidden;}
img.image-slot{width:100%;height:100%;object-fit:cover;}
.image-slot--empty{background:linear-gradient(135deg,var(--surface-2,#f3efe8),var(--bg-sink,#efeae3));}
