@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400&family=Work+Sans:wght@400;500&display=swap');

:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f2f1ee;
  --color-text: #111111;
  --color-text-muted: #5a5a5a;
  --color-border: #dddddd;
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --fs-hero: clamp(2.75rem, 6vw, 4.375rem);
  --fs-section-heading: clamp(2rem, 4vw, 3.25rem);
  --fs-body: 1.05rem;
  --fs-nav: 0.8rem;
  --fs-small: 0.85rem;
  --max-width: 1400px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: var(--fs-nav);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
  border-bottom-color: currentColor;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--color-text);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    gap: 1rem;
    background: var(--color-bg);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    display: none;
    z-index: 10;
  }

  .site-nav.is-open {
    display: flex;
  }
}

/* Split section layout, reused by every content section */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.split--reverse {
  flex-direction: row-reverse;
}

.split__media,
.split__text {
  flex: 1 1 420px;
}

.split--muted {
  background: var(--color-bg-muted);
}

/* Headings */
.hero-title,
.section-heading {
  font-family: var(--font-heading);
  font-weight: 100;
  color: var(--color-text);
  margin: 0 0 1.5rem;
}

.hero-title {
  font-size: var(--fs-hero);
}

.section-heading {
  font-size: var(--fs-section-heading);
}

.specs {
  font-family: var(--font-body);
  line-height: 1.9;
}

.poem {
  font-style: italic;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero image */
.hero-image {
  filter: blur(16px);
  opacity: 0;
  transition: filter 1s ease, opacity 1s ease;
}

.hero-image.is-loaded {
  filter: blur(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  padding: 2rem var(--gutter) 3rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  text-align: center;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__slide {
  display: none;
}

.carousel__slide.is-active {
  display: block;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  cursor: pointer;
}

.carousel__arrow--prev {
  left: 1rem;
}

.carousel__arrow--next {
  right: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 2rem;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-nav);
}

.contact-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status[data-state='success'] {
  color: #2a7a2a;
}

.form-status[data-state='error'] {
  color: #b23b3b;
}

.privacy-note {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.contact-heading {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
