/* Shared design system — elegant invitation style: Cormorant/EB Garamond,
   ivory paper, black hairlines, uppercase spaced labels. No accent, no fills. */
:root {
  --paper:   #f7f3e7;   /* ivory background */
  --paper-2: #f2eee2;   /* slightly deeper panel */
  --paper-3: #e6e2d4;   /* deepest paper variant */
  --ink:     #000;      /* titles */
  --body:    #111;      /* body text */
  --muted:   #333;      /* secondary lines */
  --line:    #000;      /* hairlines (0.5pt) */
  --guide:   #999;      /* guide lines */
  --serif-display: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --serif-text:    'EB Garamond', Georgia, 'Times New Roman', serif;
}

body {
  font-family: var(--serif-text);
  font-weight: 400;
  line-height: 1.54;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings — Cormorant Garamond, tight leading, no letter-spacing */
h1, h2, h3, .display {
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 .5rem;
}
h1 { font-weight: 400; font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-weight: 500; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.subtitle { font-family: var(--serif-display); font-style: italic; font-weight: 400; color: var(--muted); }

/* Body helpers */
.lead { color: var(--body); }
.secondary { color: var(--muted); }

/* Small labels — uppercase, wide tracking, ~60% of body size */
.label {
  font-family: var(--serif-text);
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .62rem;
  color: var(--muted);
}

/* Hairline rule */
.rule { border: 0; border-top: .5pt solid var(--line); height: 0; width: 3rem; margin: 1rem auto; opacity: .8; }

/* Buttons & link-buttons — hairline chips, no fills */
.btn, .chip {
  font-family: var(--serif-text);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--body);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .5rem .95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.btn:hover, .chip:hover { background: var(--ink); color: var(--paper); }

/* Inputs */
input, input[type=password] {
  font-family: var(--serif-text);
  font-size: 1rem;
  color: var(--body);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .6rem .7rem;
}
input::placeholder { color: var(--guide); }

/* Mountain silhouette motif */
.mountains { display: block; width: 100%; max-width: 1160px; margin: 0 auto; height: auto; opacity: .7; mix-blend-mode: multiply; }
.motif { margin-top: 2.6rem; padding: 0 1rem 1.4rem; }
.motif .label { display: block; text-align: center; margin-bottom: .9rem; }

/* ── Uppy dashboard, retoned to paper + ink (no blue accent, no rounded fills) ── */
.uppy-Dashboard-inner,
.uppy-Dashboard-innerWrap { background: var(--paper-2) !important; border: 1px solid var(--line) !important; border-radius: 0 !important; }
.uppy-Dashboard-AddFiles { border: 1px dashed var(--guide) !important; border-radius: 0 !important; margin: 10px !important; }
.uppy-Dashboard-AddFiles-title,
.uppy-Dashboard-note,
.uppy-StatusBar-content,
.uppy-DashboardContent-title { font-family: var(--serif-text) !important; color: var(--body) !important; }
.uppy-Dashboard-browse { color: var(--ink) !important; text-decoration: underline !important; }
.uppy-c-btn-primary,
.uppy-StatusBar-actionBtn--upload {
  background: var(--ink) !important; color: var(--paper) !important;
  border: 1px solid var(--ink) !important; border-radius: 0 !important;
  font-family: var(--serif-text) !important; text-transform: uppercase; letter-spacing: .12em;
}
.uppy-StatusBar-actionBtn--upload:hover, .uppy-c-btn-primary:hover { background: var(--muted) !important; }
.uppy-StatusBar:not([aria-hidden=true]).is-waiting .uppy-StatusBar-actionBtn--upload { color: var(--paper) !important; }
.uppy-StatusBar-progress { background-color: var(--muted) !important; }

/* Für Screenreader sichtbar, visuell nicht — z. B. Labels von Passwortfeldern,
   die im Design nur als Platzhalter erscheinen sollen. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sprachumschalter (public/lang.js) */
.langswitch { text-align: center; margin: .8rem 0 0; }
.langswitch a { color: var(--muted); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .2em; text-decoration: none; }
.langswitch a:hover { text-decoration: underline; }
