/* ==========================================================================
   christophvorlen.com
   Flat selectors, no nesting. Same tokens and same three faces as before.
   There is no motion on this page, so prefers-reduced-motion needs no rule.
   ========================================================================== */

/* --- Fonts --------------------------------------------------------------- */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}

/* One variable file covers regular (400) and medium (500). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/inter-latin-variable-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-variable-normal.woff2') format('woff2');
}

/* --- Tokens -------------------------------------------------------------- */

:root {
  --bg:      #F6F4EF;  /* warm off-white background */
  --text:    #1A1A1A;  /* near-black body and headlines */
  --muted:   #6E6A64;  /* secondary text, footer, status labels */
  --accent:  #15603A;  /* links + the italic accent word. Nothing else. */
  --border:  #E6E2DB;  /* hairline rules and card frames */

  --accent-hover: #104C2E;  /* the same green, darkened. Link hover only. */

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* --- Base ---------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

/* Stops phones from enlarging text on their own when rotated to landscape. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

p {
  margin: 0 0 24px;
}

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

/* --- Links --------------------------------------------------------------- */

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Shared type roles --------------------------------------------------- */

/* Eyebrows and status labels. The copy is already uppercase in the HTML. */
.eyebrow,
.status {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 16px;
}

/* The signature element: one word italic serif in --accent, full stop
   stays near-black because it sits outside the <em>. */
h1 em,
h2 em {
  font-style: italic;
  color: var(--accent);
}

/* --- Header -------------------------------------------------------------- */

.header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

/* --- Hero ---------------------------------------------------------------- */

/* Two columns: the name on the left, the label and paragraphs on the right. */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 104px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 0;
}

.hero-text {
  padding-top: 10px;
}

/* --- Projects ------------------------------------------------------------ */

.projects {
  margin-top: 120px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project {
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 6px 16px rgba(26, 26, 26, 0.05);
}

.project-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.project-description {
  margin: 0;
}

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

.footer {
  margin-top: 120px;
  padding: 24px 0 48px;
  border-top: 1px solid var(--border);
}

/* Copyright on the left, email on the right. */
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* The disclosure Austrian media law asks for: name and place of residence. */
.footer .imprint {
  margin-top: 12px;
}

/* --- Tablet: the hero stacks --------------------------------------------- */

@media (max-width: 820px) {

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 80px;
  }

  .hero-text {
    padding-top: 0;
  }

  h1 {
    font-size: 52px;
  }

}

/* --- Mobile -------------------------------------------------------------- */

@media (max-width: 640px) {

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .projects {
    margin-top: 80px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-row {
    display: block;
  }

  .footer .footer-right {
    margin-top: 8px;
  }

}
