/* Calm, high-contrast layout with a CSS-only grain texture. */
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f3f6fa;
  background: #333333;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: #333333;
  background-image:
    radial-gradient(ellipse at 80% 85%, rgba(2, 17, 30, 0.94), transparent 62%),
    linear-gradient(135deg, #333333 0%, #0e1a28 58%, #010c15 100%);
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .14;
  background-image: repeating-radial-gradient(circle at 0 0,
    rgba(255, 255, 255, .3) 0 .45px, transparent .7px 3.5px);
  background-size: 7px 7px;
}

button { font: inherit; }

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: min(100% - 40px, 960px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  padding-top: 28px;
}

.language-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(7, 18, 30, .25);
}

.language-button {
  min-width: 44px;
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  color: #dce7ef;
  background: transparent;
  cursor: pointer;
}

.language-button:hover, .language-button:focus-visible { background: rgba(255, 255, 255, .12); }
.language-button.is-active { color: #102333; background: #bce8e9; }

.content {
  display: grid;
  justify-items: center;
  align-content: center;
  flex: 1;
  padding: 72px 0 90px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a9dadd;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.status-message {
  max-width: 38rem;
  margin: 18px 0 42px;
  color: #d4dee7;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
}

.resume-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -18px 0 40px;
  padding: 13px 19px;
  border: 1px solid rgba(224, 255, 255, .75);
  border-radius: 999px;
  color: #102333;
  background: #bce8e9;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .17);
  font-size: .96rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.resume-download svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.resume-download:hover { transform: translateY(-2px); background: #d5f4f4; box-shadow: 0 14px 32px rgba(0, 0, 0, .23); }
.resume-download:focus-visible { outline: 3px solid #bce8e9; outline-offset: 4px; }

.contact { width: min(100%, 760px); }

.contact-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .2));
}

.contact-card:focus-visible, .language-button:focus-visible {
  outline: 3px solid #bce8e9;
  outline-offset: 4px;
}

.contact-card img { display: block; width: 100%; height: auto; }
.contact-card[hidden], .contact-details[hidden] { display: none; }

.contact-hint {
  display: block;
  padding-top: 8px;
  color: #c5d3df;
  font-size: .83rem;
}

.contact-details {
  display: grid;
  gap: 9px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(8, 21, 34, .34);
  text-align: left;
}

.contact-details h2 { margin: 0 0 3px; font-size: 1.2rem; }
.contact-details p { margin: 0; color: #dce6ee; overflow-wrap: anywhere; }
.contact-details a { color: #a9e4e5; text-underline-offset: 3px; }
.contact-details button {
  justify-self: start;
  margin-top: 6px;
  padding: 8px 0;
  border: 0;
  color: #dce6ee;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer { padding: 18px 0 24px; color: #b8c6d2; text-align: center; }
.footer small { font-size: .75rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 540px) {
  .page { width: min(100% - 28px, 960px); }
  .topbar { padding-top: 18px; }
  .content { padding: 58px 0 70px; }
  .status-message { margin-bottom: 32px; }
  .resume-download { margin: -14px 0 32px; }
  .contact-details { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
