/* ============================================================
   Omou Publishing — main.css
   Global styles, custom properties, layout
   ============================================================ */

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

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

/* ------- Custom Properties ------- */
:root {
  /* Color */
  --color-bg:           #f5f3ef;
  --color-surface:      #ffffff;
  --color-rule:         #e2e0db;
  --color-dark:         #111111;
  --color-text:         #111111;
  --color-muted:        rgba(0, 0, 0, 0.45);
  --color-text-on-dark: #faf8f4;

  /* Type */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max-width:      720px;
  --margin-page:    clamp(24px, 10vw, 120px);
  --space-section:  80px;
  --space-nav:      116px;
  --space-hero-top: 96px;
  --space-element:  20px;
  --line-length:    60ch;
}

/* ------- Base ------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ------- Layout ------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-page);
}

/* Full page content block (about, publish, terms) */
.page-content {
  padding-top: calc(var(--space-nav) + var(--space-hero-top));
  padding-bottom: var(--space-section);
}

/* Homepage split layout with full-bleed image */
.page-top {
  padding-top: calc(var(--space-nav) + var(--space-hero-top));
  padding-bottom: var(--space-section);
}

.page-lower {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

section {
  margin-bottom: var(--space-section);
}

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

p,
li {
  max-width: var(--line-length);
}

/* ------- Navigation ------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--space-nav);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--margin-page);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.nav-logo img {
  width: 200px;
  height: 100px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 120ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-text);
}

/* ------- Mobile nav toggle ------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-text);
  transition: transform 120ms ease, opacity 120ms ease;
}

/* ------- Hero Block ------- */
.hero {
  padding-top: var(--space-hero-top);
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
  display: block;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero-supporting {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ------- Editorial Image ------- */
.editorial-image {
  margin: 0 calc(-1 * var(--margin-page));
  margin-bottom: var(--space-section);
  overflow: hidden;
}

.editorial-image img {
  width: 100%;
  height: 476px;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: grayscale(10%);
}

/* ------- Rule divider ------- */
.rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin-bottom: var(--space-section);
}

/* ------- Connect page — two-column layout ------- */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

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

/* ------- Form status message ------- */
#form-status {
  display: none;
  padding: 14px 0;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* ------- Honeypot field — visually hidden ------- */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ------- CTA link ------- */
.cta-link {
  font-size: 14px;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
  transition: color 120ms ease;
}

.cta-link:hover {
  color: var(--color-muted);
}

/* ------- Pull quote / statement ------- */
.statement {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  line-height: 1.45;
  color: var(--color-text);
  max-width: var(--line-length);
}

/* ------- Footer ------- */
footer {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  padding: 32px var(--margin-page);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  color: rgba(250, 248, 244, 0.5);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-content p {
  max-width: none;
  color: rgba(250, 248, 244, 0.5);
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-content a {
  color: rgba(250, 248, 244, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
  transition: color 120ms ease;
}

.footer-content a:hover {
  color: var(--color-text-on-dark);
}

/* ------- Responsive ------- */
@media (max-width: 768px) {
  :root {
    --margin-page:    24px;
    --space-hero-top: 60px;
    --space-section:  56px;
  }

  .hero-headline {
    font-size: 30px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--space-nav);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-rule);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

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

  .nav-links li {
    border-bottom: 1px solid var(--color-rule);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px var(--margin-page);
    font-size: 14px;
  }

  .editorial-image img {
    height: 308px;
  }

  .connect-grid {
    grid-template-columns: 1fr;
    gap: var(--space-section);
  }
}
