/* ============================================================
   ΛΕΥΚΩΜΑ — Goodbye ADMINE
   Visual system: warm paper + editorial Playfair + clean Manrope
   ============================================================ */

:root {
  /* Palette — warm λεύκωμα (default) */
  --paper:    #efe8d8;
  --paper-2:  #e6ddc8;
  --ink:      #211f1a;
  --ink-soft: #6f685a;
  --hair:     rgba(33,31,26,0.14);

  /* pens & marks (muted, like real ballpoints) */
  --pen-blue: #2f4a83;
  --pen-red:  #9c3a31;
  --pen-green:#3f6b4e;

  /* materials */
  --tape:     rgba(214,196,156,0.62);
  --tape-edge:rgba(255,255,255,0.25);
  --sticky:   #f3e7a9;
  --sticky-2: #e9cfa0;
  --polaroid: #fbf8f1;
  --shadow:   rgba(40,34,24,0.20);

  /* type */
  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Manrope", system-ui, sans-serif;
  --mono:  "JetBrains Mono", monospace;
}

/* ---- THEME: Σινεμά (cleaner, near-mono, airy) ---- */
[data-theme="cinema"] {
  --paper:    #f4f0e7;
  --paper-2:  #ece6d8;
  --ink:      #1d1b17;
  --ink-soft: #807868;
  --hair:     rgba(29,27,23,0.12);
  --pen-blue: #3a3a3a;
  --pen-red:  #8a4038;
  --pen-green:#4a4a44;
  --tape:     rgba(225,214,190,0.55);
  --sticky:   #efe7d3;
  --sticky-2: #e8ddc6;
  --polaroid: #fdfbf6;
}

/* ---- THEME: ADMINE noir (brand B&W, dark) ---- */
[data-theme="noir"] {
  --paper:    #0e0e0d;
  --paper-2:  #161513;
  --ink:      #f1ece1;
  --ink-soft: #948d7e;
  --hair:     rgba(241,236,225,0.16);
  --pen-blue: #cdd6ea;
  --pen-red:  #e3b0a8;
  --pen-green:#bcd2c2;
  --tape:     rgba(241,236,225,0.10);
  --tape-edge:rgba(241,236,225,0.06);
  --sticky:   #1f1d18;
  --sticky-2: #24211a;
  --polaroid: #1a1916;
  --shadow:   rgba(0,0,0,0.55);
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper texture */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(120,100,60,0.06) 1px, transparent 1px),
    radial-gradient(rgba(120,100,60,0.05) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 3px 4px;
  opacity: .9;
  mix-blend-mode: multiply;
}
[data-theme="noir"] body::before { mix-blend-mode: screen; opacity: .4; }

.wrap { position: relative; z-index: 1; }

/* ============================================================
   COVER
   ============================================================ */
.cover {
  min-height: 92svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vh, 90px) 24px clamp(30px,6vh,60px);
  position: relative;
}
.cover .kicker {
  font-family: var(--mono);
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(18px,3vh,30px);
}
.cover .kicker::before, .cover .kicker::after {
  content: ""; width: clamp(20px,6vw,52px); height: 1px; background: var(--hair);
}
.cover h1 {
  font-family: var(--serif);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.02em;
  font-size: clamp(3.2rem, 12vw, 9.5rem);
  margin: 0;
}
.cover h1 em {
  font-style: italic; font-weight: 700;
  display: block;
  color: var(--ink);
}
.cover .years {
  font-family: var(--mono);
  font-size: clamp(12px, 1.7vw, 16px);
  letter-spacing: .2em;
  color: var(--ink-soft);
  margin-top: clamp(22px,4vh,40px);
}
.cover .years b { color: var(--ink); }
.cover .sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 2.6vw, 26px);
  color: var(--ink);
  max-width: 24ch; line-height: 1.4;
  margin: clamp(20px,3.5vh,34px) auto 0;
  text-wrap: balance;
}
.scrolldown {
  position: absolute; bottom: clamp(18px,3vh,32px); left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scrolldown .ar { width: 1px; height: 26px; background: var(--hair); position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .scrolldown .ar::after {
    content: ""; position: absolute; left: -2px; width: 5px; height: 5px;
    border-right: 1px solid var(--ink-soft); border-bottom: 1px solid var(--ink-soft);
    transform: rotate(45deg); bottom: 0;
    animation: bob 1.8s ease-in-out infinite;
  }
}
@keyframes bob { 0%,100%{ transform: translateY(-4px) rotate(45deg); opacity:.4 } 50%{ transform: translateY(2px) rotate(45deg); opacity:1 } }

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: clamp(40px,7vh,86px) clamp(18px,5vw,72px); position: relative; }
.section + .section { border-top: 1px dashed var(--hair); }

.sec-head { max-width: 1180px; margin: 0 auto clamp(26px,4vh,46px); }
.sec-tab {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 14px;
}
.sec-tab .no { color: var(--ink); }
.sec-head h2 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.02;
  letter-spacing: -.01em; margin: 0; max-width: 18ch;
}
.sec-head h2 em { font-style: italic; font-weight: 700; }
.sec-head .lead {
  margin: 16px 0 0; max-width: 54ch;
  font-size: clamp(15px,1.9vw,18px); line-height: 1.6; color: var(--ink-soft);
  text-wrap: pretty;
}

/* ============================================================
   COLLAGE WALL  (masonry via CSS columns)
   ============================================================ */
.wall {
  max-width: 1180px; margin: 0 auto;
  column-width: 270px; column-gap: clamp(18px,2.4vw,32px);
}
.wall.tight  { column-width: 230px; }
.wall.cols-3 { column-width: auto; columns: 3; }

.note {
  break-inside: avoid;
  display: inline-block; width: 100%;
  margin: 0 0 clamp(20px,2.8vw,34px);
  position: relative;
  color: var(--ink);
  transform: translateY(22px) rotate(var(--rot, 0deg));
  transition: transform .6s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease;
}
.note.in { transform: rotate(var(--rot, 0deg)); }
.note:hover { transform: rotate(0deg) translateY(-3px) scale(1.012); z-index: 5; }
@media (prefers-reduced-motion: reduce) {
  .note { transform: rotate(var(--rot,0deg)) !important; transition: none !important; }
}

/* tape */
.note.tape::before {
  content: ""; position: absolute; top: -11px; left: 50%;
  width: clamp(56px,40%,96px); height: 24px; transform: translateX(-50%) rotate(-3deg);
  background: var(--tape);
  border-left: 1px solid var(--tape-edge); border-right: 1px solid var(--tape-edge);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.note.tape.t-l::before { left: 16%; transform: rotate(-8deg); }
.note.tape.t-r::before { left: auto; right: 12%; transform: rotate(7deg); }

/* pin */
.note.pin::after {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c7503f, #7e2a20 70%);
  box-shadow: 0 3px 5px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.4);
}

/* --- sticky note --- */
.sticky-note {
  background: var(--sticky);
  padding: 22px 20px 20px;
  box-shadow: 2px 4px 12px var(--shadow);
  font-size: 16px; line-height: 1.5;
}
.sticky-note.alt { background: var(--sticky-2); }

/* --- ruled paper --- */
.paper-note {
  background: var(--polaroid);
  background-image: repeating-linear-gradient(var(--paper) 0 27px, var(--hair) 27px 28px);
  background-position: 0 14px;
  padding: 16px 18px 18px; box-shadow: 1px 3px 11px var(--shadow);
  font-size: 16px; line-height: 28px;
}

/* --- polaroid (text/graphic) --- */
.polaroid {
  background: var(--polaroid);
  padding: 12px 12px 0; box-shadow: 2px 5px 16px var(--shadow);
}
.polaroid .frame {
  aspect-ratio: 1 / 0.9; width: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  position: relative; overflow: hidden;
  background: var(--paper-2);
}
.polaroid .frame.striped {
  background-image: repeating-linear-gradient(45deg, var(--paper-2) 0 9px, var(--paper) 9px 18px);
}
.polaroid .frame .big {
  font-family: var(--serif); font-weight: 900; font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.05; color: var(--ink);
}
.polaroid .frame .quote {
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--ink);
}
.polaroid .cap {
  font-family: var(--serif); font-style: italic;
  font-size: 17px; text-align: center; padding: 12px 6px 16px; color: var(--ink);
}

/* --- clean card --- */
.card-note {
  background: var(--polaroid);
  border: 1px solid var(--hair);
  padding: 20px 20px 18px; box-shadow: 1px 3px 10px var(--shadow);
}
.card-note .tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--hair); border-radius: 999px; padding: 3px 9px; margin-bottom: 12px;
}
.card-note p { margin: 0; font-size: 16px; line-height: 1.55; }

/* --- stamp --- */
.stamp {
  width: 150px; height: 150px; margin: 4px auto; border-radius: 50%;
  border: 2px solid var(--pen-red); color: var(--pen-red);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transform: rotate(-9deg);
  font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase;
  opacity: .82;
}
.stamp .s-big { font-family: var(--serif); font-weight: 900; font-size: 30px; letter-spacing: 0; margin: 4px 0; text-transform: none; }
.stamp small { font-size: 9px; letter-spacing: .2em; }

/* shared note innards */
.note .msg { margin: 0; }
.note .msg em { font-family: var(--serif); font-style: italic; }
.note .sig {
  display: block; margin-top: 14px;
  font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink);
}
.note .sig.blue  { color: var(--pen-blue); }
.note .sig.red   { color: var(--pen-red); }
.note .sig.green { color: var(--pen-green); }
.note.ink-blue  .msg { color: var(--pen-blue); }
.note.ink-red   .msg { color: var(--pen-red); }

/* placeholder marker for text the user will fill */
.fill {
  background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(156,58,49,.10) 6px 12px);
  outline: 1px dashed var(--pen-red); border-radius: 2px;
  padding: 0 4px; color: var(--pen-red); font-style: normal;
  font-family: var(--mono); font-size: .82em;
}

/* ============================================================
   GUESTBOOK
   ============================================================ */
.guest { background: var(--paper-2); }
[data-theme="noir"] .guest { background: var(--paper-2); }

/* ---- NOIR: keep the notes as real little papers (white / yellow / beige),
        same as the Λεύκωμα album, on the dark wall ---- */
[data-theme="noir"] .sticky-note,
[data-theme="noir"] .paper-note,
[data-theme="noir"] .polaroid,
[data-theme="noir"] .card-note {
  --ink:      #211f1a;
  --ink-soft: #6f685a;
  --hair:     rgba(33,31,26,0.14);
  --paper:    #efe8d8;
  --paper-2:  #e6ddc8;
  --pen-blue: #2f4a83;
  --pen-red:  #9c3a31;
  --pen-green:#3f6b4e;
  --sticky:   #f3e7a9;
  --sticky-2: #e9cfa0;
  --polaroid: #fbf8f1;
  --tape:     rgba(214,196,156,0.62);
  --tape-edge:rgba(255,255,255,0.25);
  --shadow:   rgba(0,0,0,0.55);
  color: var(--ink);
}
.guest-form {
  max-width: 560px; margin: 0 auto clamp(30px,4vh,48px);
  background: var(--polaroid); border: 1px solid var(--hair);
  box-shadow: 2px 6px 20px var(--shadow);
  padding: clamp(20px,3vw,30px); transform: rotate(-.6deg);
}
.guest-form h3 {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(1.3rem,3vw,1.7rem); margin: 0 0 4px;
}
.guest-form .hint { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hair); border-radius: 4px;
  padding: 10px 12px; resize: vertical; width: 100%;
}
.field textarea { min-height: 80px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.opts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 18px; }
.opt-group { display: flex; align-items: center; gap: 8px; }
.opt-group .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  background: var(--ink); color: var(--paper); border: none; border-radius: 999px;
  padding: 12px 22px; cursor: pointer; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.guest-count { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); margin: 0 auto clamp(20px,3vh,30px); }

/* ============================================================
   CLOSING
   ============================================================ */
.closing { text-align: center; padding: clamp(60px,10vh,120px) 24px; }
.closing .mk { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.closing h2 {
  font-family: var(--serif); font-weight: 900; font-style: italic;
  font-size: clamp(2.4rem,8vw,5rem); margin: 18px 0 0; line-height: 1;
}
.closing .who { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: clamp(18px,2.4vw,24px); }
.closing .meta { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--ink-soft); }

/* footer mini-nav back to countdown (optional) */
.foot { text-align: center; padding: 0 24px clamp(40px,6vh,70px); }
.foot a { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; }
.foot a:hover { color: var(--ink); }

/* ============================================================
   THEME SWITCHER
   ============================================================ */
.theme-switch {
  position: fixed; top: 16px; right: 16px; z-index: 50;
  display: flex; gap: 2px; padding: 3px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hair); border-radius: 999px;
  box-shadow: 0 4px 14px var(--shadow);
}
.theme-switch button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  border: none; background: transparent; color: var(--ink-soft);
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

@media (max-width: 560px) {
  .theme-switch { top: 10px; right: 10px; }
  .theme-switch button { padding: 6px 9px; font-size: 10px; }
  .wall, .wall.tight, .wall.cols-3 { column-width: auto; columns: 1; }
  .note { transform: none; }
  .note.tape::before { transform: translateX(-50%) rotate(-3deg); }
}
