/* ============================================
   TINO GRASS – Personal Website
   Design: Literary-meets-startup, Freiburg 2026
   ============================================ */

:root {
  --ink:       #1a1a18;
  --paper:     #f5f2eb;
  --warm-mid:  #e8e3d7;
  --accent:    #2d5a3d;      /* deep forest green */
  --accent-lt: #4a7c5f;
  --gold:      #b8963e;
  --text-body: #3a3a36;
  --text-muted:#7a7a72;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
  --mono:      'Courier Prime', 'Courier New', monospace;
  --radius:    4px;
  --max-w:     1100px;
  --section-gap: 6rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITY ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245,242,235,0.5);
}
.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(245,242,235,0.1);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,242,235,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--warm-mid);
  transition: box-shadow 0.2s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(26,26,24,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.lang-toggle {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: none;
  border: 1.5px solid var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: var(--accent);
  color: #fff;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  gap: 1rem;
  border-top: 1px solid var(--warm-mid);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1rem;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 400;
}

.lang-mobile { align-self: flex-start; margin-top: 0.5rem; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(45,90,61,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(184,150,62,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(245,242,235,0.65);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-style: italic;
  font-family: var(--serif);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-deco {
  position: absolute;
  right: 2rem;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  z-index: 1;
}

.hero-deco-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  align-self: flex-end;
}

.hero-deco-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(245,242,235,0.35);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ---- SECTIONS ---- */
.section {
  padding: var(--section-gap) 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 3rem;
  font-style: italic;
  font-family: var(--serif);
}

/* ---- BOOKS ---- */
.books {
  background: var(--paper);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
}

.book-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--warm-mid);
  transition: box-shadow 0.2s;
}

.book-card:hover {
  box-shadow: 0 8px 32px rgba(26,26,24,0.1);
}

.book-cover {
  flex-shrink: 0;
  width: 90px;
  height: 135px;
  position: relative;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 3px 3px 12px rgba(26,26,24,0.25);
}

.book-cover-1 { background: #1a1a18; }
.book-cover-2 { background: #2d3a2e; }

.book-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px 0 0 2px;
}

.book-front {
  position: absolute;
  inset: 0;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-mock-title {
  font-family: var(--serif);
  font-size: 0.65rem;
  line-height: 1.3;
  color: rgba(245,242,235,0.9);
  font-style: italic;
}

.book-mock-author {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.book-info { flex: 1; }

.book-series {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.book-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.book-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.book-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.book-isbn {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.book-cover-img {
  flex-shrink: 0;
  width: 110px;
}

.book-cover-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 4px 4px 16px rgba(26,26,24,0.2);
}

/* ---- STARTUPS ---- */
.startups {
  background: var(--ink);
  color: var(--paper);
}

.startups .section-label { color: var(--gold); }
.startups .section-title { color: var(--paper); }
.startups .section-intro { color: rgba(245,242,235,0.55); }

.startups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.startup-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(245,242,235,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  transition: border-color 0.2s, background 0.2s;
}

.startup-card:hover {
  border-color: var(--accent-lt);
  background: rgba(45,90,61,0.08);
}

.startup-icon {
  font-size: 2rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.startup-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 0.6rem;
}

.startup-desc {
  font-size: 0.9rem;
  color: rgba(245,242,235,0.6);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.startup-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.startup-tags span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,150,62,0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.startups .btn-outline {
  color: var(--accent-lt);
  border-color: var(--accent-lt);
}

.startups .btn-outline:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---- ABOUT ---- */
.about {
  background: var(--warm-mid);
}

.about-photo-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  display: block;
  box-shadow: 0 12px 40px rgba(26,26,24,0.18);
}

.about-text-wrap p {
  margin-bottom: 1.25rem;
  color: var(--text-body);
  line-height: 1.75;
}

.about-text-wrap .btn { margin-top: 0.75rem; }

.timeline-full {
  border-top: 1px solid rgba(26,26,24,0.12);
  padding-top: 2.5rem;
}

.timeline-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 0;
  position: relative;
}

.timeline-item::before { display: none; }

.timeline-year {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  flex-shrink: 0;
  width: 42px;
  padding-top: 0.9rem;
  line-height: 1.2;
}

.timeline-content {
  background: #fff;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  flex: 1;
  border: 1px solid rgba(26,26,24,0.08);
}

.timeline-content strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- CONTACT ---- */
.contact {
  background: var(--paper);
}

.contact-inner { max-width: 680px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--warm-mid);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--ink);
  color: rgba(245,242,235,0.5);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--paper);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(245,242,235,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.8rem;
}

.footer-legal a {
  color: rgba(245,242,235,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--paper); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-deco { display: none; }

  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  .section-gap: 4rem;

  .books-grid { grid-template-columns: 1fr; }
  .book-card { flex-direction: column; }

  .about-photo-row { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { height: 320px; object-position: center 20%; }
  .timeline { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
  .startups-grid { grid-template-columns: 1fr; }
  .startup-card { flex-direction: column; gap: 1rem; }
}

/* ---- LINKEDIN BUTTON ---- */
.about-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.linkedin-btn svg {
  flex-shrink: 0;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-linkedin svg {
  opacity: 0.7;
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
