:root {
  --bg: #0C0D0D;
  --fg: #EDE9E1;
  --accent: #E2AB56;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--fg);
  font-family: Newsreader, Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fg);
  text-decoration: none;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

@keyframes ldl-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ldl-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ldl-spill {
  from { opacity: 0; transform: scaleX(.03); }
  to   { opacity: 1; transform: scaleX(1); }
}

@keyframes ldl-seam {
  0%   { opacity: 0; transform: scaleY(.15); }
  60%  { opacity: 1; }
  100% { opacity: .85; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Page shell */

.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.4vh, 40px) clamp(20px, 4.5vw, 72px) clamp(32px, 6vh, 64px);
  overflow: hidden;
}

.page__glow,
.page__wedge,
.page__seam,
.page__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Header */

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: ldl-fade 1s ease-out both;
}

.wordmark {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  color: rgba(237, 233, 225, .82);
  transition: color .4s ease;
}

.wordmark:hover {
  color: #fff;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .14em;
}

.site-nav a {
  color: rgba(237, 233, 225, .45);
  transition: color .4s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: rgba(226, 171, 86, .9);
}

/* Footer link row (project list, both pages) */

.site-footer-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .16em;
  animation: ldl-fade 1.4s ease-out .8s both;
}

.site-footer-links a {
  color: rgba(237, 233, 225, .34);
  transition: color .4s ease;
}

.site-footer-links a:hover {
  color: rgba(237, 233, 225, .9);
}

/* Section label + divider */

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label span {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .3em;
  color: rgba(237, 233, 225, .58);
  white-space: nowrap;
}

.section-label .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(237, 233, 225, .18), rgba(237, 233, 225, .03));
}

/* Home: hero */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(14px, 2.2vh, 22px);
  padding: clamp(40px, 8vh, 64px) 0;
}

.hero h1 {
  margin: 0;
  width: 100%;
  font-weight: 300;
  font-size: clamp(30px, 5.4vw, 72px);
  line-height: 1.12;
  letter-spacing: -.015em;
  max-width: 15ch;
  text-wrap: pretty;
  animation: ldl-rise 1.5s cubic-bezier(.2, .8, .25, 1) .3s both;
}

.hero p {
  margin: 0;
  width: 100%;
  max-width: 52ch;
  font-size: clamp(15px, 1.32vw, 19px);
  line-height: 1.62;
  font-weight: 200;
  color: rgba(237, 233, 225, .62);
  text-wrap: pretty;
  animation: ldl-rise 1.5s cubic-bezier(.2, .8, .25, 1) .5s both;
}

/* Home: project cards */

.projects {
  position: relative;
  z-index: 1;
  animation: ldl-rise 1.6s cubic-bezier(.2, .8, .25, 1) .8s both;
}

.projects .section-label {
  margin-bottom: clamp(12px, 1.8vh, 20px);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 44px);
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(16px, 2vh, 20px) clamp(16px, 1.4vw, 22px);
  border: 1px solid rgba(237, 233, 225, .12);
  border-radius: 3px;
  background: rgba(237, 233, 225, .015);
  transition: border-color .5s ease, background .5s ease, transform .5s cubic-bezier(.2, .8, .25, 1);
}

.project-card:hover {
  border-color: rgba(226, 171, 86, .42);
  background: rgba(226, 171, 86, .05);
  transform: translateY(-3px);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.project-card__title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
}

.project-card__tag {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .16em;
  color: rgba(226, 171, 86, .7);
  white-space: nowrap;
}

.project-card__desc {
  font-size: clamp(14px, 1.18vw, 17px);
  line-height: 1.5;
  font-weight: 200;
  color: rgba(237, 233, 225, .6);
  max-width: 34ch;
}

.project-card__link {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .1em;
  color: rgba(237, 233, 225, .42);
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 2px;
}

/* Contact page */

.contact-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3.4vh, 34px);
  max-width: 60ch;
  padding: clamp(40px, 6vh, 64px) 0;
}

.contact-main h1 {
  margin: 0;
  width: 100%;
  font-weight: 300;
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -.015em;
  text-wrap: pretty;
  animation: ldl-rise 1.1s cubic-bezier(.2, .8, .25, 1) .15s both;
}

.contact-email-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: ldl-rise 1.1s cubic-bezier(.2, .8, .25, 1) .3s both;
}

.contact-email-block > span {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .3em;
  color: rgba(237, 233, 225, .58);
}

.contact-email {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--fg);
  border-bottom: 1px solid rgba(226, 171, 86, .4);
  align-self: flex-start;
  padding-bottom: 4px;
  transition: border-color .4s ease, color .4s ease;
  word-break: break-word;
}

.contact-email:hover {
  color: #fff;
  border-color: rgba(226, 171, 86, .95);
}

.contact-main p {
  margin: 0;
  width: 100%;
  max-width: 48ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.62;
  font-weight: 200;
  color: rgba(237, 233, 225, .58);
  text-wrap: pretty;
  animation: ldl-rise 1.1s cubic-bezier(.2, .8, .25, 1) .45s both;
}
