:root {
  --ink: #101820;
  --paper: #f6f2ea;
  --paper-strong: #fffaf0;
  --line: rgba(16, 24, 32, 0.14);
  --muted: #5e6870;
  --teal: #155f65;
  --teal-dark: #0e4044;
  --brass: #b88b3c;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(246, 242, 234, 0.7), rgba(246, 242, 234, 1)),
    var(--paper);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, 84vh);
  overflow: hidden;
  background: var(--ink);
}

.hero__image,
.hero__shade,
.hero__content {
  grid-area: 1 / 1;
}

.hero__image {
  width: 100%;
  height: 100%;
  min-height: min(760px, 84vh);
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.92), rgba(16, 24, 32, 0.72) 38%, rgba(16, 24, 32, 0.08) 75%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.38), rgba(16, 24, 32, 0) 42%);
}

.hero__content {
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: calc(100% - 40px);
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
  padding: 72px 0 120px;
  color: var(--paper-strong);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  width: 100%;
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1.06rem, 2vw, 1.32rem);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button--primary {
  color: var(--ink);
  background: var(--paper-strong);
}

.button--secondary {
  color: var(--paper-strong);
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.28);
}

.domains {
  width: min(1120px, calc(100% - 40px));
  margin: -72px auto 0;
  padding-bottom: 52px;
  position: relative;
  z-index: 2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  color: var(--paper-strong);
}

.section-heading h2 {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.domain-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: var(--shadow);
}

.domain-card.is-current {
  border-color: rgba(184, 139, 60, 0.7);
  outline: 3px solid rgba(184, 139, 60, 0.18);
}

.domain-card__tag {
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(21, 95, 101, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
}

.domain-card h3 {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.domain-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.domain-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  border-radius: 8px;
  color: var(--paper-strong);
  background: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px 38px;
  color: var(--muted);
}

.footer a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--paper-strong);
  background: var(--ink);
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .domain-card {
    min-height: 230px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 78vh;
  }

  .hero__image {
    min-height: 78vh;
    object-position: 66% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(16, 24, 32, 0.93), rgba(16, 24, 32, 0.72) 58%, rgba(16, 24, 32, 0.22)),
      linear-gradient(0deg, rgba(16, 24, 32, 0.44), rgba(16, 24, 32, 0) 48%);
  }

  .hero__content {
    width: calc(100% - 28px);
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .domains {
    width: calc(100% - 28px);
    margin-top: 0;
    padding-top: 28px;
  }

  .section-heading {
    display: block;
    color: var(--ink);
  }

  .section-heading .eyebrow {
    color: var(--teal-dark);
  }

  .domain-grid {
    grid-template-columns: 1fr;
  }

  .domain-card {
    min-height: 0;
  }
}

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