:root {
  color-scheme: dark;
  --paper: #ebe9e4;
  --muted: #92908a;
  --soft-black: #0c0c0b;
  --line: rgba(235, 233, 228, 0.12);
}

* { box-sizing: border-box; }

html { background: var(--soft-black); }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(ellipse 430px 300px at 50% 11%, rgba(223, 207, 184, 0.105), transparent 74%),
    var(--soft-black);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
::selection { color: var(--soft-black); background: var(--paper); }

.page {
  width: min(calc(100% - 36px), 520px);
  margin: 0 auto;
  padding: calc(23px + env(safe-area-inset-top)) 0 calc(26px + env(safe-area-inset-bottom));
}

.topline, .wordmark, .section-label, .footer { display: flex; align-items: center; justify-content: space-between; }
.topline { min-height: 34px; }
.wordmark { justify-content: flex-start; gap: 10px; font-size: 10px; font-weight: 650; letter-spacing: 0.17em; }
.monogram {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(235, 233, 228, 0.55);
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: -0.06em;
}
.location, .eyebrow, .section-label, .footer { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; }
.location { color: #aaa79f; }

.intro { padding: 37px 0 31px; text-align: center; }
.portrait-wrap { position: relative; width: 108px; height: 108px; margin: 0 auto 24px; }
.portrait-wrap::before {
  position: absolute;
  inset: -7px;
  content: "";
  border: 1px solid rgba(235, 233, 228, 0.23);
  border-radius: 50%;
}
.portrait-wrap img { display: block; width: 108px; height: 108px; border-radius: 50%; object-fit: cover; }
.portrait-spark {
  position: absolute;
  right: -12px;
  bottom: -8px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 3px solid var(--soft-black);
  border-radius: 50%;
  color: var(--soft-black);
  background: var(--paper);
  font-size: 19px;
}
.eyebrow { margin: 0; color: #bab7b0; font-size: 9px; }
h1 { margin: 13px 0 12px; font-size: clamp(31px, 8vw, 41px); font-weight: 550; line-height: 1.04; letter-spacing: -0.055em; }
h1 span { color: #b5b1a8; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -0.065em; }
.intro-copy { max-width: 345px; margin: 0 auto; color: #aaa79f; font-size: 14px; line-height: 1.6; }

.links-section { margin-top: 28px; }
.section-label { margin: 0 2px 10px; color: #8f8c84; line-height: 1; }
.section-label span:last-child { font-size: 15px; font-weight: 400; }
.link-stack { display: grid; gap: 9px; }
.link-card {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 15px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.link-card:hover { transform: translateY(-2px); border-color: rgba(235, 233, 228, 0.34); background-color: rgba(255, 255, 255, 0.05); }
.link-card:active { transform: scale(0.99); }
.featured {
  min-height: 80px;
  border-color: var(--paper);
  color: var(--soft-black);
  background: var(--paper);
}
.featured:hover { border-color: #fff; background: #fff; }
.link-icon, .link-number { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border: 1px solid rgba(235, 233, 228, 0.19); border-radius: 10px; }
.link-icon { border-color: rgba(12, 12, 11, 0.15); font-size: 20px; }
.link-number { color: #aaa79f; font-size: 11px; letter-spacing: 0.03em; }
.link-copy { display: grid; gap: 4px; min-width: 0; }
.link-copy strong { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.link-copy small { color: #97948d; font-size: 12px; line-height: 1.25; }
.featured .link-copy small { color: #56544e; }
.link-arrow { margin-left: auto; align-self: center; font-size: 20px; font-weight: 300; }

.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.social-grid a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px;
  font-weight: 520;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.social-grid a:hover { transform: translateY(-2px); border-color: rgba(235, 233, 228, 0.34); background-color: rgba(255, 255, 255, 0.055); }
.social-grid a span:last-child { color: #aaa79f; font-size: 18px; font-weight: 300; }

.footer { gap: 12px; margin-top: 43px; padding-top: 19px; border-top: 1px solid var(--line); color: #77756f; font-size: 9px; }
.footer a { color: #aaa79f; text-align: right; }
.footer a:hover { color: var(--paper); }

.not-found { display: grid; min-height: 100svh; max-width: 520px; align-content: center; gap: 16px; margin: 0 auto; padding: 24px; }
.not-found h1 { margin: 0; }
.not-found p:not(.eyebrow) { margin: 0; color: var(--muted); }
.primary-link { display: flex; justify-content: space-between; width: fit-content; min-width: 190px; margin-top: 10px; padding: 16px; border-radius: 14px; color: var(--soft-black); background: var(--paper); font-weight: 600; }

@media (min-width: 640px) {
  .page { padding-top: 38px; }
  .intro { padding-top: 61px; padding-bottom: 42px; }
  .links-section { margin-top: 32px; }
}

@media (max-width: 360px) {
  .page { width: min(calc(100% - 28px), 520px); }
  .location { font-size: 9px; }
  .link-card { gap: 11px; padding-inline: 13px; }
  .social-grid a { padding-inline: 12px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 9px; }
  .footer a { text-align: left; }
}

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