/* src/style.css */
:root {
  --bg-primary: #f4f2ef;
  --bg-elevated: #eae8e4;
  --bg-surface: #dedcd7;
  --bg-interactive: #d2d0cb;
  --text-primary: #1c1b19;
  --text-secondary: #52504b;
  --text-muted: #7a7770;
  --accent: #c0362c;
  --accent-hover: #a82e25;
  --accent-subtle: #c0362c14;
  --fog-light: #d0cec8;
  --fog-mid: #8a8680;
  --fog-deep: #5c5955;
  --fog-night: #3a3835;
  --contour: #cbc9c3;
  --contour-hover: #9e9a93;
  --font-serif: "EB Garamond", "Georgia", serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
  --font-brand: "Outfit", sans-serif;
}

*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-serif);
  display: flex;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  flex-direction: column;
}

.contour-bg {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  fill: none;
  stroke: var(--fog-light);
  stroke-width: .8;
  stroke-linecap: round;
  opacity: 0;
  animation: contourFieldIn 3s ease-out .3s forwards;
  width: 100%;
  height: 100%;
  inset: 0;
}

.contour-bg path:first-child {
  stroke-opacity: .6;
}

.contour-bg path:nth-child(2) {
  stroke-opacity: .45;
}

.contour-bg path:nth-child(3) {
  stroke-opacity: .55;
  stroke-width: 1;
}

.contour-bg path:nth-child(4) {
  stroke-opacity: .3;
}

.contour-bg path:nth-child(5) {
  stroke-opacity: .5;
  stroke-width: 1;
}

.contour-bg path:nth-child(6) {
  stroke-opacity: .25;
}

.contour-bg path:nth-child(7) {
  stroke-opacity: .4;
}

.contour-bg path:nth-child(8) {
  stroke-opacity: .2;
}

.contour-bg path:nth-child(9) {
  stroke-opacity: .15;
}

.contour-bg path:nth-child(10) {
  stroke-opacity: .1;
}

@keyframes contourFieldIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

main {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  flex: 1;
}

.hero {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items:  center;
  min-height: 68vh;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  opacity: 0;
  animation: heroIn 1.2s ease-out .4s forwards;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-mark {
  display: flex;
  justify-content: center;
  align-items:  center;
  gap: 10px;
  margin-bottom: 2rem;
}

.mark-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle), 0 0 12px #c0362c33;
  animation: dotPulse 3s ease-in-out infinite;
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px var(--accent-subtle), 0 0 12px #c0362c26;
  }

  50% {
    box-shadow: 0 0 0 6px var(--accent-subtle), 0 0 20px #c0362c40;
  }
}

.mark-coords {
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: .06em;
  font-size: .6875rem;
  font-weight: 400;
}

.hero-title {
  font-family: var(--font-brand);
  letter-spacing: .12em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
}

.hero-tagline {
  font-family: var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: .6875rem;
  font-weight: 500;
}

.hero-subtitle {
  font-family: var(--font-serif);
  color: var(--text-secondary);
  letter-spacing: .01em;
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 400;
}

.projects {
  opacity: 0;
  animation: heroIn 1s ease-out 1s forwards;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.projects-label {
  font-family: var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .75rem;
  padding-left: 2px;
  font-size: .625rem;
  font-weight: 500;
}

.project-card {
  display: flex;
  border: 1px solid var(--contour);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: #f4f2efb3;
  border-radius: 8px;
  flex-direction: column;
  padding: 18px 20px;
  transition: border-color .3s, background .3s, box-shadow .3s, transform .3s;
}

.project-card:hover {
  border-color: var(--accent);
  background: #fffc;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px #c0362c0f, 0 1px 4px #0000000a;
}

.project-card:hover .project-tag {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.project-card:hover .project-cta {
  color: var(--accent);
}

.project-card:hover .arrow {
  transform: translateX(4px);
}

.project-head {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin-bottom: 8px;
}

.project-tag {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid #c0362c40;
  border-radius: 3px;
  padding: 2px 7px;
  transition: background .3s, color .3s, border-color .3s;
  font-size: .5625rem;
  font-weight: 500;
  line-height: 1.2;
}

.project-name {
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: .02em;
  font-size: .9375rem;
  font-weight: 500;
}

.project-desc {
  font-family: var(--font-serif);
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 12px;
  font-size: .9375rem;
  line-height: 1.5;
}

.project-cta {
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: .02em;
  transition: color .3s;
  font-size: .75rem;
  font-weight: 500;
}

.arrow {
  display: inline-block;
  transition: transform .3s;
}

footer {
  text-align: center;
  border-top: 1px solid var(--contour);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  padding: 2rem 1.5rem;
}

.footer-mark {
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: .06em;
  font-size: .6875rem;
  font-weight: 400;
}

.footer-sep {
  color: var(--contour);
  font-size: .75rem;
}

.footer-note {
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-size: .8125rem;
  font-style: italic;
}

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

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: .08em;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .project-card {
    padding: 14px 16px;
  }

  .projects {
    padding: 0 1rem 4rem;
  }
}
