@font-face {
  font-family: "Changa One";
  src: url("/assets/changa-one.7532196ca725.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Lato;
  src: url("/assets/lato-bold.14f7de6b6169.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font: 700 100%/1.4 Lato, system-ui, sans-serif;
  background: #050506;
  color: #fff;
  --surface: #100e14;
  --border: #302a38;
  --purple: #ab45ff;
  --accent: #c579ff;
  --muted: #aaa2b3;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.shell {
  width: min(100%, 58rem);
  margin-inline: auto;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.identity { min-width: 0; }
.wordmark { display: block; width: min(100%, 11rem); height: auto; }

h1 {
  margin-top: 0.35rem;
  color: var(--purple);
  font: 400 clamp(2rem, 6vw, 2.6rem)/1 "Changa One", system-ui, sans-serif;
}

.contacts { display: flex; gap: 0.5rem; flex-shrink: 0; }

.control {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.control:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.control:active { background: #21132e; border-color: var(--purple); }

@media (hover: hover) {
  .control:hover { background: #241b2e; border-color: #744098; }
}

.contact { justify-content: center; width: 2.75rem; color: var(--accent); }
.icon { display: block; width: 1.125rem; height: 1.125rem; flex: none; }
.contact .icon { width: 1.3rem; height: 1.3rem; }

.content { display: grid; gap: 1.25rem; }
.portrait {
  display: block;
  width: 100%;
  height: clamp(10.75rem, 51vw, 15rem);
  object-fit: cover;
  object-position: center 10%;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #0c0a0f;
}

.directory { display: grid; gap: 1.125rem; }
h2 { font-size: 1.05rem; line-height: 1.2; margin-bottom: 0.625rem; }

.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.links li { display: grid; }
.link { gap: 0.5rem; padding: 0.375rem 0.65rem; font-size: 0.875rem; line-height: 1.2; }
.link .icon { color: var(--accent); }
.link .arrow { margin-inline-start: auto; color: var(--muted); width: 0.8rem; height: 0.8rem; }
.link span { overflow-wrap: anywhere; }
.social-links .link { padding-inline: 0.5rem; }

@media (min-width: 24rem) {
  .social-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 0.375rem;
  }
  .social-links .link {
    min-height: 3.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    padding-inline: 0.0625rem;
    font-size: 0.6875rem;
    text-align: center;
  }
}

@media (min-width: 43rem) {
  .shell { padding: 2.75rem 2rem; }
  .site-header { align-items: center; padding-bottom: 1.375rem; margin-bottom: 1.5rem; }
  .wordmark { width: 13rem; }
  .content { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
  .portrait { height: auto; aspect-ratio: 1119 / 1500; }
  .directory { gap: 1.5rem; }
  .social-links { column-gap: 0.5rem; }
  .link { min-height: 3rem; padding-inline: 0.75rem; }
}

@media (min-width: 52rem) {
  .social-links .link { font-size: 0.75rem; }
}
