/* paulfuechsel.app. The same institutional system as albertludemann.com, on white: one grotesk
   (Geist), a 12-column grid with a grey label column, thin rules, his studio portrait. */

@font-face {
  /* Geist, SIL Open Font License, latin subset, weights 100-900 in one file */
  font-family: "Geist";
  src: url(/fonts/geist-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0b0c;
  --body: #3b3b3e;
  --grey: #85858a;
  --line: #e4e4e2;
  --panel: #f4f4f2;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --edge: clamp(20px, 4.5vw, 64px);
  --gap: clamp(88px, 12vh, 150px);
  --top: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html {
  background: #fff;
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: var(--top);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; width: 100%; height: auto; }

a { color: inherit; }

p { margin: 0 0 1em; }

.wrap {
  max-width: calc(1320px + var(--edge) * 2);
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* A section: its name small in the left column, everything else from the fourth column on. */
.row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 32px;
}

.label {
  margin: 0;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--grey);
}

.statement {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}

/* ------------------------------------------------------------ the bar */

.top {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--top);
  padding: 0 max(var(--edge), calc((100% - 1320px) / 2));
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}

.top.is-scrolled { border-bottom-color: var(--line); }

.top__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
}

.top__nav { display: flex; gap: 32px; }

.top__nav a {
  font-size: 15px;
  font-weight: 450;
  color: var(--body);
  text-decoration: none;
}

.top__nav a:hover { color: var(--ink); }

/* ------------------------------------------------------------ who */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  max-width: calc(1320px + var(--edge) * 2);
  min-height: min(100svh, 940px);
  margin: 0 auto;
  padding: calc(var(--top) + 56px) var(--edge) clamp(56px, 9vh, 96px);
}

.intro__role {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey);
}

.intro h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 132px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.05em;
}

.intro__line {
  max-width: 22em;
  margin: 28px 0 0;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--body);
}

.intro__portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #2b2c30;
}

.intro__portrait img {
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------ sections */

.sec {
  padding: var(--gap) 0;
  border-top: 1px solid var(--line);
}

.sec--panel { background: var(--panel); border-top: 0; }

/* ------------------------------------------------------------ the timeline */

.tl {
  margin: clamp(56px, 8vh, 96px) 0 0;
  padding: 0;
  list-style: none;
}

.tl__item {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 32px;
}

.tl__year {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
}

.tl__body {
  position: relative;
  padding: 0 0 clamp(64px, 9vh, 104px) clamp(28px, 3vw, 44px);
  border-left: 1px solid var(--line);
}

.tl__item:last-child .tl__body { padding-bottom: 0; }

.tl__body::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.tl__body h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.tl__role {
  margin: 10px 0 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey);
}

.tl__body > p:not(.tl__role):not(.tl__links) {
  max-width: 40em;
  color: var(--body);
}

.tl__links {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 500;
}

.tl__links a { text-decoration: none; }

.tl__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------ about */

.about__bio {
  max-width: 36em;
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
}

.facts {
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.facts dt { font-weight: 500; }

.facts dd { margin: 0; color: var(--body); }

/* ------------------------------------------------------------ contact */

.end {
  padding: var(--gap) 0 36px;
  background: var(--ink);
  color: #fff;
}

.end .label { color: rgba(255, 255, 255, .5); }

.end__mail {
  font-size: clamp(30px, 4.6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.end__mail:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }

.end__base {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(96px, 14vh, 160px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .5);
}

/* ------------------------------------------------------------ motion */

.js [data-rise] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js .is-in[data-rise] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------ narrow screens */

@media (max-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .intro__portrait { width: min(100%, 420px); order: -1; }
  .row, .tl__item { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tl__year { padding-left: clamp(28px, 3vw, 44px); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 600px) {
  :root { --top: 60px; }
  .top__nav { gap: 20px; }
  .end__mail { font-size: calc((100vw - 40px) / 10.5); }
}
