:root {
  --parchment-base: #f3e6cb;
  --parchment-mid: #ecd9b3;
  --parchment-edge: #c9a874;
  --parchment-shadow: #8b6f3d;
  --ink: #2e2113;
  --ink-soft: #5d4326;
  --ink-fade: #876841;
  --accent: #6b4423;
  --accent2: #a07142;
  --pine: #4a5c3a;
  --sky: #3d5a73;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #2a1f15;
  min-height: 100vh;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
}

body {
  background: radial-gradient(ellipse at center, #3d2d1d 0%, #1a120a 100%);
  padding: 60px 20px;
}

.desk-wrap {
  max-width: 880px;
  margin: 0 auto;
  perspective: 2000px;
}

.parchment {
  position: relative;
  background: var(--parchment-base);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(180, 130, 70, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(180, 130, 70, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 240, 200, 0.3) 0%, transparent 70%),
    linear-gradient(135deg, var(--parchment-base) 0%, var(--parchment-mid) 50%, var(--parchment-base) 100%);
  padding: 90px 80px 110px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 60px 100px -30px rgba(0,0,0,0.5),
    inset 0 0 80px rgba(139, 111, 61, 0.25),
    inset 0 0 200px rgba(139, 111, 61, 0.1);
  border-radius: 3px;
  transform: rotate(0.2deg);
}

.parchment::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.15 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: 3px;
}

.parchment::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(139, 90, 30, 0.35) 0%, transparent 25%),
    radial-gradient(ellipse at top right, rgba(139, 90, 30, 0.3) 0%, transparent 25%),
    radial-gradient(ellipse at bottom left, rgba(139, 90, 30, 0.32) 0%, transparent 28%),
    radial-gradient(ellipse at bottom right, rgba(139, 90, 30, 0.4) 0%, transparent 30%);
  pointer-events: none;
  border-radius: 3px;
}

.stain {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.stain-1 { top: 15%; left: 6%; width: 70px; height: 55px;
  background: radial-gradient(ellipse, rgba(139, 90, 30, 0.18) 0%, transparent 70%);
  transform: rotate(20deg); }
.stain-2 { bottom: 18%; right: 8%; width: 95px; height: 65px;
  background: radial-gradient(ellipse, rgba(139, 90, 30, 0.15) 0%, transparent 70%);
  transform: rotate(-20deg); }
.stain-3 { top: 50%; left: 7%; width: 45px; height: 40px;
  background: radial-gradient(ellipse, rgba(160, 100, 40, 0.12) 0%, transparent 70%); }

.content {
  position: relative;
  z-index: 2;
}

.opening {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-fade);
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

h1 {
  font-family: 'Homemade Apple', cursive;
  font-size: 78px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
  transform: rotate(-1deg);
}

.subtitle {
  font-family: 'Caveat', cursive;
  font-size: 34px;
  color: var(--ink-soft);
  transform: rotate(-0.5deg);
}

.letter-body {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  line-height: 1.5;
  color: var(--ink);
}

.letter-body p {
  margin-bottom: 26px;
}

.letter-body p:first-of-type::first-letter {
  font-family: 'Homemade Apple', cursive;
  font-size: 68px;
  float: left;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  color: var(--accent);
}

.salutation {
  font-family: 'Homemade Apple', cursive;
  font-size: 44px;
  color: var(--ink);
  margin-bottom: 30px;
  transform: rotate(-0.5deg);
  display: block;
}

.section-break {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px 0;
  gap: 16px;
}

.section-break .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ink-fade), transparent);
  max-width: 120px;
}

.section-break svg {
  color: var(--accent);
}

.section-title {
  font-family: 'Homemade Apple', cursive;
  font-size: 40px;
  color: var(--accent);
  margin: 50px 0 28px;
  transform: rotate(-0.7deg);
  text-align: left;
  line-height: 1.25;
}

.sketch {
  display: block;
  margin: 30px auto;
  color: var(--ink);
}

.sketch-mountains {
  transform: rotate(-1.2deg);
  margin: 40px auto 30px;
}

.sketch-trailer {
  transform: rotate(1deg);
  margin: 40px auto 30px;
}

.sketch-family {
  transform: rotate(-0.7deg);
  margin: 30px auto;
}

.letter-body em {
  font-style: italic;
  color: var(--accent);
}

.truths {
  margin: 20px 0;
}

.truths p {
  margin-bottom: 16px;
  padding-left: 30px;
  position: relative;
}

.truths p::before {
  content: "❦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 18px;
  top: 6px;
}

.truths strong {
  font-family: 'Homemade Apple', cursive;
  font-weight: normal;
  font-size: 28px;
  color: var(--ink);
  display: inline;
  margin-right: 6px;
}

.pull-quote {
  margin: 30px auto;
  max-width: 80%;
  padding: 22px 28px;
  border-left: 3px solid var(--accent);
  background: rgba(107, 68, 35, 0.06);
  font-family: 'Caveat', cursive;
  font-size: 28px;
  font-style: italic;
  color: var(--ink-soft);
  transform: rotate(-0.4deg);
  line-height: 1.5;
}

.closing-block {
  margin-top: 50px;
  text-align: right;
}

.closing-line {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.signature {
  font-family: 'Homemade Apple', cursive;
  font-size: 46px;
  color: var(--accent);
  margin-top: 12px;
  transform: rotate(-2deg);
  display: inline-block;
  line-height: 1.3;
}

.signature-list {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--ink-soft);
  margin-top: 18px;
  font-style: italic;
  transform: rotate(-0.5deg);
  line-height: 1.5;
}

.date-stamp {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--ink-fade);
  margin-top: 24px;
  font-style: italic;
}

.seal {
  position: absolute;
  bottom: 30px;
  right: 60px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c98a4a 0%, #8b5520 70%, #5a3712 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 220, 190, 0.7);
  font-family: 'Homemade Apple', cursive;
  font-size: 16px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.4),
    inset 0 -3px 6px rgba(0,0,0,0.3),
    inset 0 3px 6px rgba(255,255,255,0.15);
  transform: rotate(-6deg);
  z-index: 3;
  text-align: center;
  line-height: 1;
}

.seal::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle at center, transparent 60%, rgba(139, 85, 32, 0.4) 70%, transparent 90%);
  border-radius: 50%;
}

@media (max-width: 720px) {
  body { padding: 30px 12px; }
  .parchment { padding: 60px 32px 80px; }
  h1 { font-size: 54px; }
  .subtitle { font-size: 26px; }
  .salutation { font-size: 34px; }
  .section-title { font-size: 32px; }
  .letter-body { font-size: 25px; }
  .pull-quote { font-size: 24px; }
  .truths strong { font-size: 24px; }
  .closing-line { font-size: 26px; }
  .signature { font-size: 38px; }
  .signature-list { font-size: 22px; }
  .date-stamp { font-size: 20px; }
  .seal { width: 55px; height: 55px; right: 30px; bottom: 20px; }
  .sketch { max-width: 100%; height: auto; }
}

.parchment {
  animation: settle 1.2s ease-out;
}

@keyframes settle {
  from { opacity: 0; transform: rotate(0.2deg) translateY(20px); }
  to { opacity: 1; transform: rotate(0.2deg) translateY(0); }
}
