/* File: base.css
   Folder: portfolio_projects/angeln-in-georgien/assets/css
   Created date: 2025-05-03
   Last updated date: 2026-05-17
   Author: Codex
   Purpose: Shared visual system for the Angeln in Georgien static website.
*/

:root {
  color-scheme: light;
  --forest-950: #08130c;
  --forest-900: #0d1a0f;
  --forest-800: #142218;
  --forest-700: #1f3525;
  --forest: var(--forest-900);
  --forest2: var(--forest-800);
  --moss: #59704a;
  --gold: #765414;
  --gold-strong: #e7b85c;
  --gold-lt: var(--gold-strong);
  --cream: #f4efe4;
  --cream-2: #ebe4d5;
  --cream2: var(--cream-2);
  --paper: #fffdf7;
  --ink: #182117;
  --muted: #5b685a;
  --muted-lt: var(--muted);
  --on-dark: #f6f0e5;
  --border: rgba(31, 53, 37, 0.18);
  --border-dark: rgba(246, 240, 229, 0.16);
  --shadow: 0 24px 70px rgba(31, 53, 37, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --cream: #101b13;
    --cream-2: #142218;
    --paper: #17261b;
    --ink: #f5f0e8;
    --muted: rgba(246, 240, 229, 0.78);
    --border: rgba(246, 240, 229, 0.14);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --gold: #e7b85c;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  padding-top: 72px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body.dark-page {
  background: var(--forest-950);
  color: var(--on-dark);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-strong);
  outline-offset: 3px;
}

p {
  margin: 0;
}

.container {
  width: min(var(--max), calc(100vw - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 18px;
  top: 18px;
  width: auto;
  height: auto;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--forest-950);
  text-decoration: none;
  font-weight: 700;
}

.site-header-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(8, 19, 12, 0.94);
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(10px);
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
}

.service-status {
  margin: 0 auto;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(246, 240, 229, 0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--on-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.nav-open .nav-toggle-lines {
  background: transparent;
}

.nav-open .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav a {
  position: relative;
  color: rgba(246, 240, 229, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold-strong);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-strong);
}

.site-footer-shell {
  background: var(--forest-950);
  color: rgba(246, 240, 229, 0.72);
  border-top: 1px solid var(--border-dark);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(280px, 1fr) minmax(180px, auto);
  gap: 28px;
  align-items: start;
  padding: 34px 0;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-brand strong {
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 21px;
}

.footer-brand span {
  max-width: 560px;
  font-size: 14px;
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.creator-credit {
  display: grid;
  gap: 7px;
}

.creator-credit strong {
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 16px;
}

.creator-credit > span {
  font-size: 13px;
}

.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.creator-links a {
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.creator-links a:hover {
  text-decoration: underline;
}

.footer-socials a {
  color: rgba(246, 240, 229, 0.78);
  text-decoration: none;
}

.footer-socials a:hover {
  color: var(--gold-strong);
}

.footer-meta {
  grid-column: 1 / -1;
  color: rgba(246, 240, 229, 0.68);
  font-size: 13px;
}

.footer-meta a {
  color: rgba(246, 240, 229, 0.66);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--gold-strong);
}


.footer-link-button {
  appearance: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(246, 240, 229, 0.66);
  font: inherit;
  cursor: pointer;
}

.footer-link-button:hover {
  color: var(--gold-strong);
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(920px, calc(100% - 36px));
  margin-inline: auto;
  padding: 20px;
  border: 1px solid rgba(231, 184, 92, 0.4);
  border-radius: var(--radius);
  background: var(--forest-950);
  color: var(--on-dark);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.consent-copy {
  display: grid;
  gap: 5px;
}

.consent-copy strong {
  color: var(--gold-strong);
  font-family: var(--serif);
  font-size: 18px;
}

.consent-copy p {
  color: rgba(246, 240, 229, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.consent-copy a {
  color: var(--gold-strong);
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.consent-button {
  min-height: 44px;
  border: 1px solid rgba(246, 240, 229, 0.28);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.consent-decline {
  background: transparent;
  color: var(--on-dark);
}

.consent-accept {
  border-color: var(--gold-strong);
  background: var(--gold-strong);
  color: var(--forest-950);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(200, 151, 58, 0.45);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section {
  padding: 86px 0;
}

.section-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin: 10px 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.06;
}

.section-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.dark-section {
  background: var(--forest-900);
  color: var(--on-dark);
}

.dark-section .section-title {
  color: var(--on-dark);
}

.dark-section .section-lead {
  color: rgba(246, 240, 229, 0.68);
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: var(--forest-950);
}

.button-primary:hover {
  background: var(--gold-strong);
}

.button-secondary {
  border: 1px solid rgba(246, 240, 229, 0.34);
  color: var(--on-dark);
}

.button-secondary:hover {
  border-color: var(--gold-strong);
  color: var(--gold-strong);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 12px 40px rgba(8, 19, 12, 0.06);
}

@media (prefers-color-scheme: dark) {
  .card {
    background: rgba(255, 255, 255, 0.045);
  }

  .section-title,
  .legal-content h1,
  .legal-content strong {
    color: var(--ink);
  }

  .legal-content a {
    color: var(--gold-strong);
  }
}

.dark-card {
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.045);
}

.legal-content {
  padding: 64px 0 80px;
}

.legal-content h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
}

.legal-content p {
  max-width: 860px;
  margin-bottom: 18px;
  color: var(--muted);
}

.legal-content strong {
  color: var(--ink);
}

.legal-content a {
  color: var(--forest-700);
  font-weight: 700;
}

@media (max-width: 820px) {
  body {
    padding-top: 64px;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    min-height: 64px;
    padding: 16px 0;
    align-items: center;
    flex-direction: row;
    gap: 16px;
  }

  .service-status {
    display: none;
  }

  .nav {
    position: fixed;
    top: 64px;
    right: 14px;
    left: 14px;
    z-index: 60;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(246, 240, 229, 0.16);
    border-radius: var(--radius-sm);
    background: var(--forest-950);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  }

  .nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-open .nav {
    display: grid;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-socials {
    justify-content: flex-start;
  }


  .consent-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header-shell,
  .site-footer-shell,
  .consent-banner,
  noscript {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .container {
    width: auto;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* Accessibility and narrow-screen safeguards. */
.footer-meta a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 820px) {
  .site-header,
  .contact-panel,
  .contact-note,
  .legal-content {
    min-width: 0;
  }

  .contact-panel,
  .contact-note,
  .legal-content,
  .contact-panel a,
  .contact-note a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
