:root {
  --paper: #f7f6f3;
  --ink: #080807;
}

* { box-sizing: border-box; }

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

.slide {
  position: relative;
  min-height: 100svh;
  padding: 2rem;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-align: center;
}

.centered-copy { max-width: 90vw; }

.slide-navigation {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.1rem;
  line-height: 1;
}

.slide-navigation > span { margin-right: 0.15rem; }

.slide-navigation a {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.slide-navigation a:hover {
  background: var(--ink);
  color: var(--paper);
}

h1,
p,
ul { margin: 0; }

h1 {
  font-size: clamp(4rem, 10vw, 11rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.with {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 0.5em;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
}

.word-window {
  width: 6.4em;
  height: 1.05em;
  overflow: hidden;
  text-align: center;
  font-style: italic;
}

.word-stack {
  display: block;
  animation: roll-words 9s cubic-bezier(.65, 0, .35, 1) infinite;
}

.word-stack span {
  display: block;
  height: 1.05em;
}

@keyframes roll-words {
  0%, 17% { transform: translateY(0); }
  24%, 42% { transform: translateY(-20%); }
  49%, 67% { transform: translateY(-40%); }
  74%, 92% { transform: translateY(-60%); }
  100% { transform: translateY(-80%); }
}

.services p,
.contact-form > p {
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  line-height: 0.9;
}

.services ul {
  margin-top: 0.8em;
  padding: 0;
  list-style: none;
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  line-height: 0.96;
}

.contact-form {
  display: grid;
  width: min(100%, 31rem);
  gap: 1.4rem;
}

.contact-form > p { margin-bottom: 0.15em; }

.contact-form label {
  display: grid;
  gap: 0.15rem;
  text-align: left;
}

.contact-form span {
  font-size: 1.25rem;
  font-style: italic;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0.1rem 0 0.25rem;
  background: transparent;
  color: inherit;
  font: 400 1.75rem/1 "Cormorant Garamond", Georgia, serif;
  outline: none;
}

textarea { resize: vertical; min-height: 2.15rem; }
input:focus,
textarea:focus { border-bottom-width: 2px; }

button {
  justify-self: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: italic 1.6rem "Cormorant Garamond", Georgia, serif;
}

button:hover { text-decoration: underline; text-underline-offset: 0.16em; }

.site-footer {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  font-size: 1.1rem;
}

.site-footer a,
.back-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.legal-page {
  width: min(100% - 3rem, 46rem);
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.back-link { font-size: 1.25rem; }

.legal-content { margin-top: clamp(4rem, 12vh, 9rem); }

.legal-content h1 {
  font-size: clamp(3.8rem, 9vw, 7rem);
  line-height: 0.8;
}

.legal-content section { margin-top: 2.75rem; }

.legal-content h2 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.legal-content p {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.12;
}

.legal-content a {
  color: inherit;
  text-underline-offset: 0.12em;
}

@media (max-width: 520px) {
  .slide { padding: 1.5rem; }
  .slide-navigation { top: 1rem; right: 1rem; }
  .site-footer { right: 1rem; bottom: 1rem; }
  h1 { font-size: clamp(3.4rem, 17vw, 5.25rem); }
  .services p,
  .services ul,
  .contact-form > p { font-size: clamp(2.4rem, 12vw, 3.75rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .word-stack { animation: none; }
}
