:root {
  color-scheme: light;
  --ink: #142823;
  --ink-soft: #52615d;
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --line: #dcd8ce;
  --green: #1e5b49;
  --green-deep: #133e33;
  --amber: #e49a28;
  --blue: #2a6680;
  --shadow: 0 22px 65px rgba(20, 40, 35, .1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 4%, rgba(228, 154, 40, .14), transparent 25rem),
    linear-gradient(180deg, #fbfaf6, var(--paper) 34rem);
  -webkit-font-smoothing: antialiased;
}

a,
button {
  color: inherit;
  font: inherit;
}

[hidden],
[data-profile-content][hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 9px;
  color: white;
  background: var(--green-deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(220, 216, 206, .9);
  border-radius: 20px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 10px 35px rgba(20, 40, 35, .06);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: .96rem;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: .76rem;
}

.brand-mark {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green-deep);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  border-radius: 999px 999px 999px 2px;
  transform: rotate(-42deg);
}

.brand-mark::before {
  width: 18px;
  height: 24px;
  top: 8px;
  left: 9px;
  background: var(--amber);
}

.brand-mark::after {
  width: 8px;
  height: 13px;
  top: 13px;
  left: 21px;
  background: #db5b43;
}

.brand-mark span {
  width: 6px;
  height: 10px;
  top: 19px;
  left: 8px;
  background: #6ba6bf;
}

.topbar__actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  min-height: 44px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: white;
  background: var(--green-deep);
}

.button--secondary {
  border-color: var(--line);
  background: var(--surface);
}

.button--quiet {
  color: var(--ink-soft);
  background: transparent;
}

.button:hover {
  border-color: var(--green);
}

.button--primary:hover {
  background: var(--green);
}

:where(a, button):focus-visible {
  outline: 3px solid rgba(42, 102, 128, .32);
  outline-offset: 3px;
}

.profile-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 34px auto 54px;
}

.profile-intro {
  min-height: 270px;
  padding: clamp(30px, 6vw, 64px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(110deg, #133e33, #1d5a49 72%, #2a6680);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.profile-intro .eyebrow {
  color: #f3c66f;
}

.profile-intro h1,
.profile-card h2,
.boundary-card h2,
.session-gate h1 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.profile-intro h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: .95;
}

.profile-intro p:last-child {
  max-width: 58ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.6;
}

.verified-chip {
  flex: 0 0 auto;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #d7f2e8;
  background: rgba(255, 255, 255, .09);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.verified-chip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6bd6aa;
  box-shadow: 0 0 0 4px rgba(107, 214, 170, .13);
}

.profile-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 16px;
}

.profile-card,
.boundary-card {
  padding: clamp(25px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.profile-card {
  background: var(--surface);
}

.boundary-card {
  background: #e9ede8;
}

.profile-card h2,
.boundary-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  line-height: 1.08;
}

.detail-list {
  margin: 28px 0 0;
}

.detail-list > div {
  padding: 17px 0;
  display: grid;
  grid-template-columns: minmax(95px, .42fr) minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
}

.detail-list dt {
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.role-chip {
  width: fit-content;
  padding: 7px 10px;
  display: inline-block;
  border-radius: 999px;
  color: var(--green-deep);
  background: #f4c76f;
  font-size: .75rem;
  font-weight: 800;
}

.boundary-card > p:not(.eyebrow) {
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.65;
}

.notice {
  margin-top: 26px;
  padding: 18px;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, .62);
}

.notice strong,
.notice span {
  display: block;
}

.notice span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.55;
}

.footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .75rem;
}

.footer p {
  margin: 0;
}

.session-gate {
  width: min(560px, calc(100% - 32px));
  margin: clamp(32px, 12vh, 110px) auto;
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.session-gate .brand-mark {
  margin-bottom: 26px;
}

.session-gate h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1;
}

.muted {
  color: var(--ink-soft);
  line-height: 1.6;
}

.actions {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .topbar,
  .profile-intro,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar__actions {
    width: 100%;
  }

  .topbar__actions .button {
    flex: 1 1 130px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .topbar,
  .profile-shell,
  .footer {
    width: calc(100% - 24px);
  }

  .topbar {
    margin-top: 12px;
  }

  .brand small {
    display: none;
  }

  .profile-intro {
    min-height: 0;
    padding: 30px 22px 24px;
    border-radius: 22px;
  }

  .profile-intro h1 {
    font-size: 2.75rem;
  }

  .profile-card,
  .boundary-card {
    padding: 23px 20px;
  }

  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .topbar__actions .button,
  .actions .button {
    width: 100%;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .skip-link {
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
