:root {
  --paper: #f7f6f3;
  --paper-2: #eeebe4;
  --ink: #15130f;
  --ink-soft: #58524a;
  --red: #a3172a;
  --red-ink: #8c1424;
  --line: #dcd6cb;
  --shadow: 0 1px 0 rgba(21,19,15,0.06);
  --serif: Didot, "Bodoni MT", "Bodoni 72", "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Courier New", Courier, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c0b0a;
    --paper-2: #161412;
    --ink: #ece7df;
    --ink-soft: #a99f92;
    --red: #d94054;
    --red-ink: #e5556a;
    --line: #2c2723;
    --shadow: 0 1px 0 rgba(0,0,0,0.4);
  }
}
:root[data-theme="dark"] {
  --paper: #0c0b0a;
  --paper-2: #161412;
  --ink: #ece7df;
  --ink-soft: #a99f92;
  --red: #d94054;
  --red-ink: #e5556a;
  --line: #2c2723;
  --shadow: 0 1px 0 rgba(0,0,0,0.4);
}
:root[data-theme="light"] {
  --paper: #f7f6f3;
  --paper-2: #eeebe4;
  --ink: #15130f;
  --ink-soft: #58524a;
  --red: #a3172a;
  --red-ink: #8c1424;
  --line: #dcd6cb;
  --shadow: 0 1px 0 rgba(21,19,15,0.06);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, var(--paper-2), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--red); }

.wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 1.5rem) 4rem;
}

/* ---------- masthead ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

header.masthead {
  position: relative;
  text-align: center;
  padding-bottom: 1.6rem;
  margin-bottom: 0.5rem;
}

h1.title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 8vw, 4.1rem);
  line-height: 0.98;
  margin: 0.5rem 0 0.6rem;
  text-wrap: balance;
  opacity: 0;
  animation: rise 0.8s 0.12s ease forwards;
}

.title .accent { color: var(--red); }

.tagline {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin: 0 auto;
  max-width: 30ch;
  opacity: 0;
  animation: rise 0.8s 0.24s ease forwards;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.6rem 0;
}

.rule.thick {
  border-top: 2px solid var(--ink);
  opacity: 0.9;
}

.masthead-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stamp {
  position: absolute;
  top: -0.6rem;
  right: -0.4rem;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  padding: 0.32rem 0.5rem;
  transform: rotate(-9deg) scale(1);
  transform-origin: center;
  opacity: 0;
  animation: stamp-in 0.5s 0.9s cubic-bezier(.2,1.4,.4,1) forwards;
  white-space: nowrap;
}

.stamp::before,
.stamp::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px;
  border-top: 1px solid var(--red);
  opacity: 0.6;
}
.stamp::before { top: 3px; }
.stamp::after { bottom: 3px; }

@media (max-width: 480px) {
  .stamp { position: static; display: inline-block; margin-top: 0.9rem; transform: rotate(-4deg); }
}

/* ---------- intro ---------- */

.intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 2.2rem 0 2.6rem;
}

.intro::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.6rem;
  color: var(--red);
  float: left;
  line-height: 0.8;
  padding: 0.05em 0.08em 0 0;
}

/* ---------- dispatches ---------- */

.feed { display: flex; flex-direction: column; }

.dispatch {
  padding: 1.9rem 0;
  border-bottom: 1px dashed var(--line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.dispatch.in-view { opacity: 1; transform: translateY(0); }
.feed .dispatch:last-child { border-bottom: none; }

.dateline {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  gap: 0.6em;
  margin-bottom: 0.6rem;
}
.dateline .loc {
  color: var(--ink-soft);
  filter: blur(4px);
  user-select: none;
}

.headline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 0.55rem;
  text-wrap: balance;
  position: relative;
  display: inline;
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.5s ease;
  filter: blur(6px);
  user-select: none;
  cursor: default;
}
.dispatch:hover .headline { background-size: 100% 1px; }

.body-text {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 58ch;
}

.body-text .tag {
  color: var(--ink);
}

/* ---------- tiktok cta ---------- */

.tiktok-cta {
  margin: 2.6rem 0;
  padding: 1.9rem 1.6rem;
  border: 1.5px solid var(--red);
  text-align: center;
}

.tiktok-cta .label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.7rem;
}

.tiktok-cta p {
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1.1rem;
  max-width: 40ch;
  margin-inline: auto;
}

.tiktok-link {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--red);
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  transition: background 0.2s ease;
}
.tiktok-link:hover { background: var(--red-ink); }
.tiktok-link::after { content: " \2192"; }

/* ---------- tip line ---------- */

.tip {
  margin: 2.6rem 0 3rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  text-align: center;
}

.tip .label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.tip p {
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 40ch;
  margin-inline: auto;
}

.tip-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tip-link:hover { color: var(--red); border-color: var(--ink); }
.tip-link::after { content: " \2192"; color: var(--red); }

/* ---------- footer / signature ---------- */

footer {
  text-align: center;
  padding-top: 1rem;
}

.closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto 2.2rem;
  line-height: 1.5;
}

.seal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.seal {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--line);
  transform: rotate(-6deg);
}
.seal span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--red);
  font-size: 1.15rem;
}

.signature {
  text-align: left;
}

.xoxo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.7rem);
  color: var(--red);
  line-height: 1;
}

.gg-inline {
  color: var(--ink);
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.55em;
  letter-spacing: 0.05em;
}

.site-line {
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stamp-in {
  0% { opacity: 0; transform: rotate(-9deg) scale(1.7); }
  100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .kicker, .title, .tagline, .stamp, .dispatch {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
