@font-face {
  font-family: "Departure Mono";
  src: url("/assets/fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0b0b0b;
  --text: #ff8a1f;
  --muted: #c9671a;
  --dim: #7d4214;
  --line: #3a220f;
  --accent: #ff9f3f;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family:
    "Departure Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    Monaco, monospace;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
}

.page {
  width: min(100%, 900px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
  padding: clamp(28px, 8vw, 72px) 20px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  gap: clamp(28px, 8vw, 88px);
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.copy {
  min-width: 0;
}

.prompt {
  margin: 0 0 18px;
  color: var(--dim);
  font-size: clamp(0.84rem, 2vw, 0.95rem);
}

.avatar {
  display: block;
  width: 144px;
  height: 144px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.subtitle {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  line-height: 1.45;
  font-weight: 400;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #0a0a0a;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 400;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #050505;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.projects {
  padding-top: 32px;
}

h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.15;
  font-weight: 400;
}

.project {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 400;
}

.project p {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

code {
  color: var(--accent);
  font-family: inherit;
}

.project-link {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #0a0a0a;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 400;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  color: #050505;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.project-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .copy {
    order: 2;
  }

  .avatar {
    order: 1;
    width: 112px;
    height: 112px;
  }

  h1 {
    max-width: 12ch;
  }

  .project {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .project-link {
    align-self: flex-start;
  }
}
