@import url('https://fonts.googleapis.com/css2?family=Yellowtail&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

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

:root {
  --bg: #233a40;
  --fg: #fff;
  --accent: #d45848;
  --muted: rgba(255, 255, 255, 0.75);
  --border: rgba(255, 255, 255, 0.15);
  --input-bg: rgba(0, 0, 0, 0.2);
  --card-bg: rgba(0, 0, 0, 0.2);
  --radius: 6px;
  --font-display: 'Yellowtail', Arial, cursive;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  min-height: 100dvh;
}

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

.site-title {
  font-family: var(--font-display);
  font-weight: normal;
  color: var(--fg);
  text-shadow: 3px 3px 0px #253e45, 5px 4px 0px var(--accent);
  word-spacing: 0.08em;
}

/* ── Form page ──────────────────────────── */

.form-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 1rem;
  gap: 1.5rem;
}

.form-page .site-title { font-size: 2.5rem; }

.form-card {
  width: 100%;
  max-width: 560px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.field textarea,
.field input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--fg);
  background: var(--input-bg);
  resize: vertical;
  transition: border-color 0.15s;
}

.field textarea:focus,
.field input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { min-height: 120px; }

button[type="submit"] {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.7rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

button[type="submit"]:hover { opacity: 0.85; }
button[type="submit"]:disabled { opacity: 0.5; cursor: default; }

#status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

#status.ok  { color: #7ecfa0; }
#status.err { color: #eb7a6b; }

/* ── About page ─────────────────────────── */

.about-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding: 3rem 2rem 6rem;
  text-align: center;
}

.about-page .site-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 2.5rem;
}

.about-body {
  max-width: 600px;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  color: var(--fg);
}

.about-back {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.about-back:hover { color: var(--fg); }

/* ── Slideshow page ─────────────────────── */

.slide-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 3rem 2rem;
  text-align: center;
  gap: 0;
}

.slide-page .site-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 3rem;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.5;
  max-width: 720px;
}

.quote-attr {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.ext-link {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4em;
  color: var(--muted);
  opacity: 0.5;
  vertical-align: middle;
  transition: opacity 0.15s, color 0.15s;
}

.ext-link:hover {
  opacity: 1;
  color: var(--fg);
}

.slide-nav {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.slide-nav button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.slide-nav button:hover {
  border-color: var(--accent);
  background: rgba(212, 88, 72, 0.15);
}

.slide-nav button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.slide-counter {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 5rem;
}

/* ── Footer ─────────────────────────────── */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1.5rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.footer-sep { opacity: 0.4; }

/* ── Mobile footer stacking ─────────────── */

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
  }

  .footer-sep {
    display: none;
  }
}
