:root {
  color-scheme: dark;
  --ink: #fbf7ef;
  --muted: #c8c0b7;
  --line: rgba(251, 247, 239, 0.16);
  --paper: #17171e;
  --field: #101015;
  --panel: #20202a;
  --button: #fbf7ef;
  --button-text: #101015;
  --blue: #2ec7ff;
  --pink: #ff4f91;
  --yellow: #ffd02e;
  --green: #32d38b;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.36);
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #151418;
  --muted: #4c4852;
  --line: rgba(21, 20, 24, 0.14);
  --paper: #fff9ec;
  --field: #f4efe4;
  --panel: #ffffff;
  --button: #151418;
  --button-text: #fff9ec;
  --shadow: 0 28px 80px rgba(42, 35, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(46, 199, 255, 0.22), transparent 28%),
    linear-gradient(225deg, rgba(255, 79, 145, 0.24), transparent 28%),
    linear-gradient(315deg, rgba(255, 208, 46, 0.2), transparent 26%),
    var(--field);
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(251, 247, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 247, 239, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

.page-shell {
  display: grid;
  height: 100svh;
  max-width: 100vw;
  overflow: hidden;
  padding: clamp(14px, 3vw, 32px);
  place-items: center;
  position: relative;
}

.top-bar {
  position: absolute;
  top: 24px;
  right: 24px;
}

.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0;
}

.toggle-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0 33%, var(--pink) 33% 66%, var(--yellow) 66%);
  box-shadow: 0 0 0 2px rgba(251, 247, 239, 0.1);
}

.card {
  width: min(100%, 920px);
  max-height: calc(100svh - clamp(28px, 6vw, 64px));
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  width: clamp(42px, 6vw, 56px);
  height: clamp(42px, 6vw, 56px);
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.05rem, 5.7vw, 4.55rem);
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

.lede {
  max-width: 760px;
  margin: clamp(22px, 4.5vw, 48px) 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.7vw, 2.15rem);
  line-height: 1.12;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.focus-grid article {
  min-width: 0;
  min-height: clamp(138px, 18vw, 178px);
  padding: clamp(14px, 2.2vw, 20px);
  border-radius: 8px;
}

h2 {
  margin-bottom: 10px;
  color: #101015;
  font-size: 1.05rem;
  line-height: 1.1;
}

.focus-grid p {
  margin-bottom: 0;
  color: #17171e;
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.45;
}

.contact p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: clamp(18px, 3vw, 28px);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--button);
  border-radius: 6px;
  background: var(--button);
  color: var(--button-text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #101015;
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(46, 199, 255, 0.34);
  outline-offset: 3px;
}

.tile-blue {
  background: var(--blue);
}

.tile-pink {
  background: var(--pink);
}

.tile-yellow {
  background: var(--yellow);
}

@media (max-width: 720px) {
  .page-shell {
    align-items: stretch;
    padding: 58px 12px 12px;
  }

  .top-bar {
    top: 12px;
    right: 12px;
  }

  .theme-toggle {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  .card {
    display: flex;
    max-height: calc(100svh - 70px);
    flex-direction: column;
    justify-content: center;
    padding: clamp(18px, 5vw, 28px);
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: clamp(0.62rem, 2.4vw, 0.76rem);
  }

  h1 {
    font-size: clamp(1.72rem, 8.4vw, 3rem);
  }

  .lede {
    margin: clamp(16px, 3.8vh, 28px) 0;
    font-size: clamp(1rem, 4.4vw, 1.32rem);
    line-height: 1.14;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .focus-grid article,
  .focus-grid article + article {
    min-height: auto;
    padding: clamp(10px, 2.8vw, 14px);
    border-left: 0;
  }

  .focus-grid article + article {
    border-top: 0;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
  }
}

@media (max-width: 420px), (max-height: 680px) {
  .focus-grid p,
  .contact p {
    font-size: 0.84rem;
    line-height: 1.32;
  }

  h2 {
    margin-bottom: 5px;
    font-size: 0.92rem;
  }

  .button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.88rem;
  }
}

@media (max-height: 620px) and (min-width: 721px) {
  .page-shell {
    padding: 46px 10px 10px;
  }

  .card {
    max-height: calc(100svh - 56px);
    padding: 14px;
  }

  .masthead {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .lede {
    margin: 10px 0;
  }

  .focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact {
    align-items: center;
    flex-direction: row;
    margin-top: 10px;
  }
}

@media (max-height: 620px) and (max-width: 720px) {
  .page-shell {
    padding: 46px 10px 10px;
  }

  .top-bar {
    top: 8px;
    right: 10px;
  }

  .theme-toggle {
    min-height: 32px;
  }

  .card {
    max-height: calc(100svh - 56px);
    padding: 12px;
  }

  .masthead {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .lede {
    margin: 10px 0;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .focus-grid article,
  .focus-grid article + article {
    padding: 8px 10px;
  }

  .contact {
    margin-top: 10px;
  }
}
