/* ============================================================
   Nick Boyd — Shared Stylesheet
   ============================================================ */

/* -- INTER (SIL Open Font License 1.1) -- */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'Inter';
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── BASE ── */
body {
  background: #ffffff;
  color: #000000;
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

p {
  margin-bottom: 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
}

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

ul li {
  margin-bottom: 0.25em;
}

/* ── LINKS ── */
a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover {
  opacity: 0.45;
}

/* ── LAYOUT ── */
.content {
  padding: 2.75rem 2.75rem 2rem;
  max-width: 820px;
}

/* ── NAV ── */
.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  white-space: nowrap;
}

.site-nav a:hover {
  opacity: 0.45;
}

.site-nav a.active {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* ── SECTIONS ── */
.section {
  margin-bottom: 2.25rem;
}

.section-heading {
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* ── SOCIAL ICONS ── */
.social-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-decoration: none;
  color: #000;
  flex-shrink: 0;
}

.social-icon:hover {
  opacity: 0.5;
}

.social-icon svg {
  display: block;
}

/* ── RESUME ── */
.resume-section {
  margin-bottom: 2.75rem;
}

.resume-section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.45;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #000;
}

.resume-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1.5rem;
  margin-bottom: 1.5rem;
  align-items: baseline;
}

.resume-entry:last-child {
  margin-bottom: 0;
}

.entry-company {
  font-weight: 700;
  font-size: 16px;
}

.entry-dates {
  font-size: 13px;
  opacity: 0.5;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.entry-role {
  grid-column: 1;
  font-size: 14px;
  margin-top: 0.1rem;
  opacity: 0.7;
}

.entry-desc {
  grid-column: 1 / -1;
  font-size: 14px;
  margin-top: 0.45rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 0;
}

.entry-credits {
  grid-column: 1 / -1;
  font-size: 13px;
  margin-top: 0.35rem;
  opacity: 0.6;
  margin-bottom: 0;
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .content {
    padding: 1.5rem 1.25rem 1.5rem;
  }

  .site-nav {
    gap: 0.85rem;
    margin-bottom: 2rem;
    font-size: 15px;
  }

  .resume-entry {
    grid-template-columns: 1fr;
  }

  .entry-dates {
    display: none;
  }

  .entry-company::after {
    content: attr(data-dates);
    font-weight: 400;
    font-size: 13px;
    opacity: 0.5;
    margin-left: 0.5rem;
  }
}

/* -- FOOTER -- */
.site-footer {
  max-width: 820px;
  padding: 1.75rem 2.75rem 2.75rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  white-space: nowrap;
}

.footer-links a:hover {
  opacity: 0.45;
}

.footer-copy {
  font-size: 13px;
  opacity: 0.45;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 1.5rem 1.25rem 2rem;
    margin-top: 2rem;
  }

  .footer-links {
    gap: 0.85rem;
  }
}
