:root {
  color-scheme: light;
  --page: #efe9e6;
  --surface: #fffdfa;
  --surface-soft: #f7f0ed;
  --ink: #221b1d;
  --muted: #6f6265;
  --accent: #9d3f58;
  --accent-dark: #6e2038;
  --accent-soft: #efd3d9;
  --line: rgba(91, 45, 57, 0.16);
  --shadow: 0 24px 70px rgba(69, 38, 45, 0.14);
  --radius-lg: 2rem;
  --radius-md: 1.45rem;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #160f12;
  --surface: #21181c;
  --surface-soft: #2a1e23;
  --ink: #fff8f5;
  --muted: #cdbec2;
  --accent: #e38da3;
  --accent-dark: #b75973;
  --accent-soft: #4a2833;
  --line: rgba(255, 230, 236, 0.13);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 0%, rgba(157, 63, 88, 0.11), transparent 28rem),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  transition: background-color 240ms ease, color 240ms ease;
}

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(100%, 46rem);
  min-height: 100vh;
  margin-inline: auto;
  padding: .75rem .75rem 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .35rem .7rem;
  border-bottom: 1px solid var(--line);
}

.brand-mark { display: flex; align-items: center; gap: .65rem; }

.brand-symbol {
  width: 2rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font: italic 1.2rem/1 var(--display);
}

.brand-name { font-size: .74rem; font-weight: 700; letter-spacing: .18em; }

.icon-button {
  width: 2.65rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent);
  cursor: pointer;
}

.icon-button:hover { transform: translateY(-2px); }

.moon-icon { width: 1.25rem; fill: currentColor; }

.profile-intro {
  display: grid;
  justify-items: center;
  gap: .75rem;
  padding: 1.15rem .65rem 1rem;
  text-align: center;
}

.profile-photo {
  width: 5.75rem;
  height: 5.75rem;
  aspect-ratio: 1 / 1;
  align-self: center;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(74, 31, 45, .15);
}

.profile-copy {
  max-width: 39rem;
}

.profile-copy h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.45rem);
  letter-spacing: -.035em;
}

.profile-copy p {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.48;
}

.hero {
  position: relative;
  min-height: clamp(17.5rem, 64vw, 23rem);
  margin-top: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: var(--accent-dark);
}

.promo-hero {
  background: #f4f3f1;
  box-shadow: 0 18px 44px rgba(33, 16, 22, .12);
}

.promo-hero-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.promo-hero-link::before {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: 2;
  background: linear-gradient(112deg, transparent 40%, rgba(255,255,255,.24) 49%, transparent 58%);
  transform: translateX(-58%);
  animation: promo-hero-sheen 6.5s ease-in-out infinite;
  pointer-events: none;
}

.promo-hero-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.56), inset 0 0 3.5rem rgba(157,63,88,.05);
  animation: promo-hero-glow 3.4s ease-in-out infinite alternate;
  pointer-events: none;
}

.promo-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 7%;
  transform: scale(1.01);
  animation: promo-hero-breathe 8s cubic-bezier(.45, 0, .3, 1) infinite alternate;
}

@keyframes promo-hero-breathe {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(0, -.7%, 0); }
}

@keyframes promo-hero-sheen {
  0%, 28% { transform: translateX(-58%); opacity: 0; }
  44% { opacity: .78; }
  68%, 100% { transform: translateX(58%); opacity: 0; }
}

@keyframes promo-hero-glow {
  from { opacity: .68; }
  to { opacity: 1; }
}

.hero-image, .featured-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image { object-position: center 28%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(22, 9, 14, .03) 28%, rgba(31, 10, 17, .84) 100%);
}

.hero-content {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.8rem;
  color: white;
}

.eyebrow {
  margin: 0 0 .6rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.eyebrow.accent { color: var(--accent); }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .98; }

h1 { max-width: 10ch; margin: 0; font-size: clamp(3rem, 13vw, 5rem); letter-spacing: -.045em; }

.hero-description { max-width: 31rem; margin: .85rem 0 1.25rem; color: rgba(255,255,255,.88); }

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: .75rem 1.05rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .card:focus-visible, .social-link:focus-visible, .icon-button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }

.button-light { background: white; color: #502333; box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.button-accent { width: 100%; background: #d9a9b6; color: #421526; box-shadow: 0 12px 24px rgba(20,4,10,.2); }

.social-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }

.social-link {
  width: 2.25rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: white;
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.08);
}

.section-bridge { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: -1rem -.1rem .35rem; position: relative; z-index: 5; }
.section-bridge > span { height: 0px; background: var(--line); }
.bridge-button { width: 3rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent); }

.links-section { padding: 2rem 0 .5rem; }
.section-intro { margin: 0 .45rem 1.3rem; }
.section-intro h2 { max-width: 12ch; margin: 0; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -.025em; }
.cards { display: grid; gap: .75rem; }

.card {
  min-height: 12.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(7.5rem, .95fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-bg, var(--surface-soft));
  color: var(--card-ink, var(--ink));
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(49, 28, 34, .05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(49, 28, 34, .12); }
.card-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 1.2rem .5rem 1.2rem 1.2rem; }
.card-kicker { margin: 0 0 .45rem; font-size: .66rem; font-weight: 800; letter-spacing: .13em; opacity: .72; }
.card h3 { margin: 0 0 .55rem; font-size: clamp(1.55rem, 5.6vw, 2.25rem); }
.card-description { margin: 0 0 .95rem; font-size: .86rem; line-height: 1.45; opacity: .82; }
.card-cta { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 800; }
.card-arrow { width: 1.65rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, currentColor 10%, transparent); }
.card-media { position: relative; min-width: 0; overflow: hidden; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--card-bg, var(--surface-soft)) 0%, transparent 34%); }
.card-image { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 500ms ease; }
.card:hover .card-image { transform: scale(1.035); }

.featured {
  position: relative;
  min-height: 41rem;
  margin-top: 1rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: #3c2630;
  color: white;
}

.featured-image { object-position: center 30%; }
.featured-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(33,12,21,.08) 28%, rgba(31,9,17,.88) 84%); }
.featured-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); min-width: 8.5rem; padding: .6rem 1rem .7rem; border-radius: 0 0 1.2rem 1.2rem; background: var(--surface); color: var(--accent-dark); text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.featured-content { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; text-align: center; }
.featured h2 { margin: 0; font-size: clamp(3rem, 13vw, 5rem); letter-spacing: -.045em; }
.featured-content > p:not(.eyebrow) { max-width: 31rem; margin: .8rem auto 1.2rem; color: rgba(255,255,255,.84); }

.footer { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1.6rem 1rem .5rem; color: var(--muted); font-size: .72rem; text-align: center; }
.footer p { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 1rem; z-index: 50; max-width: calc(100% - 2rem); padding: .75rem 1rem; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: .82rem; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 1rem); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

noscript { display: block; padding: 1rem; text-align: center; }

@media (min-width: 48rem) {
  .page-shell { margin-block: 1.75rem; padding: 1rem; border-radius: 2.6rem; }
  .topbar { padding-inline: .8rem; }
  .profile-intro { grid-template-columns: auto 1fr; justify-items: start; gap: 1.25rem; padding: 1.35rem 1.15rem; text-align: left; }
  .profile-photo { width: 6.4rem; height: 6.4rem; }
  .profile-copy { align-self: center; }
  .profile-copy p { font-size: .94rem; }
  .hero { min-height: 23rem; }
  .hero-content { left: 2.5rem; right: 2.5rem; bottom: 2.5rem; }
  .card { min-height: 15rem; grid-template-columns: 1.1fr .9fr; }
  .card-content { padding: 1.8rem .75rem 1.8rem 1.8rem; }
  .card-description { max-width: 30ch; font-size: .95rem; }
  .featured { min-height: 46rem; }
  .featured-content { left: 2.5rem; right: 2.5rem; bottom: 2.5rem; }
}

@media (max-width: 23rem) {
  .page-shell { padding-inline: .5rem; }
  .card { grid-template-columns: minmax(0, 1.15fr) minmax(6.5rem, .85fr); }
  .card-content { padding-left: .95rem; }
  .card-description { font-size: .79rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .promo-hero-image { transform: none; }
}
