﻿:root {
  color-scheme: light dark;

  --bg: #f7f7f5;
  --text: #1d2329;
  --muted: #4e5964;
  --line: #d8dddf;
  --tag-bg: #f2f4f4;
  --surface: #fbfcfb;
  --link: #1f3d57;

  --max-width: 860px;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --text: #e9edf0;
    --muted: #afbbc6;
    --line: #2c343b;
    --tag-bg: #1c2227;
    --surface: #171c21;
    --link: #c6d9ea;
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(90, 106, 122, 0.08), transparent 55%),
    radial-gradient(640px 280px at 5% 0%, rgba(160, 176, 191, 0.07), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  hanging-punctuation: first last;
}

.page {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

.section {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
}

.hero {
  border-top: 0;
  padding-top: 1rem;
}

.top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.language-switch {
  display: inline-flex;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.45rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: 1.08rem;
  font-weight: 500;
}

.title {
  margin: 0.8rem 0 0;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  color: var(--text);
  font-weight: 500;
}

.focus-line {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.intro {
  max-width: 68ch;
  margin: var(--space-4) 0 0;
  text-wrap: pretty;
  hyphens: auto;
}

.availability {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tags li {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tag-bg);
  font-size: 0.93rem;
  color: var(--text);
}

.card-carousel {
  --carousel-gap: 0.9rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (2 * var(--carousel-gap))) / 3);
  gap: var(--carousel-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0.1rem;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
}

.card-carousel::-webkit-scrollbar {
  display: none;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: var(--surface);
  scroll-snap-align: start;
}

.card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.carousel-dots {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.carousel-dots button {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--line) 25%, transparent);
  padding: 0;
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
  background: var(--text);
  border-color: var(--text);
}

.carousel-controls {
  margin-top: 0.55rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.28rem;
}

.carousel-controls button {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.carousel-controls button[data-action="play"],
.carousel-controls button[data-action="pause"] {
  width: 1.7rem;
}

.carousel-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.profile-text {
  margin: 0;
  max-width: 66ch;
  text-wrap: pretty;
  hyphens: auto;
}

.signal-list {
  margin: 1rem 0 0;
  padding: 0 0 0 1rem;
  display: grid;
  gap: 0.45rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-link::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 1.2rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--line) 88%, transparent);
  background-color: color-mix(in oklab, var(--surface) 90%, transparent);
}

.email-link::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234e5964' d='M3 6.75A2.75 2.75 0 0 1 5.75 4h12.5A2.75 2.75 0 0 1 21 6.75v10.5A2.75 2.75 0 0 1 18.25 20H5.75A2.75 2.75 0 0 1 3 17.25V6.75Zm2 .45v.15l7 4.9 7-4.9v-.15c0-.41-.34-.75-.75-.75H5.75c-.41 0-.75.34-.75.75Zm14 2.59-6.43 4.5a1 1 0 0 1-1.14 0L5 9.79v7.46c0 .41.34.75.75.75h12.5c.41 0 .75-.34.75-.75V9.79Z'/%3E%3C/svg%3E") center / 0.72rem 0.72rem no-repeat,
    color-mix(in oklab, var(--surface) 90%, transparent);
}

.linkedin-link::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234e5964' d='M6.5 9H4v11h2.5V9ZM5.25 4A1.75 1.75 0 1 0 5.3 7.5 1.75 1.75 0 0 0 5.25 4ZM10 9h2.4v1.5h.03c.33-.63 1.16-1.5 2.7-1.5 2.88 0 3.42 1.9 3.42 4.37V20H16v-5.85c0-1.4-.02-3.19-1.94-3.19-1.95 0-2.25 1.52-2.25 3.09V20H9.3V9H10Z'/%3E%3C/svg%3E") center / 0.72rem 0.72rem no-repeat,
    color-mix(in oklab, var(--surface) 90%, transparent);
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--link) 45%, transparent);
}

a:hover,
a:focus-visible {
  border-bottom-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.language-switch a {
  color: var(--muted);
  border-bottom: 0;
  padding: 0.15rem 0.25rem;
}

.language-switch a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.location {
  color: var(--muted);
}

.footer {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
  padding: 0 0 2.8rem;
}

.footer p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-wrap: balance;
}

.legal-nav {
  margin-top: 0.65rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.legal-nav a {
  color: var(--muted);
  border-bottom-color: color-mix(in oklab, var(--muted) 40%, transparent);
}

.legal-page .hero {
  max-width: 70ch;
}

.legal-text {
  margin: 0 0 1rem;
  text-wrap: pretty;
  hyphens: auto;
}

@media (max-width: 900px) {
  .card-carousel {
    grid-auto-columns: calc((100% - var(--carousel-gap)) / 2);
  }
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 2rem, var(--max-width));
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .top-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .card-carousel {
    grid-auto-columns: minmax(82%, 1fr);
  }

  .footer {
    width: min(100% - 2rem, var(--max-width));
  }
}
