/* ben.tashpod.com landing — matches the voidkun dark-mode look */

:root {
  --bg: #14151a;
  --surface: #1e2029;
  --surface-2: #262933;
  --border: #363a47;
  --text: #eef0f5;
  --text-dim: #a2a7b6;
  --accent: #7fd1c1;
  --accent-ink: #0c1614;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.5rem, env(safe-area-inset-top))
           max(1rem, env(safe-area-inset-right))
           max(1.5rem, env(safe-area-inset-bottom))
           max(1rem, env(safe-area-inset-left));
}

main {
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60dvh;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface-2);
}

header h1 {
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

header p {
  color: var(--text-dim);
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 0.35rem;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 1rem 1.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0.85rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.links a::after {
  content: "\2192";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

@media (hover: hover) {
  .links a:hover {
    border-color: var(--accent);
    background: var(--surface-2);
  }
}

.links a:active {
  border-color: var(--accent);
  background: var(--surface-2);
}

.links a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Compact portrait phones: tighten vertical rhythm so it fits without scrolling */
@media (orientation: portrait) and (max-width: 26rem) {
  main,
  .content {
    gap: 1.15rem;
  }

  .links a {
    padding: 0.9rem 1.05rem;
    font-size: 1.05rem;
  }
}

/* Landscape on short viewports (phones held sideways): place the banner beside
   the content so everything stays on screen without scrolling. */
@media (orientation: landscape) and (max-height: 34rem) {
  body {
    align-items: center;
  }

  main {
    max-width: 52rem;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .banner {
    width: 42%;
    max-width: 20rem;
    max-height: 82dvh;
    align-self: center;
  }

  .content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .links {
    gap: 0.6rem;
  }

  .links a {
    padding: 0.7rem 1rem;
    font-size: 1rem;
    min-height: 2.6rem;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f8;
    --surface: #ffffff;
    --surface-2: #eceef3;
    --border: #d3d7e0;
    --text: #1b1d24;
    --text-dim: #5b6070;
    --accent: #1f8a76;
    --accent-ink: #ffffff;
  }
}
