/* ============================================================
   style.css — Shared base for joachim.life
   All pages link to this file. Page-specific styles remain
   in each file's own <style> block.
   ============================================================ */

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

/* DESIGN TOKENS */
:root {
  --bg:         #f5f0e8;
  --text:       #2c3e2d;
  --muted:      #5a6b5b;
  --accent:     #c8883a;
  --light-line: #d4cfc4;
  --dark-bg:    #1e2a1e;
  --card-bg:    #ece6d8;
  --max:        720px;
}

/* BASE */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
}

/* HEADINGS */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text);
  line-height: 1.2;
}
h1 { font-size: clamp(38px, 4vw, 58px); font-weight: 300; }
h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 300; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 400; }
h1 em, h2 em, h3 em { font-style: italic; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light-line);
}

nav .name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Desktop: links visible, hamburger hidden */
nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav .nav-links a,
nav .back-link,
nav .nav-back {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav .nav-links a:hover,
nav .back-link:hover,
nav .nav-back:hover { color: var(--accent); }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  padding: 16px 36px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--accent); color: var(--bg); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-secondary {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 24px;
  border-bottom: 1px solid var(--light-line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--text); border-color: var(--text); }

.btn-light {
  display: inline-block;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  padding: 16px 40px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn-light:hover { background: var(--accent); color: var(--text); }

.btn-ghost {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  transition: color 0.2s;
  padding: 0;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--text); }

/* SECTIONS */
section { padding: 100px 40px; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* DIVIDER */
.divider,
hr.divider { border: none; border-top: 1px solid var(--light-line); margin: 0 40px; }

/* FOOTER */
footer {
  padding: 48px 40px;
  border-top: 1px solid var(--light-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg);
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-links { display: flex; gap: 24px; }

.footer-links a,
footer a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
footer a:hover { color: var(--accent); }

.copyright { font-size: 13px; color: var(--muted); }

/* INPUTS */
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--light-line);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
input::placeholder { color: var(--muted); opacity: 0.7; }
input:focus { border-color: var(--text); }

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }

  /* Show hamburger, hide nav links by default */
  .nav-toggle { display: flex !important; }

  nav .nav-links {
    display: none !important;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(245, 240, 232, 0.98);
    backdrop-filter: blur(8px);
    padding: 80px 32px 40px;
    z-index: 105;
    border-bottom: 1px solid var(--light-line);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  nav .nav-links.open { display: flex !important; }

  nav .nav-links li { border-bottom: 1px solid var(--light-line); }
  nav .nav-links li:first-child { border-top: 1px solid var(--light-line); }

  nav .nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 16px;
    letter-spacing: 0.08em;
  }
  section { padding: 72px 24px; }
  .divider, hr.divider { margin: 0 24px; }
  footer { padding: 40px 24px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .btn-secondary { margin-left: 0; margin-top: 16px; }
}

/* BREADCRUMB BACK LINK */
.breadcrumb {
  padding: 20px 40px 0;
  max-width: var(--max);
  margin: 0 auto;
}

.breadcrumb a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--accent); }
