:root {
  color-scheme: light;
  --bg: #fffaf4;
  --surface: #ffffff;
  --surface-strong: #fff2e8;
  --text: #1f2933;
  --muted: #697586;
  --line: #eadfd4;
  --primary: #c44f0e;
  --primary-dark: #9c3e0a;
  --secondary: #0f766e;
  --secondary-soft: #e5f3f1;
  --focus: #1f7a8c;
  --shadow: 0 18px 42px rgba(67, 45, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at top left, rgba(196, 79, 14, 0.14), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf4 42%, #f4fbfa 100%);
}

button,
a {
  font: inherit;
}

.shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 18px 28px;
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 10px 4px 22px;
}

.profile-mark-wrap {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 18px;
  border: 1px solid rgba(196, 79, 14, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.profile-mark {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #172026;
  font-size: clamp(2.15rem, 2rem + 0.6vw, 2.6rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.description {
  max-width: 360px;
  margin: 13px 0 0;
  color: #334155;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.55;
}

.supporting {
  max-width: 360px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.link-section {
  margin-top: 4px;
}

.links {
  display: grid;
  gap: 12px;
}

.link-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(40, 33, 28, 0.07);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.38);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(40, 33, 28, 0.12);
}

.link-card:focus-visible {
  outline: 3px solid rgba(31, 122, 140, 0.35);
  outline-offset: 3px;
}

.link-card.featured {
  color: #ffffff;
  border-color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.link-card.featured .link-description,
.link-card.featured .link-badge {
  color: rgba(255, 255, 255, 0.82);
}

.link-card.featured .link-icon {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
}

.link-card.featured .arrow {
  color: #ffffff;
}

.link-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--secondary);
  border-radius: 8px;
  background: var(--secondary-soft);
  font-size: 1.1rem;
  font-weight: 850;
  overflow: hidden;
}

.link-icon img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.link-copy {
  min-width: 0;
}

.link-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 3px;
}

.link-label {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.35;
}

.link-badge {
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.link-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.arrow {
  color: var(--secondary);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
}

.loading,
.error {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.footer {
  margin-top: 22px;
  padding: 0 8px;
  color: #667085;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 390px) {
  .shell {
    padding: 24px 14px 24px;
  }

  .profile-mark-wrap {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .profile-mark {
    width: 90px;
    height: 90px;
    border-radius: 22px;
  }

  .link-card {
    grid-template-columns: 44px 1fr auto;
    min-height: 78px;
    padding: 13px 12px;
  }

  .link-icon {
    width: 44px;
    height: 44px;
  }

  .link-icon img {
    width: 40px;
    height: 40px;
  }
}
