:root {
  color-scheme: light;
  --pilbara: #a13f22;
  --iron-ore: #6c2415;
  --deep-earth: #441914;
  --spinifex: #6f7d3c;
  --gorge-blue: #2e6672;
  --sand: #cdb89b;
  --paper: #f5f1e8;
  --ink: #251d18;
  --muted: #655a52;
  --line: rgba(68, 25, 20, 0.14);
  --shadow: 0 24px 70px rgba(49, 20, 13, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 10%, rgba(205, 184, 155, 0.4), transparent 30rem),
    var(--paper);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: min(780px, calc(100vh - 48px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
  overflow: hidden;
  border: 1px solid rgba(68, 25, 20, 0.1);
  border-radius: 30px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.story-panel {
  position: relative;
  min-height: 660px;
  isolation: isolate;
  background: var(--iron-ore) url("assets/hero-banner.jpg") 37% center / auto 156% no-repeat;
}

.story-panel__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(45, 19, 15, 0.08) 30%, rgba(45, 19, 15, 0.74) 100%),
    linear-gradient(90deg, rgba(45, 19, 15, 0.1), transparent 55%);
}

.eyebrow,
.profile__people {
  margin: 0 0 8px;
  color: var(--pilbara);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.link-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(36px, 5vw, 68px);
}

.profile {
  text-align: center;
}

.profile__image {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  border: 5px solid #fffdf8;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--pilbara), 0 12px 30px rgba(68, 25, 20, 0.18);
}

.profile__people {
  margin-bottom: 6px;
}

h1 {
  max-width: 520px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.profile__intro {
  max-width: 480px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.social-link {
  --accent: var(--pilbara);
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 70px;
  padding: 10px 16px 10px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 20px rgba(68, 25, 20, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-link::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--accent);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 12px 28px rgba(68, 25, 20, 0.11);
}

.social-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 56%, white);
  outline-offset: 3px;
}

.social-link__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--accent);
}

.social-link__icon svg {
  width: 22px;
  height: 22px;
}

.social-link__copy {
  min-width: 0;
  padding: 0 10px;
}

.social-link__label,
.social-link__description {
  display: block;
}

.social-link__label {
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.3;
}

.social-link__description {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link__arrow {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease;
}

.social-link:hover .social-link__arrow {
  transform: translateX(3px);
}

footer {
  margin-top: 28px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

  footer p {
  margin: 0;
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  border-radius: 12px;
  color: white;
  text-align: center;
  background: var(--iron-ore);
}

@media (min-width: 861px) and (max-height: 850px) {
  .page-shell {
    min-height: calc(100vh - 32px);
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .story-panel {
    min-height: 610px;
  }

  .link-panel {
    padding: 28px 52px;
  }

  .profile__image {
    width: 88px;
    height: 88px;
    margin-bottom: 14px;
    border-width: 4px;
  }

  h1 {
    font-size: clamp(2.35rem, 3.4vw, 3.15rem);
  }

  .profile__intro {
    margin-top: 12px;
    line-height: 1.5;
  }

  .link-list {
    gap: 8px;
    margin-top: 20px;
  }

  .social-link {
    min-height: 60px;
    border-radius: 15px;
  }

  .social-link__icon {
    width: 38px;
    height: 38px;
  }

  footer {
    margin-top: 16px;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .story-panel {
    min-height: clamp(220px, 42vh, 350px);
    background-position: center;
    background-size: cover;
  }

  .link-panel {
    padding: 0 20px 34px;
  }

  .profile {
    margin-top: -57px;
    position: relative;
    z-index: 1;
  }

  .profile__image {
    width: 114px;
    height: 114px;
    margin-bottom: 18px;
  }

  .profile__people {
    margin-top: 0;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .profile__intro {
    max-width: 540px;
  }

  .link-list {
    width: min(100%, 580px);
    margin: 28px auto 0;
  }
}

@media (max-width: 420px) {
  .story-panel {
    min-height: 230px;
  }

  .link-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .profile__intro {
    margin-top: 14px;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .link-list {
    gap: 10px;
    margin-top: 24px;
  }

  .social-link {
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    min-height: 68px;
    padding-right: 13px;
  }

  .social-link__copy {
    padding-right: 6px;
    padding-left: 8px;
  }
}

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