@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap");

:root {
  color-scheme: dark;
  --ink: #f5f1e9;
  --muted: #c9c2b7;
  --accent: #d5a86c;
  --dark: #161513;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(24px, 7vw, 112px);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: rgb(22 21 19 / 76%);
  backdrop-filter: blur(18px);
}

.wordmark,
.site-nav a,
.site-footer,
.eyebrow,
.panel-index,
.text-link,
.coming-soon,
.home-button {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wordmark {
  text-decoration: none;
  letter-spacing: .16em;
}

.wordmark span {
  margin-left: 4px;
  color: var(--accent);
  font-size: 9px;
  vertical-align: top;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
}

.site-nav a {
  position: relative;
  padding: 12px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="location"] {
  color: var(--ink);
}

.site-nav a[aria-current="location"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
}

.story-scroll.is-enhanced {
  height: calc(var(--stage-height, 100svh) * 4);
}

.is-enhanced .story-stage {
  position: sticky;
  top: 0;
  display: grid;
  isolation: isolate;
  overflow: clip;
}

.story-panel {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 48px) clamp(24px, 14vw, 220px) 88px;
  isolation: isolate;
}

.is-enhanced .story-panel {
  opacity: 0;
  pointer-events: none;
}

.is-enhanced .story-panel.is-active {
  pointer-events: auto;
}

.panel-photo,
.not-found-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.story-panel.is-active .panel-photo {
  transform: scale(1.015);
}

.story-panel::after,
.not-found::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(16 15 14 / 84%) 0%, rgb(16 15 14 / 65%) 43%, rgb(16 15 14 / 12%) 100%),
    linear-gradient(0deg, rgb(16 15 14 / 40%), transparent 32%);
  content: "";
}

.panel-home .panel-photo {
  background-image: url("images/home.png"), linear-gradient(120deg, #37332e, #191817 65%);
  background-position: center 39%;
}

.panel-about .panel-photo {
  background-image: url("images/about.png"), linear-gradient(120deg, #3f3931, #1b1917 65%);
  background-position: center 35%;
}

.panel-resume .panel-photo {
  background-image: url("images/resume.png"), linear-gradient(120deg, #353431, #171716 65%);
  background-position: center 36%;
}

.panel-contact .panel-photo {
  background-image: url("images/contact.png"), linear-gradient(120deg, #443b30, #191715 65%);
  background-position: center 40%;
}

.panel-about::after,
.panel-contact::after {
  background: linear-gradient(90deg, rgb(16 15 14 / 9%) 0%, rgb(16 15 14 / 48%) 45%, rgb(16 15 14 / 88%) 100%),
    linear-gradient(0deg, rgb(16 15 14 / 44%), transparent 32%);
}

.panel-copy {
  width: min(100%, 560px);
  margin-left: auto;
}

.home-copy,
.panel-resume .panel-copy {
  margin-right: auto;
  margin-left: 0;
}

.panel-about .panel-copy,
.panel-contact .panel-copy {
  margin-right: 0;
  margin-left: auto;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .22em;
}

h1,
h2,
.not-found-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.04em;
}

.panel-copy h1 {
  font-size: clamp(72px, 11vw, 150px);
  line-height: .98;
}

.panel-copy h2 {
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1.04;
}

.panel-copy h1 span,
.panel-copy h2 span {
  color: var(--accent);
}

.body-copy {
  max-width: 460px;
  margin: 28px 0 0;
  color: #e2ddd5;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 35px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .08em;
}

.text-link span,
.home-button span {
  color: var(--accent);
  font-size: 15px;
}

.resume-placeholder {
  color: var(--muted);
}

.coming-soon {
  display: inline-flex;
  gap: 14px;
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(213 168 108 / 50%);
  color: var(--muted);
}

.coming-soon span {
  color: var(--accent);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 34px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(213 168 108 / 60%);
  text-underline-offset: 5px;
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

a.contact-link {
  transition: color .2s ease;
}

a.contact-link:hover {
  color: var(--accent);
}

.panel-index {
  position: absolute;
  right: clamp(24px, 7vw, 112px);
  bottom: 34px;
  margin: 0;
  color: var(--ink);
}

.panel-index span {
  padding: 0 7px;
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 25px clamp(24px, 7vw, 112px);
  background: #11100f;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
}

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

.site-footer a span {
  margin-left: 8px;
  color: var(--accent);
}

.not-found {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 72px clamp(24px, 14vw, 220px);
  isolation: isolate;
}

.not-found-photo {
  background-image: url("images/404-vito.png"), linear-gradient(115deg, #28231e, #100f0e 70%);
  background-position: center 35%;
}

.not-found::after {
  background: linear-gradient(90deg, rgb(12 11 10 / 90%), rgb(12 11 10 / 60%) 57%, rgb(12 11 10 / 22%)),
    linear-gradient(0deg, rgb(12 11 10 / 42%), transparent 34%);
}

.not-found-content {
  width: min(100%, 670px);
}

.not-found h1 {
  font-size: clamp(100px, 18vw, 220px);
  line-height: .9;
}

.not-found-title {
  margin-top: 20px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.03em;
}

blockquote {
  margin: 34px 0 0;
  padding-left: 18px;
  border-left: 1px solid var(--accent);
}

blockquote p {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(19px, 2vw, 24px);
  font-style: italic;
}

blockquote cite {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

blockquote a {
  text-decoration-color: rgb(213 168 108 / 60%);
  text-underline-offset: 3px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
  padding: 16px 20px;
  border: 1px solid rgb(245 241 233 / 44%);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.home-button:hover {
  border-color: var(--accent);
  background: rgb(255 255 255 / 5%);
}

body.is-404 {
  overflow: hidden;
}

noscript {
  position: fixed;
  z-index: 10;
  right: 12px;
  bottom: 12px;
  padding: 10px;
  background: var(--dark);
}

@media (max-width: 700px) {
  :root {
    --header-height: 104px;
  }

  .site-header {
    height: var(--header-height);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
    padding: 13px 22px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .story-panel {
    min-height: 100svh;
    padding: calc(var(--header-height) + 52px) 26px 90px;
  }

  .story-panel::after,
  .panel-about::after,
  .panel-contact::after {
    background: linear-gradient(180deg, rgb(16 15 14 / 20%) 0%, rgb(16 15 14 / 48%) 30%, rgb(16 15 14 / 88%) 58%, #161513 70%, #161513 100%);
  }

  .panel-photo,
  .not-found-photo {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    transform: none;
  }

  .panel-photo {
    inset: var(--header-height) 0 auto;
    height: 56.25vw;
  }

  .story-panel.is-active .panel-photo {
    transform: none;
  }

  .panel-copy,
  .home-copy,
  .panel-about .panel-copy,
  .panel-contact .panel-copy {
    margin: auto 0 0;
  }

  .panel-copy h2 {
    font-size: clamp(48px, 12vw, 72px);
  }

  .panel-index {
    right: 26px;
    bottom: 27px;
  }

  .site-footer {
    padding: 22px;
  }

  .not-found {
    padding: 50px 27px;
  }

  .not-found::after {
    background: linear-gradient(0deg, rgb(12 11 10 / 92%), rgb(12 11 10 / 60%) 66%, rgb(12 11 10 / 25%));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
