:root {
  --bg: #08111a;
  --bg-deep: #050a10;
  --panel: #0d1924;
  --text: #f0ede5;
  --muted: #c8ced6;
  --line: rgba(235, 227, 209, 0.56);
  --accent: #d6c59f;
  --max-width: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
}

.wrap {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 415px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 8, 13, 0.98) 0%, rgba(3, 8, 13, 0.78) 40%, rgba(3, 8, 13, 0.25) 70%, rgba(3, 8, 13, 0.45) 100%),
    radial-gradient(circle at 68% 35%, rgba(129, 153, 185, 0.22), transparent 18%),
    radial-gradient(circle at 73% 58%, rgba(213, 141, 70, 0.23), transparent 23%),
    linear-gradient(180deg, #07111d 0%, #102132 55%, #1a1715 100%);
}


.hero {
  background-image:
    linear-gradient(90deg, rgba(3, 8, 13, .96), rgba(3, 8, 13, .25)),
    url('images/hero-astronomy.jpg');
  background-size: cover;
  background-position: center;
}


.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  opacity: 0.6;
  background-image:
    radial-gradient(circle at 18% 17%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 61% 13%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 21%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 12%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 93% 33%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 42%, white 0 1px, transparent 1.5px);
}

.hero::after {
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(4, 8, 12, 0.86));
}

.site-nav,
.hero-content {
  position: relative;
  z-index: 2;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-top: 20px;
}

.brand {
  text-decoration: none;
}

.brand-name {
    display: block;
    font-family: Baskerville, "Iowan Old Style", "Palatino Linotype",
                 "Book Antiqua", Georgia, serif;
    font-size: clamp(2.15rem, 3vw, 2.95rem);
    line-height: .95;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #eee8dd;
}

.brand-tagline {
  display: block;
  margin-top: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 0.30em;
  color: #d9d4c8;
}

.nav-links {
  display: flex;
  gap: 24px;
  padding-top: 9px;
  font-size: 0.88rem;
}

.nav-links a {
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-bottom-color: var(--accent);
}

.hero-content {
    width: min(calc(100% - 48px), var(--max-width));
    max-width: var(--max-width);
    margin-inline: auto;
    padding-top: 48px;
    padding-bottom: 28px;
}

.hero-content h1,
.hero-content .hero-subtitle {
    max-width: 650px;
}

.eyebrow {
    display: block;
    margin: 0 0 6px;
    font-family: Baskerville, "Iowan Old Style", "Palatino Linotype",
                 "Book Antiqua", Georgia, serif;
    font-size: clamp(3rem, 4.45vw, 4.4rem);
    line-height: .96;
    font-weight: 400;
    letter-spacing: -0.025em;
    color: #e7e1d7;
}

.hero h1 {
    margin: 0;
    max-width: 520px;
    font-family: Baskerville, "Iowan Old Style", "Palatino Linotype",
                 "Book Antiqua", Georgia, serif;
    font-size: clamp(1rem, 1.35vw, 1.28rem);
    line-height: 1.34;
    font-weight: 400;
    letter-spacing: 0;
    color: #c2c0bb;
}

.hero-subtitle {
    margin: 16px 0 0;
    max-width: 620px;
    font-size: clamp(.9rem, 1.1vw, 1.02rem);
    line-height: 1.35;
    font-style: italic;
    font-weight: 400;
    color: #a9adb2;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 0;
}

.interest-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border: 0;
    text-decoration: none;
    background-color: var(--panel);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.interest-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 260ms ease, filter 260ms ease;
  background-size: cover;
  background-position: center;
}

.interest-card:hover::before {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.card-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 12, 18, 0.06) 0%, rgba(6, 12, 18, 0.34) 42%, rgba(7, 14, 21, 0.97) 100%);
}

.card-content {
  position: absolute;
  inset: auto 24px 22px;
}

.card-content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.1vw, 2.1rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.card-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  /* color: #ccd8e5; */
  color: #bcc7d2;  
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.93rem;
  line-height: 1.55;
}

.card-content li {
  margin: 0;
}

.card-content a {
  display: inline-block;
  /* color: #d7e0e8; */
  color: #e0e7ee;
  text-decoration: none;
  transition:
    color 150ms ease,
    transform 150ms ease,
    text-shadow 150ms ease;
}

.card-content a:hover,
.card-content a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: translateX(3px) scale(1.025);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.20);
}

.card-content .placeholder {

  color: rgba(204, 216, 229, 0.58);

  font-style: italic;

}

.card-arrow {
  position: absolute;
  right: 0;
  bottom: -1px;
  font-size: 1.6rem;
  transition: transform 180ms ease;
}

.interest-card:hover .card-arrow {
  transform: translateX(5px);
}

.external-link::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.25em;
  font-size: 0.95em;
  vertical-align: 0.15em;
  opacity: 0.7;
}

.external-link:hover::after {
  opacity: 1;
}

/* Abstract built-in backgrounds. Replace these with your own photography whenever desired. */
.music::before {
  background-image: url("images/music.jpg");
  background-size: cover;
  background-position: center;
}

.games::before {
  background-image: url("images/chess.jpg");
  background-size: cover;
  background-position: center;
}

.genealogy::before {
  background-image: url("images/manuscript.jpg");
  background-size: cover;
  background-position: center;
}

.astro::before {
  background-image: url("images/M33.jpg");
  background-size: cover;
  background-position: center;
}

.nasa::before {
  background-image: url("images/Apollo 9 liftoff.jpg");
  background-size: cover;
  background-position: center;
}

.cooking::before {
  background-image: url("images/Charcuterie made by Veronica.jpg");
  background-size: cover;
  background-position: center;
}

.ai::before {
  background-image: url("images/Bruce and Chet as imagined by Chet.jpg");
  background-size: cover;
  background-position: center;
}

.comics::before {
  background-image: url("images/MMMS record.jpg");
  background-size: cover;
  background-position: center;
}

.software::before {
  background-image: url("images/Leonardo PC.jpg");
  background-size: cover;
  background-position: center;
}

.languages::before {
  background-image: url("images/letter in russian.jpg");
  background-size: cover;
  background-position: center;

}

.writing::before {
  background-image: url("images/You can remember vishki typed.jpg");
  background-size: cover;
  background-position: center;
}

.projects::before {
  background-image: url("images/projects.jpg");
  background-size: cover;
  background-position: center;
}

.quote-card::before {
  background-image: url("images/nebula.jpg");
  background-size: cover;
  background-position: center;
}



.quote-content {
  inset: 42px 28px auto;
}

.quote-content blockquote {
  margin: 0;
  font-size: clamp(1.6rem, 2.35vw, 2.4rem);
  font-style: italic;
  line-height: 1.25;
}

.quote-content cite {
  display: block;
  margin-top: 18px;
  text-align: right;
  color: #ddd6c9;
  font-style: normal;
}

.about-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  padding-block: 84px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .22em;
}

.about-section h2 {
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  line-height: 1.05;
}

.about-section > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.04rem;
  line-height: 1.8;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.14);
  background: #071019;
}

.footer-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-brand,
.back-to-top {
  text-decoration: none;
}

.footer-brand {
  color: #a8bed6;
  font-size: 1.2rem;
}

.footer-inner p {
  margin: 0;
  color: #aebbc8;
  font-style: italic;
}

.back-to-top {
  justify-self: end;
  font-size: 1.55rem;
}

@media (max-width: 1080px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .site-nav {
    display: block;
  }

  .nav-links {
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px 22px;
  }

  .hero {
    min-height: 470px;
  }

  .hero-content {
    padding-top: 54px;
    padding-bottom: 44px;
  }

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

  .interest-card {
    min-height: 320px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 58px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p {
    display: none;
  }
}
