:root {
  --bg: #0f0f0f;
  --text: #f5f3ef;
  --accent: #c8401a;
  --grey: #6b6b6b;
}

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

html,
body {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

/* Logo lockup */

.logo {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.logo-rule {
  width: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.wordmark {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}

.tagline {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grey);
  margin-top: 0.4em;
}

.site-header .logo {
  padding: 2rem;
}
.site-header .wordmark {
  font-size: 1.25rem;
}
.site-header .tagline {
  font-size: 0.6rem;
}

.logo-large .wordmark {
  font-size: clamp(2.5rem, 8vw, 5rem);
}
.logo-large .tagline {
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
}

.logo-small .wordmark {
  font-size: 1.1rem;
}
.logo-small .tagline {
  font-size: 0.55rem;
}

/* Layout */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
  padding: 4rem 1.5rem 8rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
  padding-top: 2rem;
}

.hero-line {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  max-width: 32ch;
}

.intro,
.tech,
.contact {
  max-width: 44rem;
  text-align: center;
}

.intro p + p {
  margin-top: 1rem;
}

.tech p {
  color: var(--grey);
  letter-spacing: 0.05em;
}

.contact-cta {
  display: inline-block;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2em;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.contact-cta:hover {
  opacity: 0.8;
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.site-footer .wordmark {
  font-size: 1rem;
}
.site-footer .tagline {
  font-size: 0.5rem;
}

.domain {
  color: var(--grey);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Mobile */

@media (max-width: 480px) {
  .site-header .logo {
    padding: 1.25rem;
  }
  main {
    gap: 4rem;
    padding: 3rem 1.25rem 6rem;
  }
}
