/* Sophia. Architektur — after "Website-Layout_2" (InDesign, 800 × 600 pt)
   Colours: background #FFAF78, text #BC002D.
   Type: Linux Libertine → Libertinus Serif (its open-source successor).
   Sizes in the layout: wordmarks ≈ 12 pt bold, "INQUIRY"/"ZURICH" 11 pt bold, small text ≈ 7 pt.
   Everything scales with the window width the way it relates to the 800 pt page. */

:root {
  --bg: #ffaf78;
  --ink: #bc002d;
  --font: "Libertinus Serif", "Linux Libertine", "Linux Libertine O", Georgia, serif;

  --margin: clamp(20px, 4.5vw, 64px);           /* 36 pt of 800 */
  --title-size: clamp(16px, 2vw, 22px);          /* wordmarks */
  --caps-size: clamp(14px, 1.78vw, 20px);        /* INQUIRY / ZURICH, one step below the title */
  --text-size: clamp(12px, 1.15vw, 14px);         /* small tracked text */

  --title-track: 0.75em;
  --caps-track: 0.15em;
  --text-track: 0.18em;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 1em;
  padding: calc(var(--margin) * 0.5) var(--margin) 0;
}

.wordmark {
  font-size: var(--title-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--title-track);
  line-height: 1;
}

/* Both wordmarks always stay on one line, sharing a baseline */
.site-header .wordmark {
  white-space: nowrap;
}

/* Cancel the trailing tracking so "ARCHITEKTUR" ends flush with the right margin */
.wordmark:last-child {
  margin-right: calc(var(--title-track) * -1);
}

/* ---------- Content (empty for now, pushes the footer down) ---------- */

.content {
  flex: 1;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8em 2em;
  padding: 0 var(--margin) calc(var(--margin) * 0.75);
  font-size: var(--text-size);
  letter-spacing: var(--text-track);
  line-height: 1;
}

.site-footer p {
  white-space: nowrap;
}

.caps {
  font-size: var(--caps-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--caps-track);
}

.site-footer p:first-child .caps {
  margin-right: 0.45em;
}

.site-footer p:last-child .caps {
  margin-left: 0.45em;
  margin-right: calc(var(--caps-track) * -1);
}

.email {
  cursor: pointer;
}

.email.is-copied::after {
  content: "  — copied";
}

/* ---------- Small screens ---------- */

@media (max-width: 520px) {
  :root {
    --title-track: 0.4em;
    --title-size: clamp(13px, 4vw, 16px);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer p:last-child .caps {
    margin-left: 0;
    margin-right: 0;
  }

  .site-footer p {
    white-space: normal;
  }
}
