/* ================================================================
   jharbourne.com
   Clean editorial design system — system fonts, no external requests
   ================================================================ */

/* ── Custom properties ─────────────────────────────────────────── */
:root {
  --bg:        #ffffff;
  --bg-off:    #f8f8f6;
  --ink:       #111111;
  --mid:       #5c5c5c;
  --faint:     #767676;
  --rule:      #ddddd9;
  --accent:    #1e3a5f;
  --display:   Georgia, 'Palatino Linotype', Palatino, serif;
  --sans:      'Helvetica Neue', Helvetica, 'Segoe UI', Arial, system-ui, sans-serif;
  --content:   1100px;
  --pad-h:     2.5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
  scroll-margin-top: 72px; /* clear sticky nav (56px) + breathing room */
}

/* ── Layout ────────────────────────────────────────────────────── */
.wrap {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--pad-h);
}

/* ── Skip navigation ───────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform 0.12s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #ffffff;
  outline-offset: -4px;
  scroll-margin-top: 0;
}

/* ── Navigation ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--pad-h);
}

.site-nav__name {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav__name:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.site-nav__links a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.12s ease;
}

.site-nav__links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-nav__links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

/* ── Section shared ────────────────────────────────────────────── */
.section {
  padding-block: 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.section:last-child {
  border-bottom: none;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.section-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.section-link:hover {
  text-decoration: underline;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}

.hero__tag {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.25rem;
}

.hero__headline {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 2rem;
}

.hero__body {
  max-width: 620px;
}

.hero__body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mid);
}

.hero__body p + p {
  margin-top: 1rem;
}

.hero__quals {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── Project cards (homepage) ──────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  border: 1.5px solid var(--rule);
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--bg);
}

.project-card:first-child {
  border-right: 1.5px solid var(--rule);
}

/* App screenshot sidebar — portrait, inside phone frame */
.project-card__image {
  width: 142px;
  flex-shrink: 0;
  background: var(--bg-off);
  border-right: 1.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
}

.phone-device {
  width: 100%;
  background: #e8e8e8;
  border-radius: 18px;
  border: 3px solid #c8c8c8;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.8);
  overflow: hidden;
}

.phone-device img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content area to the right of the phone */
.project-card__inner {
  flex: 1;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.project-card__stat {
  margin-bottom: 0.75rem;
}

.stat-number {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: normal;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.25rem;
}

.project-card__name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.project-card__role {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

.project-card__text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--mid);
}

/* ── Speaking teaser (homepage) ────────────────────────────────── */
.speaking-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mid);
  max-width: 600px;
  margin-bottom: 2rem;
}

.conference-list {
  border-top: 1px solid var(--rule);
  max-width: 760px;
}

.conference-item {
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 2rem;
  align-items: baseline;
}

.conference-date {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  flex-shrink: 0;
  width: 110px;
}

.conference-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: normal;
  line-height: 1.35;
  color: var(--ink);
}

/* ── Writing teaser (homepage) ─────────────────────────────────── */
.writing-teaser {
  max-width: 680px;
}

.writing-teaser__source {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.writing-teaser__title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.writing-teaser__body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 1rem;
}

.writing-teaser__link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.writing-teaser__link:hover {
  text-decoration: underline;
}

/* ── Personal section ──────────────────────────────────────────── */
.personal-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mid);
  max-width: 620px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding-block: 3.5rem;
}

.site-footer__inner {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--pad-h);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 4rem;
  align-items: start;
}

.footer-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}

.footer-email {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: normal;
  color: white;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.footer-email:hover {
  color: white;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
  padding-top: 0.25rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-location {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-meta {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Page header (inner pages) ─────────────────────────────────── */
.page-header {
  padding-block: 3.5rem 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.page-header__label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}

.page-header__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: normal;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.page-header__intro {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mid);
  max-width: 600px;
}

/* ── Projects page ─────────────────────────────────────────────── */
.project-entry {
  padding-block: 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.project-entry__tags {
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

.project-entry__name {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: normal;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.project-entry__stat-row {
  display: flex;
  gap: 3.5rem;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.project-entry__stat {
  display: flex;
  flex-direction: column;
}

.project-entry__stat-n {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: normal;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.project-entry__stat-l {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.35rem;
}

.project-entry__body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: 660px;
}

.project-entry__body p + p {
  margin-top: 1rem;
}

/* Project figures */
.project-figure {
  float: right;
  margin: 0.25rem 0 1.5rem 2.5rem;
  max-width: 280px;
  clear: right;
}

.project-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}

.project-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--faint);
  line-height: 1.5;
}

/* Browser screenshot */
.project-browser-shot {
  margin-top: 2rem;
  max-width: 680px;
  clear: both;
}

.project-browser-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

/* Two-up browser screenshot gallery */
.project-browser-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 680px;
}

.project-browser-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* Phone screenshot gallery */
.project-phone-gallery {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.project-phone-gallery .phone-device {
  width: 110px;
  flex-shrink: 0;
  border-radius: 18px;
  border: 3px solid #c8c8c8;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.8);
  overflow: hidden;
  background: #e8e8e8;
}

.project-phone-gallery .phone-device img {
  width: 100%;
  height: auto;
  display: block;
}

/* Project links */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: 660px;
}

.project-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.project-link:hover {
  text-decoration: underline;
}

.sub-project {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  max-width: 660px;
}

.sub-project__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: normal;
  color: var(--ink);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.sub-project__tags {
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

.sub-project__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--mid);
}

.sub-project__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 1rem;
}

.sub-project__links a {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}

.sub-project__links a:hover {
  text-decoration: underline;
}

/* ── Speaking page ─────────────────────────────────────────────── */
.topics-section {
  padding-block: 3rem;
  border-bottom: 1px solid var(--rule);
}

.topics-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.topics-head {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.topics-controls {
  display: flex;
  gap: 0.35rem;
}

.topics-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
  line-height: 1;
}

.topics-btn:hover {
  background: var(--bg-off);
  border-color: var(--mid);
}

.topics-track {
  display: flex;
  gap: 1.5px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.topics-track::-webkit-scrollbar {
  display: none;
}

.topic-card {
  flex-shrink: 0;
  width: 256px;
  scroll-snap-align: start;
  border: 1.5px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 1.35rem 1.25rem 2.5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.topic-card__num {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--rule);
  position: absolute;
  bottom: 0.25rem;
  right: 0.75rem;
  pointer-events: none;
  user-select: none;
}

.topic-card__title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: normal;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.topic-card__sub {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--mid);
}

.conf-section {
  padding-block: 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.conf-section-head {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2rem;
}

.conf-entry {
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
  max-width: 780px;
}

.conf-entry:first-of-type {
  border-top: 1px solid var(--rule);
}

/* Two-column grid for submitted conference papers */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--rule);
  border: 1.5px solid var(--rule);
  margin-top: 2rem;
}

.conf-grid .conf-entry {
  border: none;
  border-top: 3px solid var(--accent);
  background: var(--bg);
  padding: 2rem;
  max-width: none;
  display: flex;
  flex-direction: column;
}

.conf-grid .conf-entry:first-of-type {
  border-top: 3px solid var(--accent);
}

.conf-entry__link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.conf-entry__link:hover {
  text-decoration: underline;
}

.conf-entry__meta {
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.conf-entry__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: normal;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.conf-entry__body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--mid);
}

.speaking-cta {
  padding-block: 4rem;
}

.speaking-cta__headline {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: normal;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.speaking-cta__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mid);
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.cta-link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  letter-spacing: 0.02em;
}

.cta-link:hover {
  text-decoration: none;
  border-bottom-width: 2px;
}

/* ── Writing page ──────────────────────────────────────────────── */
.writing-section {
  padding-block: 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.writing-section-head {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2rem;
}

.writing-section__intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mid);
  max-width: 620px;
  margin-bottom: 2rem;
}

.writing-entry {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
  max-width: 780px;
}

.writing-entry:first-of-type {
  border-top: 1px solid var(--rule);
}

.writing-entry__thumb {
  flex-shrink: 0;
  width: 88px;
  background: var(--bg-off);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.writing-entry__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.writing-entry__content {
  flex: 1;
  min-width: 0;
}

.writing-entry__source {
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.writing-entry__title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.writing-entry__title a {
  color: var(--ink);
  text-decoration: none;
}

.writing-entry__title a:hover {
  color: var(--accent);
}

.writing-entry__body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 0.85rem;
}

.writing-entry__link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
}

.writing-entry__link:hover {
  text-decoration: underline;
}

/* ── Books ─────────────────────────────────────────────────────── */
.book-entry {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--rule);
  max-width: 760px;
}

.book-entry:first-of-type {
  border-top: 1px solid var(--rule);
}

.book-cover {
  flex-shrink: 0;
  width: 180px;
}

.book-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.book-entry__body {
  flex: 1;
}

.book-entry__status {
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.book-entry__title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.book-entry__subtitle {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--mid);
  margin-bottom: 0.85rem;
}

.book-entry__desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--mid);
}

/* ── Contact page ──────────────────────────────────────────────── */
.contact-main {
  padding-block: 5rem;
}

.contact-headline {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: normal;
  line-height: 1.35;
  color: var(--mid);
  max-width: 620px;
  margin-bottom: 3rem;
}

.contact-email-link {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: normal;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 2.5rem;
}

.contact-email-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.contact-secondary {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.contact-secondary a {
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
}

.contact-secondary a:hover {
  text-decoration: underline;
}

.contact-location {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 700px) {
  :root {
    --pad-h: 1.25rem;
  }

  .site-nav__links {
    gap: 1.25rem;
  }

  .site-nav__links a {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

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

  .project-card:first-child {
    border-right: none;
    border-bottom: 1.5px solid var(--rule);
  }

  .project-card__image {
    width: 100px;
    padding: 10px 7px;
  }

  .phone-device {
    border-radius: 14px;
  }

  .project-card__inner {
    padding: 1.25rem;
  }

  .book-entry {
    flex-direction: column;
    gap: 1.5rem;
  }

  .book-cover {
    width: 150px;
  }

  .conference-item {
    flex-direction: column;
    gap: 0.3rem;
  }

  .conference-date {
    width: auto;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-links {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .project-entry__stat-row {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .contact-secondary {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .topic-card {
    width: 210px;
  }

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

  .project-browser-gallery {
    grid-template-columns: 1fr;
  }

  .project-phone-gallery {
    gap: 0.6rem;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .project-phone-gallery .phone-device {
    width: 90px;
    flex-shrink: 0;
  }

  .writing-entry {
    flex-direction: column;
  }

  .writing-entry__thumb {
    width: 100%;
    height: 140px;
  }
}
