:root {
  --ink: #0e1114;
  --leather: #2a1216;
  --hide: #3e1c21;
  --desk: #161014;
  --line: #4a2a2e;
  --brass: #d4a24a;
  --brass-2: #e8c47a;
  --seal: #c41e2a;
  --seal-2: #e24a4a;
  --verde: #3d9b7a;
  --cream: #f6efe2;
  --paper: #f3ead8;
  --mute: #9a8d82;
  --soft: #d8cfc2;
  --rule: rgba(42, 18, 22, 0.12);
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  --ui: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
  --read: "Literata", Georgia, serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(196, 30, 42, 0.18), transparent 55%),
    radial-gradient(720px 380px at 100% 0%, rgba(212, 162, 74, 0.12), transparent 50%),
    var(--ink);
  color: var(--cream);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(
      118deg,
      transparent 0 11px,
      rgba(62, 28, 33, 0.55) 11px 12px
    );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image: radial-gradient(rgba(246, 239, 226, 0.7) 0.55px, transparent 0.65px);
  background-size: 3px 3px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

.wrap {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.nib {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(14, 17, 20, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 162, 74, 0.28);
}

.nib.is-tight { padding-block: 9px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brass);
}

.brand strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-optical-sizing: auto;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--mute);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nib__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nib__links a {
  text-decoration: none;
  color: var(--soft);
  font-size: 0.92rem;
}

.nib__links a:hover { color: var(--brass-2); }

.cta-pair {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.wax {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.wax--seal {
  background: linear-gradient(180deg, var(--seal-2), var(--seal));
  color: #fff8f0;
  box-shadow: 0 0 0 0 rgba(196, 30, 42, 0.5);
  animation: sealpulse 2.2s ease-in-out infinite;
}

.wax--brass {
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  color: #2a1608;
}

.wax--ghost {
  background: transparent;
  border-color: rgba(246, 239, 226, 0.28);
  color: var(--cream);
}

.nav-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--hide);
  color: var(--cream);
}

.ribbon {
  overflow: hidden;
  border-block: 1px solid rgba(212, 162, 74, 0.22);
  background: #120d0e;
}

.ribbon__row {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-2);
  animation: drift 40s linear infinite;
}

.ribbon__row--rev {
  color: var(--seal-2);
  animation-direction: reverse;
  animation-duration: 48s;
  border-top: 1px dashed rgba(196, 30, 42, 0.28);
}

.desk {
  position: relative;
  padding: 46px 0 20px;
  z-index: 1;
}

.desk__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--mute);
  margin-bottom: 16px;
}

.crumb a { color: var(--brass-2); text-decoration: none; }

.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin: 0 0 12px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

h1 { font-size: clamp(2.05rem, 5vw, 3.9rem); max-width: 16ch; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: 1.22rem; }

.lead {
  font-family: var(--read);
  font-size: 1.12rem;
  color: var(--soft);
  max-width: 58ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.stat {
  background: var(--hide);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--brass-2);
}

.stat span { color: var(--mute); font-size: 0.84rem; }

.folio {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px 22px 22px 8px;
  padding: 28px 26px 28px 46px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  min-height: 320px;
}

.folio::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 10px;
  background-image: repeating-radial-gradient(circle, var(--brass) 0 4px, transparent 4px 22px);
}

.folio::after {
  content: "";
  position: absolute;
  inset: 16px 16px 16px 40px;
  background-image: repeating-linear-gradient(
    var(--rule) 0 1px,
    transparent 1px 28px
  );
  pointer-events: none;
}

.folio__ink {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--seal-2), var(--seal));
  box-shadow: 0 8px 0 var(--leather);
  animation: drip 2.8s ease-in-out infinite;
  z-index: 2;
}

.folio__ink span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
}

.folio h2 {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: var(--leather);
}

.folio p,
.folio time {
  position: relative;
  z-index: 1;
  font-family: var(--read);
  margin: 0 0 10px;
}

.folio time {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--seal);
}

.band {
  position: relative;
  z-index: 1;
  padding: 56px 0;
}

.band--alt {
  background: linear-gradient(180deg, rgba(42, 18, 22, 0.45), transparent);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 46ch;
  color: var(--mute);
  margin: 0;
}

.slips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.slip {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  min-height: 100%;
}

.slip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 22px 22px 0;
  border-style: solid;
  border-color: var(--brass) var(--ink) transparent transparent;
}

.slip em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal);
}

.slip h3 { margin: 8px 0; color: var(--leather); }
.slip p { color: #4a3d36; margin: 0 0 16px; }
.slip .wax { width: 100%; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  background: var(--hide);
  border-radius: 4px 18px 18px 4px;
  padding: 20px;
  border-left: 4px solid var(--brass);
}

.step em {
  font-family: var(--mono);
  font-style: normal;
  color: var(--brass-2);
}

.leaf {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
  align-items: start;
}

.leaf img {
  width: 100%;
  border-radius: 6px 22px 6px 22px;
  min-height: 240px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.leaf__body {
  font-family: var(--read);
  color: var(--soft);
  background: linear-gradient(180deg, rgba(246, 239, 226, 0.05), transparent 40%);
  padding: 8px 4px 0;
}

.leaf__body p { margin: 0 0 16px; }
.leaf__body h2 { color: var(--cream); }

.drop::first-letter {
  font-family: var(--display);
  font-size: 3.05rem;
  float: left;
  line-height: 0.82;
  padding-right: 10px;
  color: var(--brass-2);
}

.tray-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tray {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.tray::-webkit-scrollbar { height: 6px; }
.tray::-webkit-scrollbar-thumb { background: var(--brass); border-radius: 99px; }

.card {
  flex: 0 0 min(276px, 78vw);
  scroll-snap-align: start;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
}

.card img { height: 158px; width: 100%; object-fit: cover; }
.card div { padding: 16px; }
.card h3 { margin-bottom: 6px; color: var(--leather); }
.card p { margin: 0; color: #5a4c44; font-size: 0.92rem; }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--hide);
  color: var(--cream);
  cursor: pointer;
}

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.note {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 22px;
}

.stars {
  color: var(--seal);
  letter-spacing: 3px;
  margin: 0 0 8px;
}

.note p { font-family: var(--read); }
.note footer {
  margin-top: 14px;
  color: #6a5c54;
  font-size: 0.88rem;
}

.gathering {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--hide);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gathering img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.gathering__body { padding: 28px; }
.when {
  font-family: var(--mono);
  color: var(--brass-2);
  letter-spacing: 0.06em;
}

.asks { display: grid; gap: 10px; }
.ask {
  background: var(--hide);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.ask button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--cream);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 650;
}

.ask p {
  display: none;
  margin: 0;
  padding: 0 18px 18px;
  color: var(--soft);
  font-family: var(--read);
}

.ask.is-open p { display: block; }
.ask button span { color: var(--brass-2); }

.dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
  gap: 8px;
  padding: 8px;
  background: rgba(14, 17, 20, 0.94);
  border: 1px solid rgba(212, 162, 74, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.dock .wax { flex: 1; }

.colophon {
  position: relative;
  z-index: 1;
  padding: 48px 0 118px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.92rem;
}

.langs { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 20px; }
.langs a { color: var(--brass-2); }

@keyframes sealpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 42, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(196, 30, 42, 0); }
}

@keyframes drip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 920px) {
  .desk__grid,
  .leaf,
  .gathering,
  .notes,
  .slips,
  .steps { grid-template-columns: 1fr; }

  .nib__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    background: #120d0e;
    border-bottom: 1px solid var(--line);
  }

  .nib__links.is-open { display: flex; }
  .nav-btn { display: inline-flex; align-items: center; justify-content: center; }
  .dock { display: flex; }
  h1 { max-width: none; }
  .stats { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .folio { transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nib { padding-inline: 10px; }
  .brand small { display: none; }
  .nib .cta-pair .wax {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }
  .leaf__body { font-size: 1.02rem; }
  .desk { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
