:root {
  color-scheme: light;
  --surface: #fafafa;
  --ink: #131419;
  --muted: #4a505b;
  --rule: #d7dbe2;
  --action: #0649db;
  --brand-rule: linear-gradient(90deg, #0755ff, #00c7e9);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #101113;
  --ink: #f5f6f7;
  --muted: #bdc3cf;
  --rule: #343840;
  --action: #93caff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--action); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }

.toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  padding: .65rem clamp(1rem, 3.2vw, 3.5rem) 0;
}

.languages {
  display: flex;
  gap: .25rem;
  align-items: center;
}

.languages a, .theme-switch {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.languages a {
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}

.languages a:hover { color: var(--action); }
.languages [aria-current] { color: var(--action); border-color: var(--action); }

.theme-switch {
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.theme-switch:hover { border-color: var(--action); color: var(--action); }
.theme-switch svg { width: 1.25rem; height: 1.25rem; }
.sun, .brand-dark { display: none; }
:root[data-theme="dark"] :is(.brand-light, .moon) { display: none; }
:root[data-theme="dark"] :is(.brand-dark, .sun) { display: block; }

.masthead {
  text-align: center;
  padding: clamp(2.35rem, 5vw, 5.25rem) 1rem clamp(2.5rem, 5vw, 5.25rem);
}

.brand-lockup {
  position: relative;
  width: min(31.5rem, 76vw);
  aspect-ratio: 1985 / 300;
  margin-inline: auto;
}

.brand {
  position: absolute;
  inset: 0 0 auto;
}

.brand img { display: block; width: 100%; height: auto; }
.brand-light { display: block; }

.brand-caption {
  position: absolute;
  inset: 100% 0 auto;
  font-size: .75rem;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (min-width: 632px) {
  .brand-caption { display: none; }
}

h1 {
  margin: clamp(.85rem, 2.2vw, 1.6rem) 0 0;
  font-size: clamp(1.3rem, 2.3vw, 2.1rem);
  line-height: 1.18;
  font-weight: 560;
  letter-spacing: -.035em;
}

.teaser {
  display: block;
  aspect-ratio: 21 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #d7dbdd;
}

.teaser-dark,
:root[data-theme="dark"] .teaser-light { display: none; }
:root[data-theme="dark"] .teaser-dark { display: block; }

.intro, .contact, footer {
  width: min(75rem, calc(100% - clamp(2rem, 10vw, 10rem)));
  margin-inline: auto;
}

.intro, .contact {
  border-bottom: 1px solid var(--action);
  border-image: var(--brand-rule) 1;
}

.intro {
  --intro-padding: clamp(2.5rem, 6vw, 5.5rem);
  --intro-gap: .9rem;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  padding-block: calc(var(--intro-padding) + var(--intro-gap) + 3px) var(--intro-padding);
}

.intro h2 {
  margin: 0;
  font-size: clamp(1.95rem, 4vw, 4.15rem);
  font-weight: 670;
  letter-spacing: -.058em;
  line-height: 1.08;
  text-wrap: balance;
}

.copy { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.copy p { margin: 0; }
.copy p + p { margin-top: 1rem; }

.contact {
  text-align: center;
  padding-block: clamp(2rem, 4.5vw, 3.65rem);
}

.contact h2 { margin: 0; font-size: 1rem; font-weight: 650; }

.contact-form {
  display: grid;
  width: min(100%, 28rem);
  margin: 1.25rem auto 0;
  text-align: start;
  gap: .45rem;
}

.contact-form label { font-size: .9rem; font-weight: 600; }

.contact-form :is(input[type="email"], textarea) {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--rule);
  border-radius: .3rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.contact-form input[type="email"] { margin-bottom: .45rem; }
.contact-form textarea { resize: vertical; }

.contact-form button {
  justify-self: start;
  margin-top: .55rem;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border: 1px solid var(--action);
  border-radius: .3rem;
  background: transparent;
  color: var(--action);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--action);
  color: var(--surface);
}

.contact-status {
  width: min(100%, 28rem);
  margin: .85rem auto 0;
  color: var(--ink);
  font-size: .9rem;
  text-align: start;
}

footer {
  padding-block: .25rem .9rem;
  color: var(--muted);
  font-size: .875rem;
  text-align: center;
}

.publisher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .3rem .65rem;
  min-height: 2.75rem;
}

@media (max-width: 48rem) {
  .intro { --intro-gap: 1rem; grid-template-columns: minmax(0, 1fr); row-gap: var(--intro-gap); }
  .intro h2 { text-wrap: pretty; }
}

@media (prefers-reduced-motion: no-preference) {
  .theme-switch { transition: border-color .16s ease, color .16s ease; }
}
