:root {
  --background: #181818;
  --surface: #222222;
  --surface-strong: #2b2b2b;
  --text: #f4f1ea;
  --muted: #bdb8ad;
  --line: #3f3f3f;
  --accent: #b77cff;
  --accent-warm: #d7b6ff;
  --accent-soft: rgba(183, 124, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.page-shell.narrow {
  width: min(820px, calc(100% - 40px));
}

.other-section .page-shell.narrow {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: start;
  width: min(1080px, calc(100% - 40px));
}

.hero {
  padding: 92px 0 58px;
  border-bottom: 1px solid var(--line);
}

.hero.centered,
.about-section,
.project-heading,
.other-section {
  text-align: center;
}

.hero.centered h1,
.hero.centered .hero-text,
.project-heading,
.about-text {
  margin-right: auto;
  margin-left: auto;
}

.hero.compact {
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 4rem;
  line-height: 1;
}

h2 {
  margin-bottom: 16px;
  font-size: 2rem;
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #101010;
}

.button.secondary {
  border: 1px solid #5a5a5a;
  color: var(--text);
}

.page-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.about-text {
  max-width: 760px;
  color: var(--muted);
}

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.project-heading {
  margin-left: 0;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
  text-align: left;
}

.section-heading p {
  color: var(--muted);
}

.writing-space {
  min-height: 150px;
  padding: 20px;
  background: var(--surface);
  border: 1px dashed #646464;
  border-radius: 8px;
}

.writing-space.large {
  min-height: 220px;
}

.writing-space p {
  color: var(--muted);
}

.project-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.project-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.project-copy > p {
  max-width: 680px;
  color: var(--muted);
}

.project-copy .writing-space {
  margin: 20px 0 16px;
}

.project-media {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-media figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.placeholder-media {
  display: grid;
}

.image-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  background: var(--accent-soft);
}

.text-link {
  color: var(--accent-warm);
  font-weight: 800;
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

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

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-item {
  min-height: 112px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* LinkedIn */

.contact-item--linkedin {
  min-height: 112px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px; /* match your original value here */
  display: flex;
  align-items: center;
  justify-content: center;
}

.linkedin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0a66c2;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(10, 102, 194, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.linkedin-pill:hover {
  background: #004182;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.45);
}

.linkedin-icon {
  flex-shrink: 0;
}


.contact-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.contact-item strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.site-footer {
  padding: 26px 20px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero {
    padding-top: 54px;
  }

  .two-column,
  .contact-grid,
  .project-section,
  .other-section .page-shell.narrow,
  .contact-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .page-shell,
  .page-shell.narrow {
    width: min(100% - 28px, 1080px);
  }

  h1 {
    font-size: 2.25rem;
  }
}
