/* robinflorin.com: light, calm, earthy.
   A wide nature photo with the name on top, then white space, thin letters and three things.
   One typeface (Source Sans 3, a variable font: one file carries every weight). */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ colours */
:root {
  color-scheme: light;
  --bg: #fffdf9;
  --ink: #3a362e;
  --strong: #2b2821;
  --soft: #736b5c;
  --line: #e7e1d4;
  --accent: #56682b;
  --band: #f4efe3;
  --foot: #2e3524;
  --foot-ink: #e6e4d6;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --wrap: 68rem;
  --face: clamp(9.5rem, 20vw, 12.5rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #191815;
    --ink: #ddd7c9;
    --strong: #f0ebdf;
    --soft: #a59e8d;
    --line: #322f28;
    --accent: #b9c887;
    --band: #211f1a;
    --foot: #11100d;
    --foot-ink: #cfc9bb;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191815;
  --ink: #ddd7c9;
  --strong: #f0ebdf;
  --soft: #a59e8d;
  --line: #322f28;
  --accent: #b9c887;
  --band: #211f1a;
  --foot: #11100d;
  --foot-ink: #cfc9bb;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
picture { display: block; }
img { display: block; width: 100%; height: auto; background: var(--line); }
a { color: inherit; text-decoration-thickness: .06em; text-underline-offset: .22em; transition: color .15s; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: .6rem 1rem; background: var(--strong); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--bg); }

/* ------------------------------------------------------------------ top bar */
.top { padding-block: 1rem; }
.top--over { position: absolute; inset: 0 0 auto 0; z-index: 3; color: #fff; }
.top__row { display: flex; align-items: center; gap: .6rem; }
.top__brand { margin-right: auto; min-width: 0; }
.top__name, .top__place {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.lang, .theme {
  flex: none;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: 50%;
  background: none; color: inherit; padding: 0;
  font: inherit; font-size: .84rem; font-weight: 600; letter-spacing: .08em;
  text-decoration: none; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lang:hover, .theme:hover { border-color: currentColor; }
.top--over .lang, .top--over .theme { border-color: rgba(255, 255, 255, .6); }
.top--over a:hover, .top--over .lang:hover, .top--over .theme:hover { color: #fff; border-color: #fff; }
.top--over :focus-visible, .hero :focus-visible { outline-color: #fff; }
.theme__icon {
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

/* ------------------------------------------------------------------ first screen: photo, name, the three */
.hero {
  position: relative; isolation: isolate;
  display: grid; align-items: center;
  min-height: clamp(27rem, 74vh, 46rem);
  background: #2e3524; color: #fff; text-align: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg picture, .hero__bg img { width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 50% 42%; background: none; filter: saturate(.78) sepia(.14); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24, 28, 17, .58) 0%, rgba(24, 28, 17, .4) 45%, rgba(24, 28, 17, .6) 100%);
}
.hero__inner { padding-block: 5.5rem calc(var(--face) / 2 + 2.5rem); text-shadow: 0 1px 22px rgba(12, 14, 8, .45); }
.hero__name {
  font-weight: 250;
  font-size: clamp(2.7rem, 7.4vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.triad {
  margin-top: clamp(1rem, 2.4vw, 1.6rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .05em 1.15em;
  font-size: clamp(1.6rem, 3.4vw, 2.55rem);
  font-weight: 300;
  line-height: 1.35;
}
.triad a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.triad a:hover { color: #fff; border-bottom-color: currentColor; }
@media (max-width: 640px) {
  .triad { flex-direction: column; align-items: center; }
}

/* ------------------------------------------------------------------ face and the one line */
.intro { text-align: center; padding-bottom: clamp(1rem, 3vw, 2rem); }
.intro__face { width: var(--face); margin: calc(var(--face) / -2) auto 0; position: relative; z-index: 1; }
.intro__face img {
  aspect-ratio: 1; object-fit: cover; object-position: 50% 6%;
  border-radius: 50%; border: 6px solid var(--bg);
}
.intro__lead {
  max-width: 28ch; margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  font-size: clamp(1.65rem, 3.6vw, 2.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--accent);
  text-wrap: balance;
}

/* ------------------------------------------------------------------ the three */
.el { padding-block: clamp(3.25rem, 8vw, 6.5rem); }
.el--band { background: var(--band); }
.el__grid { display: grid; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.el__w {
  font-weight: 300;
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--strong);
  margin-bottom: .8rem;
}
.el__line {
  max-width: 27ch;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.3;
  color: var(--accent);
  text-wrap: balance;
  margin-bottom: 1rem;
}
.el__body { max-width: 34rem; }
.el__link { margin-top: 1.25rem; font-weight: 600; }
.el__link a { color: var(--accent); }
.el__link a:hover { color: var(--strong); }
.el__photo img { border-radius: 3px; }
.el--steps .el__photo { max-width: 24rem; width: 100%; }

@media (min-width: 880px) {
  .el__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .el--band .el__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .el--band .el__photo { order: -1; }
  .el--steps .el__photo { justify-self: center; }
}

/* ------------------------------------------------------------------ contact */
.contact { padding-block: clamp(3.5rem, 9vw, 7rem); border-top: 1px solid var(--line); text-align: center; }
.contact__line { color: var(--soft); }
.contact__big {
  margin-top: .2rem;
  font-weight: 250;
  font-size: clamp(2.7rem, 8vw, 5rem);
  line-height: 1.1;
  letter-spacing: -.012em;
}
.contact__big a { color: var(--strong); text-decoration: none; }
.contact__big a:hover { color: var(--accent); }
.contact__more { margin-top: clamp(1.25rem, 3vw, 2rem); display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.75rem; }
.contact__more a { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--foot); color: var(--foot-ink); padding-block: 2rem 2.5rem; font-size: 1rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 2rem; }
.foot__name { font-size: .84rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot a:hover { color: #fff; }
.foot :focus-visible { outline-color: #fff; }

/* ------------------------------------------------------------------ legal page */
.legal { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(4rem, 9vw, 7rem); }
.back { font-size: 1rem; margin-bottom: 1.25rem; }
.legal h1 {
  font-weight: 300; font-size: clamp(2.3rem, 6vw, 3.75rem); line-height: 1.08; letter-spacing: -.012em;
  color: var(--strong); margin-bottom: clamp(1.5rem, 4vw, 2.75rem); max-width: 16ch;
}
.prose { max-width: 40rem; }
.prose h2 { font-size: 1.6rem; line-height: 1.2; font-weight: 400; color: var(--strong); margin: 2.75rem 0 .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .lang, .theme, .skip { display: none; }
  .hero { min-height: 0; color: inherit; background: none; }
  .hero__bg, .hero::after { display: none; }
  .top--over { position: static; color: inherit; }
  .foot { background: none; color: inherit; }
}
