@import url("https://fonts.googleapis.com/css?family=Old+Standard+TT:400,400italic,700");
@import url("https://fonts.googleapis.com/css?family=Cutive+Mono");

body {
  font-family: "Cutive Mono", monospace;
  background-color: rgba(0, 0, 0, 1);
  color: rgba(255, 255, 255, 1);
  margin: 0;
  min-height: 100vh;
}

#light-toggle {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 50;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  font-family: "Cutive Mono", monospace;
  font-size: 12px;
  padding: 7px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  cursor: pointer;
}

#light-toggle .bulb-icon {
  font-size: 16px;
  line-height: 1;
}

#light-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
}

#resumewrap,
#resumewrap * {
  position: relative;
  z-index: 20;
  color: rgba(0, 0, 0, 1);
}

.text-container {
  position: relative;
  width: 80%;
  top: 50px;
  float: right;
  padding-bottom: 80px;
}

.resumeheader {
  font-family: "Old Standard TT", serif;
  font-size: 200%;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-decoration: underline;
}

h2,
h3,
h4 {
  font-family: "Old Standard TT", serif;
  margin: 0;
}

h2 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}

h3 {
  font-weight: 400;
  margin-top: 2px;
}

h4 {
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  margin-top: 4px;
}

p {
  margin: 10px 0 0;
  line-height: 1.55;
}

.section {
  margin: 10px;
  margin-left: 2%;
  width: 35%;
  float: left;
}

.section-wide {
  width: 72%;
}

.identity-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.identity-copy {
  flex: 1 1 260px;
  min-width: 240px;
}

.profile-photo {
  display: none;
  width: 124px;
  height: 124px;
  object-fit: cover;
  /* Spotlight mode visibility is controlled by JS distance-to-light logic. */
  filter: grayscale(100%) contrast(1.05);
  mix-blend-mode: normal;
  opacity: 0;
  transition: opacity 55ms ease-out;
  border: 1px solid rgba(0, 0, 0, 0.58);
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.hero-name {
  font-family: "Old Standard TT", serif;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 22px;
  margin-top: 10px;
}

.hero-eye {
  margin-top: 8px;
  font-size: 15px;
}

.entry {
  margin-bottom: 22px;
}

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

.resume-points {
  margin: 10px 0 0;
  padding-left: 18px;
}

.resume-points li {
  margin-bottom: 5px;
}

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

.skills-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-line {
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.skill-percent {
  font-style: italic;
  font-size: 13px;
  white-space: nowrap;
}

.about-cta {
  margin-top: 14px;
  font-style: italic;
}

.social-links {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links li {
  margin: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(0, 0, 0, 1);
}

#light {
  position: absolute;
  width: 500px;
  height: 500px;
  background-color: #fff;
  z-index: 10;
  pointer-events: none;
  box-shadow: inset 0 0 150px 166px rgba(0, 0, 0, 1);
  -webkit-box-shadow: inset 0 0 150px 166px rgba(0, 0, 0, 1);
  -moz-box-shadow: inset 0 0 150px 166px rgba(0, 0, 0, 1);
}

/* Mobile/touch fallback: disable spotlight and keep text readable. */
body.interactive-no-light #light {
  display: none;
}

body.interactive-no-light #resumewrap,
body.interactive-no-light #resumewrap * {
  color: rgba(255, 255, 255, 0.95);
}

body.interactive-no-light {
  background: rgba(0, 0, 0, 1);
}

body.interactive-no-light .social-links a {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

body.interactive-no-light .profile-photo {
  filter: grayscale(100%) contrast(1.05);
  mix-blend-mode: normal;
  opacity: 1;
}

body.interactive-all-visible #light {
  display: none;
}

body.interactive-all-visible #resumewrap,
body.interactive-all-visible #resumewrap * {
  color: rgba(255, 255, 255, 0.95);
}

body.interactive-all-visible {
  background: rgba(0, 0, 0, 1);
}

body.interactive-all-visible .social-links a {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

body.interactive-all-visible .profile-photo {
  border-color: rgba(255, 255, 255, 0.58);
  filter: grayscale(100%) contrast(1.05);
  mix-blend-mode: normal;
  opacity: 1;
}

@media screen and (max-width: 1100px) {
  .text-container {
    width: 88%;
  }
}

@media screen and (max-width: 900px) {
  .text-container {
    width: 92%;
    top: 30px;
  }

  .section {
    width: 44%;
  }

  .section-wide {
    width: 92%;
  }
}

@media screen and (max-width: 700px) {
  .text-container {
    width: calc(100% - 24px);
    float: none;
    margin: 0 auto;
    top: 16px;
  }

  .section,
  .section-wide {
    width: calc(100% - 20px);
    margin-left: 10px;
  }

  #light-toggle {
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 6px;
  }
}
