/* === Insatum — House of Editorial Imprints === */

:root {
  --bg-primary: #F7F4EE;
  --bg-legal: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --rule: rgba(26, 26, 26, 0.12);
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Libre Franklin', 'Helvetica Neue', sans-serif;
  --max-width: 640px;
  --section-gap: 160px;
}

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

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
}

/* — Layout — */

.page-column {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* — Masthead — */

.masthead {
  padding: 40px 0 0;
  text-align: center;
}

.masthead-link {
  text-decoration: none;
  color: var(--text-primary);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

/* — Hero — */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 0 24px;
}

.hero-statement {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 600px;
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 32px auto;
}

.hero-subline {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* — Sections — */

.section {
  padding-top: var(--section-gap);
}

.section-rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
  border: none;
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.section p {
  max-width: var(--max-width);
}

/* — About — */

.about-text {
  font-family: var(--font-body);
  line-height: 1.8;
}

/* — Categories — */

.categories-text {
  font-family: var(--font-body);
  line-height: 1.8;
}

/* — Services — */

.services-block {
  margin-bottom: 32px;
}

.services-block:last-of-type {
  margin-bottom: 0;
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  margin-bottom: 8px;
}

.service-description {
  font-family: var(--font-body);
  line-height: 1.8;
}

/* — Contact — */

.contact {
  padding-top: 64px;
}

.contact-line {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contact-line a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease;
}

.contact-line a:hover {
  color: var(--text-primary);
}

/* — Footer — */

.footer {
  padding-top: var(--section-gap);
  padding-bottom: 48px;
}

.footer-rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
  border: none;
  margin-bottom: 32px;
}

.footer-entity {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* — Fade-in animation — */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* — Legal pages — */

body.legal-page {
  background-color: var(--bg-legal);
}

.legal-content {
  padding-top: 80px;
  padding-bottom: 80px;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.legal-content .legal-updated {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* — Responsive — */

@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

  .masthead {
    padding-top: 32px;
  }

  .hero-statement {
    font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.5rem);
  }

  .contact {
    padding-top: 48px;
  }

  .footer {
    padding-top: 80px;
  }
}

@media (max-width: 375px) {
  .page-column {
    padding: 0 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
