:root,
html[data-theme="light"] {
  --ink: #1c2b4b;
  --white: #ffffff;
  --bg: #ffffff;
  --fg: #1c2b4b;
  --card: #ffffff;
  --card-border: #e5e5e5;
  --muted: #64748b;
  --link: #2456a6;
  --link-hover: #1c2b4b;
  --blue: #2456a6;
  --terracotta: #c0563c;
  --forest: #2e7d5b;
  --indigo: #4c57a5;
  --gold: #e9a13b;
  --radius-card: 32px;
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #1c2b4b;
  --fg: #ffffff;
  --card: #16233f;
  --card-border: #2a3a5c;
  --muted: #9aa6b8;
  --link: #e9a13b;
  --link-hover: #ffffff;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: #1c2b4b;
    --fg: #ffffff;
    --card: #16233f;
    --card-border: #2a3a5c;
    --muted: #9aa6b8;
    --link: #e9a13b;
    --link-hover: #ffffff;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
}

h1,
h2,
h3,
.sora {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.02em;
}

mark.gold {
  background: var(--gold);
  color: var(--ink);
  font-style: normal;
  padding: 0 0.18em;
  border-radius: 4px;
}

html[data-theme="dark"] mark.gold {
  background: transparent;
  color: var(--gold);
  padding: 0;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) mark.gold {
    background: transparent;
    color: var(--gold);
    padding: 0;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
}

.chip .ico,
.btn-book .ico,
.tile .ico,
.brand-chip .ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 3px;
}

.chip.gold {
  background: var(--gold);
  color: var(--ink);
}

.chip.forest {
  background: var(--forest);
}

.chip.indigo {
  background: var(--indigo);
}

.chip.ghost {
  background: transparent;
  color: var(--link);
  border: 2px solid var(--link);
}

.chip.ghost:hover,
.chip.ghost:focus-visible {
  background: var(--link);
  color: var(--white);
}

html[data-theme="dark"] .chip.ghost:hover,
html[data-theme="dark"] .chip.ghost:focus-visible {
  color: var(--ink);
}

.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  border: 2px solid var(--gold);
}

.btn-book:hover,
.btn-book:focus-visible {
  background: var(--ink);
  color: var(--gold);
  border-color: var(--gold);
}

html[data-theme="dark"] .btn-book:hover,
html[data-theme="dark"] .btn-book:focus-visible {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-book .ico {
  width: 20px;
  height: 20px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--link);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--link);
  cursor: pointer;
}

.btn-share:hover,
.btn-share:focus-visible {
  background: var(--link);
  color: var(--white);
}

html[data-theme="dark"] .btn-share:hover,
html[data-theme="dark"] .btn-share:focus-visible {
  color: var(--ink);
}

.btn-share .ico {
  width: 20px;
  height: 20px;
}

.sticky-book {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 2px solid var(--card-border);
}

.sticky-book .btn-book,
.sticky-book .btn-share {
  flex: 1;
}

.footer-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-chip .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.footer-chip .name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--fg);
}

.footer-chip .handle {
  color: var(--muted);
  font-size: 14px;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.theme-switch {
  display: flex;
  gap: 6px;
  justify-self: end;
  align-self: start;
}

.theme-switch button {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid var(--card-border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.theme-switch button[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
}

.wall {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 88px;
}

.identity {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.identity .avatar {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.identity h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 4vw, 36px);
  color: var(--fg);
}

.identity .badge {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}

.identity-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.reach {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  align-items: center;
}

.mosaic {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .tile-lg,
  .tile-wide {
    grid-column: span 2;
  }
}

.tile,
.linkedin-card {
  border: 2px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-decoration: none;
  color: var(--fg);
  background: var(--card);
  min-height: 140px;
  display: block;
}

a.tile,
a.linkedin-card {
  outline: none;
}

a.tile:hover,
a.tile:focus-visible,
a.linkedin-card:hover,
a.linkedin-card:focus-visible {
  border-color: var(--link);
}

.tile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 8px;
}

.tile h3,
.linkedin-card h2 {
  margin: 0;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.tile p,
.linkedin-card p {
  margin: 0;
  color: var(--muted);
}

.favicon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg);
  object-fit: contain;
}

.chapter-head h2 {
  font-size: 28px;
  margin: 10px 0 8px;
  color: var(--fg);
}

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--link);
  background: var(--card);
  text-decoration: none;
}

a.brand-chip:hover,
a.brand-chip:focus-visible {
  border-color: var(--link);
}

.site-footer {
  margin-top: 32px;
  padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
