/* =========================================================
   Tim Kurzbach — Warm Editorial
   ========================================================= */

:root {
  --bg: #f5f2ec;
  --bg-deep: #ebe7df;
  --surface: #ffffff;
  --surface-hover: #faf9f6;
  --text: #2c2a26;
  --text-secondary: #5a564e;
  --text-muted: #8a857b;
  --accent: #6b7c5e;
  --accent-hover: #556648;
  --line: rgba(44, 42, 38, 0.1);
  --line-strong: rgba(44, 42, 38, 0.18);

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* — Reset
   ------------------------------------------------------- */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

/* — Page Shell
   ------------------------------------------------------- */

.page-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* — Hero (Home)
   ------------------------------------------------------- */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}

.hero-portrait {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 20%;
  opacity: 0;
  transform: scale(1.04);
  animation: img-reveal 1.4s var(--ease-out) 0.2s forwards;
}

.hero-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 65%,
    var(--bg) 100%
  );
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(32px, 5vw, 80px) clamp(48px, 8vh, 120px);
}

.hero-text {
  max-width: 480px;
}

.hero-name {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-name-first,
.hero-name-last {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: text-up 0.9s var(--ease-out) forwards;
}

.hero-name-first {
  font-size: clamp(2.8rem, 4.5vw, 5.5rem);
  color: var(--text-muted);
  animation-delay: 0.5s;
}

.hero-name-last {
  font-size: clamp(3.6rem, 6vw, 7.5rem);
  margin-top: 0.05em;
  animation-delay: 0.65s;
}

/* — Contact
   ------------------------------------------------------- */

.hero-contact {
  opacity: 0;
  transform: translateY(16px);
  animation: text-up 0.8s var(--ease-out) 0.9s forwards;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s var(--ease-out);
}

.contact-link:hover,
.contact-link:focus-visible {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(44, 42, 38, 0.08);
  transform: translateY(-1px);
}

.contact-icon {
  flex-shrink: 0;
  opacity: 0.6;
}

.contact-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* — Footer
   ------------------------------------------------------- */

.site-footer {
  padding: 20px clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text-secondary);
  outline: none;
}

.footer-nav a[aria-current="page"] {
  color: var(--text-secondary);
}

.footer-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

/* — Legal pages
   ------------------------------------------------------- */

.page-legal .page-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 80px) clamp(20px, 4vw, 48px) 0;
}

.page-legal .site-footer {
  border-top: none;
  padding-top: 40px;
  padding-bottom: 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
}

.back-link::before {
  content: "←";
  font-size: 1.1em;
  transition: transform 0.25s var(--ease-out);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text-secondary);
  outline: none;
}

.back-link:hover::before {
  transform: translateX(-3px);
}

.legal-card {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  width: 100%;
  margin: 0;
}

.legal-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.legal-lead {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.legal-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.4;
}

.legal-section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-section p:first-of-type {
  margin-top: 12px;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section p + ul {
  margin-top: 14px;
}

.legal-card strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.legal-card a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}

.legal-card a:hover,
.legal-card a:focus-visible {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
  outline: none;
}

.legal-list {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-list li + li {
  margin-top: 4px;
}

/* — Animations
   ------------------------------------------------------- */

@keyframes img-reveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes text-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* — Responsive
   ------------------------------------------------------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-portrait {
    height: 56vh;
    min-height: 320px;
  }

  .hero-portrait-overlay {
    background: linear-gradient(
      to bottom,
      transparent 50%,
      var(--bg) 100%
    );
  }

  .hero-content {
    padding: 0 clamp(20px, 5vw, 40px) clamp(32px, 5vh, 56px);
    margin-top: -80px;
    position: relative;
    z-index: 1;
  }

  .hero-name-first {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-name-last {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .hero-name {
    margin-bottom: 20px;
  }

  .contact-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-portrait {
    height: 48vh;
  }

  .hero-content {
    margin-top: -60px;
  }
}

/* — Reduced motion
   ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero-portrait-img {
    opacity: 1;
    transform: none;
  }

  .hero-name-first,
  .hero-name-last,
  .hero-contact {
    opacity: 1;
    transform: none;
  }
}
