/* Stop phones from enlarging some text and not the links beside it. iOS needs the prefix. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #151113;
}

/* Grain + vignette, fixed so content scrolls over it (matches tej.as approach) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url%28%23n%29' opacity='0.55'/%3E%3C/svg%3E")
    repeat;
  background-size: 160px 160px;
  mix-blend-mode: screen;
  opacity: 0.15;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(145% 115% at 50% 35%, rgb(0 0 0 / 0%) 58%, #151113 100%);
  opacity: 0.55;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: #f2efe9;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

/* Signature underline */
.ul {
  position: relative;
  display: inline-block;
}

.ul::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  height: 1px;
  width: 0;
  background: #ef3340;
  transition:
    width 0.25s ease-out,
    height 0.2s ease-out;
}

.ul:hover::after,
.ul:focus-visible::after {
  width: 100%;
  height: 2px;
}

.ul:focus-visible {
  outline: none;
}

@media (hover: none) {
  .ul::after {
    width: 100%;
    opacity: 0.35;
  }
}

li::marker {
  color: #ef3340;
}

/* Layout */
.page {
  min-height: 100vh;
  background: #151113;
  color: #d9d3cc;
  font-family: Montserrat, sans-serif;
  line-height: 1.65;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.section {
  padding: 56px 0;
  border-top: 1px solid #2a2426;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a39b98;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid #2a2426;
  font-size: 14px;
  color: #a39b98;
}

.back-link {
  font-size: 15px;
  font-weight: 500;
}

/* Colored links keep their color on hover */
.back-link,
.back-link:hover {
  color: #a39b98;
}

.company-link,
.company-link:hover {
  color: #ef3340;
}

/* Offsets the tall line height so the underline sits just below the descenders */
.company-link::after {
  bottom: 2px;
}

/* Intro */
.intro {
  padding: 80px 0 64px;
}

.name {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  color: #f2efe9;
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 500;
  color: #a39b98;
}

.rule {
  width: 40px;
  height: 2px;
  background: #ef3340;
  margin: 28px 0;
}

.bio {
  max-width: 640px;
  font-size: 18px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  font-size: 16px;
  font-weight: 500;
}

/* Experience */
.jobs {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}

.job {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
}

.job-dates {
  flex: 0 0 150px;
  font-size: 15px;
  color: #a39b98;
}

.job-details {
  flex: 1 1 420px;
  min-width: 0;
}

.job-title {
  font-size: 19px;
  font-weight: 600;
  color: #f2efe9;
}

.job-company {
  margin: 2px 0 10px;
  font-weight: 500;
  color: #ef3340;
}

.job-summary {
  margin-bottom: 10px;
}

.job-highlights {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Projects */
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  margin-top: 32px;
}

.project {
  flex: 1 1 320px;
  min-width: 0;
}

.project-link {
  font-size: 18px;
  font-weight: 600;
}

.project-role {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a39b98;
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 28px;
}

.skill {
  flex: 1 1 240px;
  min-width: 0;
}

.skill-title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #f2efe9;
}

.skills-also {
  margin-top: 28px;
  font-size: 15px;
  color: #a39b98;
}

.skills-also-label {
  font-weight: 600;
  color: #f2efe9;
}

/* Certifications + education */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.credential-group {
  flex: 1 1 320px;
  min-width: 0;
}

.credential-group .section-title {
  margin-bottom: 20px;
}

.credential-name {
  font-weight: 600;
  color: #f2efe9;
}

.credential-detail {
  font-size: 15px;
  color: #a39b98;
}

.credential-detail:not(:last-child) {
  margin-bottom: 16px;
}
