:root {
  --cream: #f4efe4;
  --warm-white: #faf8f3;
  --graphite: #1a1a1a;
  --graphite-mid: #2e2a26;
  --graphite-light: #3a3632;
  --graphite-faint: #6b6560;
  --ink-brown: #2a2018;
  --rule-line: rgba(60, 50, 40, 0.1);
}

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

body {
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(244, 239, 228, 0.6), rgba(244, 239, 228, 0.6)),
    url('public/Texturelabs_Paper_316M_seemless.jpg');
  background-repeat: repeat;
  background-size: 100% auto;
  color: var(--graphite);
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 19px;
  line-height: 1.8;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Typography ---- */

h1 {
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-brown);
  line-height: 1.2;
}

h2 {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--graphite-faint);
  border-bottom: 1px solid var(--rule-line);
  margin-bottom: 1rem;
}

h3 {
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink-brown);
  margin-bottom: 0.3em;
}

p {
  color: var(--graphite-light);
}

a {
  color: var(--ink-brown);
  text-decoration-color: var(--graphite-faint);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.3s;
}

a:hover {
  text-decoration-color: var(--ink-brown);
}

hr {
  border: none;
  border-top: 1px solid var(--rule-line);
  margin: 4rem auto;
  max-width: 120px;
}

small {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--graphite-faint);
}

/* ---- Layout ---- */

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

header .tagline {
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--graphite-faint);
  margin-top: 1.2rem;
  letter-spacing: 0.04em;
}

main {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  overflow: hidden;
}

section {
  margin-bottom: 5rem;
}

section:last-child {
  margin-bottom: 0;
}

/* ---- Footer ---- */

footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  text-align: center;
}

footer .colophon {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--graphite-faint);
  letter-spacing: 0.04em;
  max-width: none;
  margin: 0 auto;
}

/* ---- Flow field canvas ---- */

#flow-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

header, main, footer {
  position: relative;
  z-index: 1;
}
