:root {
  --theme-transition-duration: 0.3s;
  --background-color: rgb(18 18 18);
  --background-color-secondary: rgb(12, 12, 12);
  --primary-color: rgb(255, 255, 255);
}

[data-theme="light"] {
  --background-color: rgb(230, 230, 230);
  --background-color-secondary: rgb(216 216 216);
  --primary-color: rgb(10, 10, 10);
}

html,
body {
  height: 100%;
  margin: 0;
}

* {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  -webkit-overflow-scrolling: touch;
  background-color: var(--background-color);
  transition: background-color var(--theme-transition-duration);
  background-size: cover;
  font-size: 0.85em;
}

h1 {
  font-size: 3em;
  padding-bottom: 10px;
  font-weight: lighter;
}

h2 {
  opacity: 0.7;
}

a {
  color: unset;
  text-decoration: none;
}

/* ── Desktop layout: side-by-side, full viewport height ── */
.content {
  display: flex;
  height: 100vh;
  flex-direction: row-reverse;
  overflow: hidden;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--background-color-secondary);
  flex: 1 1 60%;
  padding-left: 8%;
  padding-right: 5%;
  color: var(--primary-color);
  transition: color var(--theme-transition-duration),
    background-color var(--theme-transition-duration);
  overflow-y: auto;
}

.info h2 {
  font-weight: normal;
}

.socials {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.socials-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 0;
}

.white-logo {
  color: var(--primary-color);
  transition: color var(--theme-transition-duration);
  width: 1em;
}

.social-button-wrapper {
  fill: var(--primary-color);
  transition: fill var(--theme-transition-duration);
  font-size: 1.5em;
  padding: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.4em;
  /* Minimum 44px touch target */
  min-height: 44px;
}

.social-button-text::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: -7px;
  left: 0;
  background-color: var(--primary-color);
  transform-origin: bottom left;
  transition: color var(--theme-transition-duration), width 0.25s ease-out;
}

.social-button-wrapper:hover .social-button-text::after {
  width: 100%;
}

.underline {
  text-decoration: underline;
}

.social-button-text {
  color: var(--primary-color);
  transition: color var(--theme-transition-duration);
  text-decoration: none;
  position: relative;
  display: inline-block;
  font-size: 1em;
  margin: 0;
  font-weight: lighter;
}

.social-button-icon {
  padding-right: 4px;
  display: inline-flex;
  align-items: center;
}

.dark-toggle {
  width: 37px;
  height: 37px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  user-select: none;
  position: absolute;
  top: 10px;
  right: 10px;
}

.dark-toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  fill: var(--primary-color);
  transition: fill var(--theme-transition-duration);
}

.dark-toggle:hover {
  opacity: 0.85;
}

footer {
  width: 100%;
  color: rgb(151, 151, 151);
  text-align: center;
  font-size: 0.75em;
  padding: 6px 0;
  background-color: var(--background-color);
  transition: background-color var(--theme-transition-duration);
}

footer a {
  color: rgb(151, 151, 151);
}

/* ── Tablet: 600px–1024px — still side-by-side but tighter ── */
@media (max-width: 1024px) and (min-width: 601px) {
  h1 {
    font-size: 2.4em;
  }

  .info {
    padding-left: 5%;
    padding-right: 4%;
  }

  .socials {
    flex: 0 0 45%;
  }

  .social-button-wrapper {
    font-size: 1.35em;
  }
}

/* ── Mobile: ≤600px — stacked layout ── */
@media (max-width: 600px) {
  .content {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .info {
    flex: none;
    align-items: center;
    text-align: center;
    padding: 60px 24px 40px;
    font-size: 0.8em;
  }

  h1 {
    font-size: 2.6em;
  }

  .socials {
    flex: none;
    justify-content: center;
    padding: 0 0 80px;
  }

  .socials-inner {
    padding: 8px 32px;
    width: 100%;
    max-width: 320px;
  }

  /* Bigger touch targets on mobile */
  .social-button-wrapper {
    font-size: 1.4em;
    padding: 0.55em 0.4em;
    min-height: 48px;
  }

  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
  }

  /* Keep dark-mode toggle visible over stacked layout */
  .dark-toggle {
    top: 12px;
    right: 12px;
    z-index: 10;
  }
}

/* ── Very small phones: ≤380px ── */
@media (max-width: 380px) {
  .info {
    font-size: 0.7em;
    padding: 50px 16px 32px;
  }

  h1 {
    font-size: 2.2em;
  }

  .social-button-wrapper {
    font-size: 1.25em;
  }
}
