:root {
  color-scheme: light;
  --bg: #efefef;
  --panel: #f6f6f6;
  --panel-hover: #ffffff;
  --ink: #161616;
  --muted: #5d5d5d;
  --soft: #8a8a8a;
  --line: #d8d8d8;
  --line-strong: #cccccc;
  --header-line: rgba(20, 20, 20, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0b0c;
    --panel: #141416;
    --panel-hover: #1a1b1d;
    --ink: #e2e2e0;
    --muted: #b1b1ad;
    --soft: #878782;
    --line: #2a2a2e;
    --line-strong: #333338;
    --header-line: rgba(226, 226, 224, 0.08);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Proxima Nova", "ProximaNova", "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.34;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 0 18px 40px;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--header-line);
}

.brand {
  text-decoration: none;
  font-size: clamp(17px, 3.6vw, 22px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.hero {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  margin: 24px auto 24px;
}

.portrait-shell {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #d6d6d6;
}

@media (prefers-color-scheme: dark) {
  .portrait-shell {
    background: #1a1b1d;
  }
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  padding: 8px;
  place-items: center;
  text-align: center;
  font-size: 8.5px;
  color: var(--muted);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.44) 25%,
    rgba(0, 0, 0, 0.03) 25%,
    rgba(0, 0, 0, 0.03) 50%,
    rgba(255, 255, 255, 0.44) 50%,
    rgba(255, 255, 255, 0.44) 75%,
    rgba(0, 0, 0, 0.03) 75%,
    rgba(0, 0, 0, 0.03) 100%
  );
  background-size: 12px 12px;
}

.portrait-placeholder strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
}

.hero-copy {
  width: min(100%, 18rem);
}

h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 600;
}

.intro {
  margin: 0;
  font-size: clamp(14px, 3.5vw, 17px);
  line-height: 1.36;
  letter-spacing: 0.003em;
  font-weight: 400;
  color: var(--muted);
}

.links {
  display: grid;
  gap: 10px;
  max-width: 25rem;
  margin: 0 auto;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  min-height: 62px;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  background: var(--panel-hover);
  border-color: var(--line-strong);
}

.link-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.card-core {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--soft);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.label {
  font-size: clamp(17px, 4.3vw, 19px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.value {
  font-size: clamp(11px, 2.8vw, 12px);
  line-height: 1.25;
  font-weight: 400;
  color: var(--soft);
  letter-spacing: 0.01em;
  word-break: break-word;
}

.card-mark {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
}

.card-mark svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-mark-email {
  width: 15px;
  height: 15px;
}

.site-footer {
  margin: 20px auto 0;
  max-width: 25rem;
  padding-top: 2px;
  text-align: center;
}

.footer-site {
  text-decoration: none;
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  color: var(--soft);
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

@media (min-width: 540px) {
  .page-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    margin-top: 28px;
    margin-bottom: 26px;
  }

  .portrait-shell {
    width: 104px;
    height: 104px;
  }

  .link-card {
    min-height: 66px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .card-icon {
    width: 19px;
    height: 19px;
  }
}
