:root {
  --ink: #354f2f;
  --paper: #f7f5f0;
  --stone: #6f756b;
  --accent: #ad7a43;
}

html, body {
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: 'Liberation Sans', Arial, sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, .serif {
  font-family: 'Liberation Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 148px;
  height: auto;
  display: block;
}

.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.card-img {
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.card:hover .card-img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.card:hover .card-title {
  letter-spacing: .04em;
}
.card-title {
  transition: letter-spacing .5s ease;
}

.lightbox {
  transition: opacity .4s ease;
}
.lightbox img {
  transition: opacity .3s ease;
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: var(--ink);
  transition: width .4s ease;
}
.nav-link:hover::after {
  width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.hero-bg-layer.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(247,245,240,0.95) 0%, rgba(247,245,240,0.6) 50%, rgba(247,245,240,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
