:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --ink: #0f2f36;
  --muted: #5a7076;
  --line: #dbe4e1;
  --accent: #2ec4a6;
  --accent-ink: #0c7a66;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1f24;
    --surface: #10292f;
    --ink: #e6f1ee;
    --muted: #93aaa6;
    --line: #1f3d44;
    --accent: #3ad8b8;
    --accent-ink: #3ad8b8;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* One root size drives everything (all sizes below are rem). It follows
   whichever is tighter, screen width or screen height, so the page always
   fits on one screen without scrolling. */
html {
  font-size: clamp(10px, min(12.5px + 0.5vw, 1.8svh), 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(60rem 30rem at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 2rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.25rem;
  text-align: center;
}
.hero { width: 100%; }
h1 { margin: 0; line-height: 0; }
.logo { width: min(24rem, 100%); height: auto; color: var(--ink); }
.tagline {
  margin: 1.25rem 0 0;
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 500;
  text-wrap: balance;
}
.lede { margin: .4rem auto 0; max-width: 32rem; text-wrap: pretty; color: var(--muted); }
.now { margin: .6rem 0 0; font-weight: 500; }
/* Text links: an accent underline that sweeps up into a soft highlight
   behind the text on hover/focus. */
.now a, .now a:visited, .now a:hover, .now a:active,
.contact a, .contact a:visited {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 28%, transparent)),
                    linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 100% 0, 100% 2px;
  padding: 0 .1em;
  margin: 0 -.1em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.now a:hover, .now a:focus-visible,
.contact a:hover, .contact a:focus-visible { background-size: 100% 100%, 100% 2px; }
.social {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: color .15s, border-color .15s, transform .15s;
}
.social a:hover, .social a:focus-visible {
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.contact {
  width: 100%;
  max-width: 24rem;
  padding: 1.4rem 1.75rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: .75rem;
  background: var(--surface);
  font-style: normal;
  text-align: left;
}
.contact h2 {
  margin: 0 0 .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact strong { font-weight: 600; }
.contact dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem 1rem;
  margin: .8rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .95em; }
.lang {
  position: absolute;
  top: clamp(.75rem, 2vw, 1.25rem);
  right: clamp(.75rem, 3vw, 1.75rem);
  display: flex;
  gap: .15rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.lang a, .lang span {
  padding: .2rem .6rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.lang a:hover { color: var(--accent-ink); }
.lang [aria-current] { background: var(--accent); color: #06231d; }
/* 404 page */
.notfound .home { display: inline-block; line-height: 0; }
.notfound .code {
  margin: 1.5rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 4rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--accent);
}
.notfound .tagline { margin-top: .75rem; }
.notfound .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 1.75rem 0 0;
}
.button, .button:visited {
  display: inline-block;
  padding: .6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, color .15s;
}
.button:hover, .button:focus-visible { border-color: var(--accent); color: var(--accent-ink); }

footer {
  padding: 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}
/* Short, wide screens (phones held sideways, 720p laptops): put the
   contact card beside the logo instead of below it. */
@media (orientation: landscape) and (max-height: 820px) and (min-aspect-ratio: 4/3) {
  html { font-size: clamp(10px, min(12.5px + 0.5vw, 3.2svh, 1.75vw), 24px); }
  main {
    max-width: 60rem;
    flex-direction: row;
    gap: 3.5rem;
    padding-top: 1rem;
  }
  footer { padding: .75rem; }
  .hero { flex: 1 1 0; min-width: 0; }
  .contact { flex: 0 1 22rem; }
  .social { margin-top: 1.1rem; }
  .notfound .code { margin-top: .75rem; font-size: 3rem; }
  .notfound .actions { margin-top: 1.1rem; }
}
/* Very narrow phones: stack the email/phone labels above their values. */
@media (max-width: 340px) {
  .contact { padding: 1.1rem 1.25rem; }
  .contact dl { grid-template-columns: 1fr; gap: 0; }
  .contact dd + dt { margin-top: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .social a, .now a, .contact a { transition: none; }
  .social a:hover { transform: none; }
}
