/* ===========================================================================
   Farewell Ariyana — SWC light theme
   Ink #02131B · Clay #FA854F/#BE5326 · Blue #0082CD · Mist #E9F1F6 · cream
   DM Sans (body) · Anton (display) · Caveat (handwriting)
   ========================================================================== */

:root {
  --ink: #02131b;
  --ink-soft: #43525a;
  --ink-mute: #7d8a90;
  --cream: #fffdf6;
  --paper: #fffaf0;
  --mist: #e9f1f6;
  --clay: #fa854f;
  --clay-deep: #be5326;
  --blue: #0082cd;
  --blue-deep: #11699b;
  --line: rgba(2, 19, 27, 0.10);
  --line-soft: rgba(2, 19, 27, 0.06);
  --shadow: 0 18px 50px -24px rgba(2, 19, 27, 0.28);
  --shadow-sm: 0 8px 24px -16px rgba(2, 19, 27, 0.30);
  --radius: 22px;
  --maxw: 1120px;

  /* note tints */
  --note-cream: #fff7e6;
  --note-clay: #ffe7d6;
  --note-blue: #e2f1fb;
  --note-mint: #e4f5ec;
  --note-blush: #fde6ec;
  --note-sky: #eaf0ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.bg-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(250, 133, 79, 0.16), transparent 70%),
    radial-gradient(55% 45% at 0% 8%, rgba(0, 130, 205, 0.08), transparent 70%),
    var(--cream);
}

.display {
  font-family: "Anton", "DM Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 0.96;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- top bar */
.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  padding: 7px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-clay {
  background: var(--clay);
  color: #2a1206;
  box-shadow: 0 12px 28px -12px rgba(250, 133, 79, 0.7);
}
.btn-clay:hover { background: var(--clay-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ----------------------------------------------------------------- hero */
.hero {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 28px 24px 60px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(250, 133, 79, 0.18);
}
h1.display {
  font-size: clamp(56px, 10vw, 118px);
  margin: 18px 0 4px;
}
.name-accent { color: var(--clay-deep); }
.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 30em;
  margin: 18px 0 24px;
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.chip strong { color: var(--clay-deep); }
.chip-soft { background: var(--mist); border-color: transparent; box-shadow: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; }
.hero-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  transform: rotate(1.4deg);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 3.4; }
.hero-frame .sun {
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,209,138,0.9), rgba(250,133,79,0.35) 60%, transparent 72%);
  pointer-events: none;
}
.sticker {
  position: absolute;
  font-family: "Caveat", cursive;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  padding: 8px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
}
.sticker-1 { top: 14px; left: -26px; transform: rotate(-7deg); color: var(--blue-deep); }
.sticker-2 { bottom: 26px; right: -20px; transform: rotate(5deg); color: var(--clay-deep); }

/* ----------------------------------------------------------------- stats */
.stats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px 64px;
}
.stats-intro { text-align: center; margin-bottom: 34px; }
.section-kicker {
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.stats-intro p { color: var(--ink-mute); margin: 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  display: block;
  font-family: "Anton", sans-serif;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1;
  color: var(--clay-deep);
  letter-spacing: 0.5px;
}
.stat-label { display: block; margin-top: 10px; font-weight: 600; color: var(--ink-soft); font-size: 15px; }
.stat-label em { display: block; font-style: normal; color: var(--ink-mute); font-size: 12.5px; font-weight: 500; margin-top: 2px; }

/* ----------------------------------------------------------------- tribute */
.tribute { max-width: var(--maxw); margin: 0 auto; padding: 8px 24px 84px; }
.tribute-wrap {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: center;
}
.tribute-photo {
  position: relative;
  margin: 0;
}
.tribute-photo-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  transform: rotate(-1.6deg);
}
.tribute-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 4.6;
  display: block;
}
.tribute-sticker {
  position: absolute;
  bottom: 14px;
  left: -8px;
  z-index: 2;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 25px;
  color: var(--clay-deep);
  background: #fff;
  padding: 6px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
}
.tribute-card {
  position: relative;
  background: linear-gradient(180deg, #fff, var(--paper));
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 40px 42px 34px;
  box-shadow: var(--shadow);
}
.quote-mark {
  font-family: "Anton", sans-serif;
  font-size: 110px;
  line-height: 0.6;
  color: var(--clay);
  opacity: 0.4;
  display: block;
  height: 46px;
}
.tribute-text {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.5;
  font-weight: 500;
  margin: 6px 0 18px;
}
.tribute-sign {
  font-family: "Caveat", cursive;
  font-size: 26px;
  color: var(--clay-deep);
  margin: 0;
}

/* ----------------------------------------------------------------- wall */
.wall {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px 30px;
}
.wall-head { text-align: center; margin-bottom: 30px; }
.wall-title { font-size: clamp(40px, 7vw, 76px); margin: 0 0 12px; }
.wall-sub { color: var(--ink-soft); max-width: 32em; margin: 0 auto; font-size: 18px; }

.note-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  max-width: 640px;
  margin: 0 auto 30px;
  box-shadow: var(--shadow);
}
.field { display: block; margin-bottom: 16px; position: relative; }
.field > span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(250, 133, 79, 0.16);
}
.counter { position: absolute; right: 4px; bottom: -20px; font-size: 12px; color: var(--ink-mute); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.turnstile-slot { margin: 6px 0 4px; min-height: 0; }
.turnstile-slot:not(:empty) { margin: 14px 0 6px; }

.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.form-msg { font-size: 14.5px; font-weight: 600; }
.form-msg.ok { color: var(--blue-deep); }
.form-msg.err { color: #c0392b; }

.wall-meta { text-align: center; margin: 6px 0 26px; }
.note-count { font-family: "Anton", sans-serif; font-size: 26px; color: var(--clay-deep); }
.note-count-sub { color: var(--ink-mute); margin-left: 6px; }

/* masonry-ish columns */
.notes { columns: 3 260px; column-gap: 16px; }
.note {
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 20px 22px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(2, 19, 27, 0.05);
  animation: pop 0.4s ease both;
}
.note-body { font-size: 17px; line-height: 1.5; margin: 0 0 14px; white-space: pre-wrap; word-break: break-word; }
.note-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.note-name { font-family: "Caveat", cursive; font-size: 23px; font-weight: 700; color: var(--ink); }
.note-name::before { content: "— "; color: var(--ink-mute); }
.note-when { font-size: 12px; color: var(--ink-mute); white-space: nowrap; }

.note.cream { background: var(--note-cream); }
.note.clay  { background: var(--note-clay); }
.note.blue  { background: var(--note-blue); }
.note.mint  { background: var(--note-mint); }
.note.blush { background: var(--note-blush); }
.note.sky   { background: var(--note-sky); }
.note:nth-child(3n)   { transform: rotate(-0.6deg); }
.note:nth-child(3n+1) { transform: rotate(0.5deg); }

.notes-empty {
  text-align: center;
  color: var(--ink-mute);
  font-size: 18px;
  padding: 40px 0 20px;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----------------------------------------------------------------- footer */
.site-foot {
  text-align: center;
  padding: 60px 24px 70px;
  margin-top: 30px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(233, 241, 246, 0.5));
}
.foot-mark { font-family: "Anton", sans-serif; font-size: 30px; letter-spacing: 1px; }
.site-foot p { margin: 8px 0 0; color: var(--ink-soft); }
.foot-soft { color: var(--clay-deep) !important; font-weight: 600; }

/* ----------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .tribute-wrap { grid-template-columns: 1fr; gap: 26px; }
  .tribute-photo { max-width: 420px; margin: 0 auto; }
  .notes { columns: 2 220px; }
}
@media (max-width: 540px) {
  .topbar { padding: 18px 18px; }
  .hero { padding: 14px 18px 20px; }
  .lede { font-size: 17px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .stats, .wall, .tribute { padding-left: 18px; padding-right: 18px; }
  .tribute-card { padding: 34px 24px 28px; }
  .stat-grid { gap: 12px; }
  .note-form { padding: 20px; }
  .notes { columns: 1; }
  .sticker-1 { left: -8px; }
  .sticker-2 { right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .g:hover img { transform: none; }
}
