/* ============================================================
   Ed Grzyb — Personal Site
   Shared Stylesheet — Navy & Gold Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --cream:       #eef2f8;
  --parchment:   #d8e2f0;
  --tan:         #d4a820;
  --rust:        #1a4a8a;
  --rust-dark:   #0f3060;
  --forest:      #2a5298;
  --forest-light:#4a72b8;
  --bark:        #0d1f3c;
  --warm-gray:   #6a7a90;
  --white:       #f5f8fd;
  --shadow:      rgba(13,31,60,0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Source Sans 3', sans-serif;

  --nav-height: 64px;
  --max-width:  860px;
  --radius:     6px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--bark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* subtle paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; display: block; }
a { color: var(--rust); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rust-dark); text-decoration: underline; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bark);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--tan);
  font-style: italic;
  white-space: nowrap;
  text-decoration: none;
}
.nav-brand:hover { color: var(--cream); text-decoration: none; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--rust);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--parchment);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Page Layout ─────────────────────────────────────────────── */
.page-wrap {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2rem 4rem;
}

/* wide variant for photo gallery */
.page-wrap--wide {
  max-width: 1100px;
}

/* ── Page Header ─────────────────────────────────────────────── */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--parchment);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--bark);
  line-height: 1.2;
}

.page-header .subtitle {
  font-family: var(--font-ui);
  color: var(--warm-gray);
  margin-top: 0.4rem;
  font-size: 1rem;
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--bark);
}

h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1rem; font-weight: 600; color: var(--rust); margin: 1rem 0 0.25rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--parchment);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--parchment);
  margin: 2rem 0;
}

/* ── Pill / Tag ──────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--parchment);
  color: var(--rust);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  margin: 0.2rem 0.2rem 0.2rem 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--rust);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { background: var(--rust-dark); color: var(--white); transform: translateY(-1px); text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--rust);
  color: var(--rust);
}
.btn-outline:hover { background: var(--rust); color: var(--white); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--bark);
  color: var(--warm-gray);
  text-align: center;
  padding: 1.5rem 2rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.site-footer a { color: var(--tan); }
.site-footer a:hover { color: var(--cream); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bark);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 0.6rem 0.75rem; }

  .page-wrap { padding: 2rem 1.25rem 3rem; }
  .card { padding: 1.25rem 1.5rem; }
}
