/* ==========================================================================
   BASE.CSS — Design tokens, resets, typography, layout utilities
   Wedding website: Iveta & Štěpán | September 12, 2026
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Montserrat:wght@300;400;500&subset=latin,latin-ext&display=swap');

/* --------------------------------------------------------------------------
   2. CSS Custom Properties (design tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Color palette — warm ivory + Tuscan gold */
  --color-cream:       #F9F5EF;
  --color-warm-white:  #FDFAF5;
  --color-gold:        #B8965A;
  --color-gold-light:  #D4B483;
  --color-gold-dark:   #8A6E3E;

  /* Text scale */
  --color-text-dark:   #2C2318;
  --color-text-mid:    #6B5744;
  --color-text-light:  #9E8A76;

  /* Borders */
  --color-border:      rgba(184, 150, 90, 0.25);
  --color-border-mid:  rgba(184, 150, 90, 0.45);

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Montserrat', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  100px;

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Nav height (used to offset anchors) */
  --nav-height: 64px;
}

/* --------------------------------------------------------------------------
   3. Box-sizing reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   4. Base HTML / Body
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  /* Offset anchor links so content isn't hidden under fixed nav */
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  background-color: var(--color-warm-white);
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   5. Typography helpers
   -------------------------------------------------------------------------- */

/* Eyebrow / label above headings */
.label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Large serif display headings */
.heading-display {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-text-dark);
}

/* Body copy in muted tone */
.body-muted {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   6. Layout utilities
   -------------------------------------------------------------------------- */

/* Full-width section with alternating cream background */
.section {
  padding: var(--space-xl) var(--space-md);
}

.section--cream {
  background-color: var(--color-cream);
}

/* Constrain inner content to readable max-width */
.container {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Centered section header block */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header .label {
  margin-bottom: var(--space-sm);
}

.section-header .heading-display {
  margin-bottom: 12px;
}

.section-header .body-muted {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Thin gold ornament divider between sections */
.ornament {
  text-align: center;
  font-size: 18px;
  letter-spacing: 12px;
  color: var(--color-gold-light);
  padding: 4px 0;
  user-select: none;
}

/* Horizontal rule — fades in from center */
.rule {
  width: 60px;
  height: 1px;
  background: var(--color-gold-light);
  border: none;
  margin: var(--space-md) auto;
}

/* --------------------------------------------------------------------------
   7. Photo placeholder (swap out for real <img> tags later)
   -------------------------------------------------------------------------- */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-cream);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-md);
  gap: var(--space-xs);
  color: var(--color-text-light);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* When the placeholder is a real <img>, suppress flex layout */
img.photo-placeholder {
  display: block;
}

.photo-placeholder svg {
  opacity: 0.28;
}

/* Circular variant (hero portrait) */
.photo-placeholder--circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
}

/* Wide landscape variant (venue, band) */
.photo-placeholder--wide {
  width: 100%;
  height: 220px;
  margin-bottom: var(--space-md);
}

/* Tall variant (inside band card grid) */
.photo-placeholder--tall {
  width: 100%;
  height: 260px;
}

/* --------------------------------------------------------------------------
   8. Button styles
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Outlined gold button */
.btn--outline {
  border: 0.5px solid var(--color-gold);
  color: var(--color-gold-dark);
  background-color: transparent;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--color-gold);
  color: var(--color-warm-white);
  outline: none;
}

/* Solid gold button (used in forms) */
.btn--solid {
  border: none;
  background-color: var(--color-gold);
  color: var(--color-warm-white);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background-color: var(--color-gold-dark);
  outline: none;
}

/* Full-width block button */
.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}
