:root {
  color-scheme: light;
  --paper: #f5ebdd;
  --paper-deep: #eadbc7;
  --ink: #071421;
  --muted: #657079;
  --line: rgba(7, 20, 33, 0.12);
  --surface: rgba(255, 251, 245, 0.82);
  --orange: #ff6b35;
  --teal: #25a9b8;
  --pink: #ef476f;
  --yellow: #f4b942;
  --shadow: 0 24px 70px rgba(7, 20, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(255, 107, 53, 0.34), transparent 25rem),
    radial-gradient(circle at 4% 92%, rgba(37, 169, 184, 0.24), transparent 27rem),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 72px 72px, 72px 72px, auto;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--ink);
  text-underline-offset: 0.22em;
}

.shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(7, 20, 33, 0.2);
}

nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  padding: 86px 0 62px;
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
}

.hero::before {
  top: 76px;
  left: 10%;
  width: 88px;
  height: 88px;
  background: var(--yellow);
}

.hero::after {
  right: 8%;
  bottom: 42px;
  width: 128px;
  height: 128px;
  background: var(--pink);
}

.hero img {
  width: 122px;
  height: 122px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  animation: reveal 500ms ease-out both;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  margin: 24px 0 12px;
  font-size: clamp(2.65rem, 8vw, 5.2rem);
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.16rem;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 82px;
}

.card,
.document {
  border: 1px solid rgba(7, 20, 33, 0.14);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card {
  min-height: 210px;
  padding: 30px;
  border-radius: 26px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:first-child {
  border-top: 7px solid var(--teal);
}

.card:last-child {
  border-top: 7px solid var(--orange);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 20, 33, 0.32);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.card p,
.updated,
.lead {
  color: var(--muted);
}

.document {
  margin: 38px 0 82px;
  padding: clamp(26px, 6vw, 66px);
  border-radius: 30px;
}

.document > h1,
.document section > h1 {
  margin-top: 8px;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
}

.document h2 {
  margin: 2.1em 0 0.55em;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.document h3 {
  margin-top: 1.7em;
}

.document li + li {
  margin-top: 0.45rem;
}

.language-block + .language-block {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.callout {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 6px solid var(--orange);
  border-radius: 4px 16px 16px 4px;
  background: rgba(255, 107, 53, 0.1);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.6fr);
  gap: 28px;
  align-items: start;
}

.support-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(7, 20, 33, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

input,
select {
  min-height: 48px;
  padding: 10px 13px;
}

textarea {
  min-height: 165px;
  padding: 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(37, 169, 184, 0.2);
}

button {
  justify-self: start;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-status {
  min-height: 1.6em;
  margin: 0;
  color: var(--muted);
}

.form-status[data-state="success"] {
  color: #147443;
}

.form-status[data-state="error"] {
  color: #a62c43;
}

.support-aside {
  padding: 22px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
}

.support-aside h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.support-aside a {
  color: var(--paper);
}

footer {
  padding: 0 0 42px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero img {
    animation: none;
  }

  .card {
    transition: none;
  }
}

@media (max-width: 720px) {
  header {
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    gap: 4px;
    text-align: right;
  }

  .hero {
    padding-top: 48px;
  }

  .hero::before {
    left: 1%;
  }

  .hero::after {
    right: 0;
    width: 88px;
    height: 88px;
  }

  .grid,
  .support-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .document {
    border-radius: 22px;
  }
}
