@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/assets/fonts/plex-sans-var-latin-ext.woff2?v=b343719d') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/assets/fonts/plex-sans-var-latin.woff2?v=b343719d') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-400-latin-ext.woff2?v=b343719d') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-400-latin.woff2?v=b343719d') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-600-latin-ext.woff2?v=b343719d') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-600-latin.woff2?v=b343719d') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   Emirhan Sönmez — CV site
   Theme: dark FR4 substrate, copper traces, silkscreen type.
   Layout: single scannable page, sticky section nav, editorial rhythm.
   ===================================================================== */

:root {
  --bg-base: #090c0a;
  --bg-raised: rgba(0, 0, 0, 0.5);
  --bg-soft: rgba(0, 0, 0, 0.32);
  --bg-inset: rgba(255, 255, 255, 0.03);

  --line: rgba(214, 160, 104, 0.16);
  --line-strong: rgba(214, 160, 104, 0.34);
  --shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 26px 60px -24px rgba(0, 0, 0, 0.85);

  --copper: #d98a4a;
  --copper-bright: #ffb066;
  --copper-dim: #a86a3a;
  --solder-green: #2fbf78;
  --silkscreen: #eef2ee;

  --text-primary: #edf2ee;
  --text-secondary: #a3b3aa;
  --text-muted: #6f8279;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* Self-hosted from /assets/fonts — see scripts/fetch-fonts.py. The system
     stacks stay as fallbacks for the swap period and for any face that fails. */
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Menlo, Consolas,
    "DejaVu Sans Mono", monospace;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --text-hero: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
  --text-section: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  --text-card: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  --text-body: 0.92rem;
  --text-meta: 0.78rem;

  --space-section: clamp(3rem, 2rem + 4vw, 5.5rem);
  --content-max: 1080px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchors must clear the sticky bar. */
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-base);
}

/* One fixed layer carries both the substrate photo and the tint that keeps
   silkscreen type legible over it.

   This is a position:fixed element rather than background-attachment:fixed on
   the body: iOS Safari either ignores that property or sizes the image to the
   whole document instead of the viewport, which leaves the photo wildly
   mis-scaled on exactly the devices it matters most on. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg-base);
  /* Plain url() first so browsers without image-set() still get a photo;
     image-set() then upgrades to WebP (152 KB vs 311 KB) where supported. */
  background-image:
    linear-gradient(180deg, rgba(5, 7, 6, 0.72), rgba(5, 7, 6, 0.88)),
    url("/assets/img/bg.jpg?v=b343719d");
  background-image:
    linear-gradient(180deg, rgba(5, 7, 6, 0.72), rgba(5, 7, 6, 0.88)),
    image-set(
      url("/assets/img/bg.webp?v=b343719d") type("image/webp"),
      url("/assets/img/bg.jpg?v=b343719d") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Portrait viewports get a dedicated crop taken from the right of the same
   photo. Cropping the landscape frame to a phone leaves only a narrow strip
   through the dark centre — almost no board detail survives. Keyed on aspect
   ratio rather than width so a portrait tablet gets it too. */
@media (max-aspect-ratio: 3 / 4) {
  body::before {
    background-image:
      linear-gradient(180deg, rgba(5, 7, 6, 0.72), rgba(5, 7, 6, 0.88)),
      url("/assets/img/bg-portrait.jpg?v=b343719d");
    background-image:
      linear-gradient(180deg, rgba(5, 7, 6, 0.72), rgba(5, 7, 6, 0.88)),
      image-set(
        url("/assets/img/bg-portrait.webp?v=b343719d") type("image/webp"),
        url("/assets/img/bg-portrait.jpg?v=b343719d") type("image/jpeg")
      );
  }
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Skip link
   --------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--copper);
  color: #0a0d0b;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease-out);
}

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

/* ---------------------------------------------------------------------
   Sticky topbar
   --------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(14px, 3vw, 32px);
  background: rgba(6, 9, 7, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar__brand {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--silkscreen);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.topbar__brand:hover {
  color: var(--copper-bright);
}

.topbar__nav {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  /* Fades the trailing edge on narrow screens so a clipped nav reads as
     scrollable rather than broken. Invisible on wide screens, where the
     nav has slack to the right of the last item. */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

.topbar__nav::-webkit-scrollbar {
  display: none;
}

.topbar__nav ul {
  display: flex;
  gap: 4px;
}

.topbar__nav a {
  display: block;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.topbar__nav a:hover {
  color: var(--copper-bright);
  background: rgba(217, 138, 74, 0.1);
}

.topbar__nav a.is-active {
  color: var(--copper-bright);
  background: rgba(217, 138, 74, 0.15);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-secondary);
  transition: color 0.18s ease, background 0.18s ease;
}

.lang-switch a.active {
  color: #0a0d0b;
  background: var(--copper);
  font-weight: 600;
}

.lang-switch a:not(.active):hover {
  color: var(--copper-bright);
  background: rgba(217, 138, 74, 0.14);
}

.lang-switch .sep {
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   Page shell
   --------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 64px;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */

.hero {
  text-align: center;
  padding: clamp(44px, 6vw, 76px) 0 clamp(20px, 2.5vw, 32px);
  scroll-margin-top: var(--topbar-h);
}

.hero__avatar {
  width: 108px;
  height: 108px;
  margin: 0 auto 24px;
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Silkscreen pin rows on the chip package. */
.hero__avatar::before,
.hero__avatar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--copper-dim) 0 6px, transparent 6px 10px);
  opacity: 0.7;
  z-index: 1;
}

.hero__avatar::before {
  top: -1px;
}

.hero__avatar::after {
  bottom: -1px;
}

.hero__initials {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--copper-bright);
}

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

.hero__availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 6px 15px;
  border: 1px solid rgba(47, 191, 120, 0.32);
  border-radius: 999px;
  background: rgba(47, 191, 120, 0.08);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  color: #9fe3c0;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--solder-green);
  box-shadow: 0 0 0 0 rgba(47, 191, 120, 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(47, 191, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 120, 0); }
}

.hero__name {
  font-size: var(--text-hero);
  font-weight: 700;
  color: var(--silkscreen);
  letter-spacing: -0.02em;
}

.hero__role {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--copper-bright);
}

/* Comment marker is decoration — kept out of the text so print can drop it. */
.hero__role::before {
  content: "// ";
  color: var(--copper-dim);
}

.hero__tagline {
  margin: 16px auto 0;
  max-width: 56ch;
  font-size: 1rem;
  color: var(--text-secondary);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 132px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.fact__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fact__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--silkscreen);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out),
    color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--copper);
  color: var(--copper-bright);
}

.btn--primary {
  background: var(--copper);
  border-color: var(--copper);
  color: #0a0d0b;
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--copper-bright);
  border-color: var(--copper-bright);
  color: #0a0d0b;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------------
   Section shell
   --------------------------------------------------------------------- */

.section {
  padding-top: var(--space-section);
  scroll-margin-top: calc(var(--topbar-h) + 8px);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}

.section__index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--copper-dim);
}

.section__title {
  font-family: var(--font-mono);
  font-size: var(--text-section);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silkscreen);
  white-space: nowrap;
}

/* Copper trace running out from the heading to the edge of the column. */
.section__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* ---------------------------------------------------------------------
   Chips
   --------------------------------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-inset);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Timeline entries — experience, education, volunteering
   --------------------------------------------------------------------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entry {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--copper-dim);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  transition: border-left-color 0.2s ease, transform 0.2s var(--ease-out);
}

.entry:hover {
  border-left-color: var(--copper-bright);
  transform: translateX(2px);
}

.entry__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 20px;
}

.entry__role {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-card);
  font-weight: 650;
  color: var(--silkscreen);
}

.entry__role .ico {
  color: var(--copper);
}

.entry__org {
  grid-column: 1;
  font-size: 0.88rem;
  color: var(--copper-bright);
}

.entry__place {
  color: var(--text-muted);
}

/* The organisation name is the link — underlined faintly so it reads as one
   without shouting over the role above it. */
.orglink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 176, 102, 0.26);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.orglink .ico {
  width: 11px;
  height: 11px;
  opacity: 0.75;
  transition: transform 0.18s ease;
}

.orglink:hover {
  color: var(--copper-bright);
  border-bottom-color: currentColor;
}

.orglink:hover .ico {
  transform: translate(1px, -1px);
}

.entry__dates {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  color: var(--text-muted);
  white-space: nowrap;
}

.entry__summary {
  margin-top: 14px;
  font-size: var(--text-body);
  color: var(--text-secondary);
}

.entry__bullets {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.entry__bullets li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-body);
  color: var(--text-secondary);
}

/* Square pad marker, echoing a through-hole footprint. */
.entry__bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--copper-dim);
  border-radius: 1px;
}

.entry__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.badge--gpa {
  background: rgba(217, 138, 74, 0.16);
  border: 1px solid var(--line-strong);
  color: var(--copper-bright);
}

.entry__note {
  font-size: var(--text-meta);
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   Projects
   --------------------------------------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out),
    box-shadow 0.2s ease;
}

/* Copper trace that lights along the top edge on hover. */
.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.project:hover::before {
  opacity: 1;
}

.project__title {
  font-size: var(--text-card);
  font-weight: 650;
  color: var(--silkscreen);
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  color: var(--text-muted);
}

.project__org {
  color: var(--copper-bright);
}

.project__media {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.project__media img {
  width: 100%;
  height: auto;
}

.project__story {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--text-body);
}

/* Three-beat rhythm: the constraint, the build, the outcome. */
.project__problem {
  color: var(--text-muted);
}

.project__built {
  color: var(--text-secondary);
}

.project__result {
  position: relative;
  padding-left: 14px;
  color: var(--text-primary);
  border-left: 2px solid var(--copper-dim);
}

.project .chip-row {
  margin-top: auto;
  padding-top: 18px;
}

/* ---------------------------------------------------------------------
   Skills
   --------------------------------------------------------------------- */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start; /* let short groups hug their chips instead of stretching */
  gap: 14px;
}

.skill-group {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.skill-group__label {
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--copper);
}

.skill-group .chip-row {
  margin-top: 13px;
}

/* ---------------------------------------------------------------------
   About
   --------------------------------------------------------------------- */

.about {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.about__profile {
  max-width: 72ch;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.about__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about__subheading {
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 13px;
}

.language-list,
.reference-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.language {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(214, 160, 104, 0.14);
}

.language__name {
  font-size: var(--text-body);
  color: var(--text-primary);
}

.language__level {
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  color: var(--copper-bright);
}

.reference {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.reference__name {
  font-size: var(--text-body);
  color: var(--text-primary);
}

.reference__org {
  font-size: var(--text-meta);
  color: var(--text-muted);
}

.about__note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: var(--space-section);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}

.site-footer__top:hover {
  color: var(--copper-bright);
}

/* ---------------------------------------------------------------------
   404 — bilingual, since a wrong URL gives no clue which language was wanted
   --------------------------------------------------------------------- */

.nf__wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.nf__code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 2rem + 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--copper);
}

.nf__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.nf__block h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--silkscreen);
}

.nf__block p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.nf__block .btn {
  margin-top: 6px;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 720px) {
  .topbar__brand {
    display: none;
  }

  .entry__head {
    grid-template-columns: 1fr;
  }

  .entry__dates {
    grid-column: 1;
    grid-row: auto;
    margin-top: 4px;
  }

  .fact {
    flex: 1 1 132px;
  }
}

@media (max-width: 480px) {
  .project,
  .entry,
  .about {
    padding: 20px 18px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .entry:hover,
  .project:hover,
  .btn:hover {
    transform: none;
  }
}
