/*
 * Landing page - Tschichold-inspired
 * Asymmetric grid, bold lowercase, geometric accent
 */

:root {
  --cream: #f5f2eb;
  --warm-gray: #d4cfc4;
  --charcoal: #2a2a28;
  --ink: #1a1a18;
}

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

html {
  font-size: clamp(16px, 1.5vw, 20px);
}

body {
  font-family: 'Dupla', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  min-height: 100dvh;

  /* Subtle paper texture via noise */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  background-size: 150px;
}

main {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto auto 1fr;
  padding: clamp(2rem, 5vw, 4rem);
  gap: 0;
}

/* The geometric accent - a circle like Tschichold */
.circle {
  grid-column: 2;
  grid-row: 2 / 4;
  justify-self: end;
  align-self: center;

  width: clamp(180px, 30vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f5f2eb;

  /* Offset from center */
  margin-right: 10%;
  margin-top: 2rem;
}

/* Small date text - positioned like "vom 16. januar..." */
.date {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;

  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--charcoal);

  margin-bottom: 4rem;

  &::before {
    content: '●';
    margin-right: 0.5em;
    font-size: 0.5em;
    vertical-align: middle;
  }
}

.date a {
  color: inherit;
  text-decoration: none;
}

/* Main title - bold, lowercase, left-aligned */
h1 {
  grid-column: 1;
  grid-row: 3;
  align-self: start;

  font-family: 'Kapra Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: lowercase;

  opacity: 0.5;

  /* Rule above like Tschichold */
  padding-top: 1.5rem;
  border-top: 2px solid var(--charcoal);
  margin-top: 2rem;
}

/* Navigation - stacked, right of circle */
nav {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;

  margin-bottom: 1rem;
  margin-right: 10%;
}

nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.01em;

  transition: color 0.2s ease;

  &:hover {
    color: var(--ink);
  }
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
  main {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto auto 1fr;
  }

  .circle {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    margin-right: 0;
    width: 40vw;
  }

  .date {
    grid-column: 1;
    grid-row: 1;
  }

  h1 {
    grid-column: 1;
    grid-row: 3;
  }

  nav {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
    align-items: flex-start;
    margin-right: 0;
    margin-top: 2rem;
  }
}
