/* Hallmark · genre: editorial · macrostructure: Split Studio · hero: H2 split diptych (name left, portrait right)
 * theme: custom · vibe: "paper folder, powder blue tabs, espresso ink" · paper: oklch(97% 0.011 90) · accent: oklch(88.2% 0.023 222)
 * display: Bricolage Grotesque · body: Instrument Sans · axes: light / grotesk-sans / cool
 * enrichment: none (typography, portrait slot) · nav: N9 edge-aligned · footer: Ft2 single line
 * studied: no · context: user-provided · v1.1.0
 * pre-emit critique: P4 H4 E4 S5 R4 V4
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Base */

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

html {
  overflow-x: clip;
  scroll-padding-top: var(--space-lg);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

:focus-visible {
  outline: var(--rule-focus) solid var(--color-focus);
  outline-offset: 3px;
}

h1, h2 {
  min-width: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
h1 { font-size: var(--text-display); line-height: 0.9; }
h2 { font-size: var(--text-2xl); }
h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
}

.wrap {
  width: min(var(--page-max), 100% - 2 * var(--page-gutter));
  margin-inline: auto;
}

main > section + section { margin-top: var(--space-2xl); }
@media (min-width: 60rem) {
  main > section + section { margin-top: var(--space-3xl); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 2.75rem;
  padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out),
              background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out);
}
.btn:active { transform: translateY(0); }

.btn--outline { background: transparent; color: var(--color-ink); }
.btn--inverse {
  border-color: var(--color-accent);
  background: transparent;
  color: var(--color-paper);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--color-ink-hover); transform: translateY(-1px); }
  .btn--outline:hover,
  .btn--inverse:hover { background: var(--color-accent); color: var(--color-accent-ink); }
}
@media (pointer: coarse) {
  .btn { min-height: 3rem; }
}

/* Nav · N9 edge-aligned: wordmark left, one action right, nothing between */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
}
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

/* Hero */

.hero {
  display: grid;
  gap: var(--space-2xl);
  padding-block: var(--space-xl) var(--space-2xl);
}
main > .hero + section { margin-top: 0; }
.hero__text { display: grid; justify-items: start; }
.hero__role {
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.3;
}
.hero__tagline {
  margin-top: var(--space-2xs);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--text-lg);
}
.hero .btn { margin-top: var(--space-xl); }

.hero__portrait {
  position: relative;
  width: min(100% - var(--space-md), 23rem);
  margin-inline-start: var(--space-md);
}
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  transform: translate(calc(-1 * var(--space-md)), var(--space-md)) rotate(-3deg);
}
.hero__portrait .slot {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    padding-block: var(--space-2xl) var(--space-3xl);
  }
  .hero__portrait { justify-self: end; margin-inline-start: 0; }
}

/* Media slots · show the expected file name until the file exists */

.media { min-width: 0; }

.slot {
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
  border: var(--rule-hair) dashed var(--color-ink-2);
  border-radius: var(--radius-md);
  background: var(--color-accent-2);
  text-align: center;
}
.slot.is-filled {
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
}
.slot img, .slot video { width: 100%; height: 100%; object-fit: cover; }

.slot__label {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
}
.slot__label small {
  font-size: 1em;
  font-weight: 400;
  color: var(--color-ink-2);
  overflow-wrap: anywhere;
}

.media--tall .slot { aspect-ratio: 9 / 16; }
.media--visual .slot { aspect-ratio: 4 / 5; }

/* Three vertical videos: a swipe row on phones, a grid from 40rem */
.media-row {
  display: flex;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.media-row > .media { flex: 0 0 62%; scroll-snap-align: start; }

@media (min-width: 40rem) {
  .media-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 0;
    overflow: visible;
  }
}

.caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-sm);
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
}
.caption dt { color: var(--color-ink-2); }
.caption dd { justify-self: start; font-weight: 600; }

/* Marks content that Alina still has to supply */
.todo {
  padding: 0 var(--space-2xs);
  border: var(--rule-hair) dashed var(--color-ink-2);
  border-radius: var(--radius-sm);
  background: var(--color-accent-2);
  color: var(--color-ink-2);
  font-weight: 400;
}

/* Section text · every title sits on the page's left axis, intro directly under it */

.split { display: grid; gap: var(--space-xl); }
.split__text { display: grid; gap: var(--space-lg); align-content: start; min-width: 0; }

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-2xl);
    align-items: start;
  }
}

/* Clips: a narrow title column, then three videos of the same width */
@media (min-width: 60rem) {
  .split--clips { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl); }
}

.block { display: grid; gap: var(--space-xs); }

.rows > * {
  display: grid;
  gap: var(--space-3xs);
  padding-block: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.rows dt, .rows li { font-weight: 600; }
.rows dd { color: var(--color-ink-2); }

@media (min-width: 40rem) and (max-width: 59.99rem) {
  .rows > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-md); }
}
@media (min-width: 60rem) {
  .rows--across {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }
}

.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chips li {
  padding: var(--space-2xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Über mich */

.about { display: grid; gap: var(--space-lg); }
.about__text {
  max-width: 68ch;
  font-size: var(--text-lg);
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
}
@media (min-width: 60rem) {
  .about__text { max-width: none; columns: 2; column-gap: var(--space-2xl); }
}

/* Ausgewählte Projekte · two folders that jump to their case */

.projects__grid { display: grid; gap: var(--space-xl); margin-top: var(--space-xl); }

.folder {
  display: block;
  text-decoration: none;
  transition: transform var(--dur-short) var(--ease-out);
}
.folder__tab, .case__tab {
  display: inline-block;
  padding: var(--space-sm) var(--space-xl) var(--space-xs) var(--space-lg);
  border-radius: var(--radius-md) var(--radius-lg) 0 0;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.folder__body {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  background: var(--color-paper-2);
}
.folder .slot { aspect-ratio: 4 / 3; }
.folder:active { transform: translateY(0); }
.folder__more { font-weight: 600; white-space: nowrap; }

@media (hover: hover) and (pointer: fine) {
  .folder:hover { transform: translateY(-2px); }
  .folder:hover .folder__more { text-decoration: underline; text-underline-offset: 0.2em; }
}
@media (min-width: 40rem) {
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .folder:nth-child(2) { margin-top: var(--space-2xl); }
}

/* Case studies · a folder divider: the tab sits on a rule that spans the page,
   and the content stays on the page's left axis */

.case__sheet {
  display: grid;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: var(--rule-strong) solid var(--color-accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  padding-block: var(--space-md);
  border-block: var(--rule-hair) solid var(--color-rule);
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  min-width: 0;
}
.stat__what { margin-top: var(--space-xs); font-weight: 600; line-height: 1.3; }
.stat__note { font-size: var(--text-sm); color: var(--color-ink-2); }

/* One large visual beside two small ones */
.visuals {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-md);
}
.visuals .media:first-child { grid-row: span 2; }
.visuals .media:first-child .slot { height: 100%; aspect-ratio: auto; }

/* Kontakt · full-bleed espresso band that closes the page */

.contact {
  background: var(--color-ink);
  color: var(--color-paper);
}
.contact__inner {
  display: grid;
  gap: var(--space-lg);
  justify-items: start;
  padding-block: var(--space-3xl) var(--space-2xl);
}
.contact__mail {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
@media (min-width: 40rem) {
  .contact__mail { font-size: var(--text-2xl); }
}
@media (hover: hover) and (pointer: fine) {
  .contact__mail:hover { color: var(--color-accent); }
}
.contact__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.contact .todo {
  border-color: var(--color-paper-muted);
  background: transparent;
  color: var(--color-paper-muted);
}
.contact :focus-visible,
.foot :focus-visible { outline-color: var(--color-focus-inverse); }

/* Footer · Ft2 single line */

.foot { background: var(--color-ink); color: var(--color-paper-muted); font-size: var(--text-sm); }
.foot__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule-inverse);
}
.foot a { text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .foot a:hover { color: var(--color-paper); }
}

/* Motion · one entrance on load, nothing on scroll */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes reveal {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .reveal { transform: none; }
}
