/* ==========================================================================
   ClapVoid — Responsive Editorial Stylesheet
   ========================================================================== */

:root {
  --bg-paper: #faf5e8;
  --grid-line: rgba(182, 173, 154, 0.28);
  --grid-size: 38px;
  --text-primary: #1c1b19;
  --text-strong: #0e0e0d;
  --accent-red: #e53517;
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-paper);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.56;

  /* Crisp, resolution-independent graph paper background */
  background-color: var(--bg-paper);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: -1px -1px;
}

/* Decorative geometric artwork layer */
.bg-artwork {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* Main content container */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4.75rem) clamp(1.5rem, 8vw, 11.5rem) clamp(3rem, 6vh, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-column {
  width: 100%;
  max-width: 680px;
}

/* Header / Brand wordmark */
.site-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.1rem);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.2vw, 3.85rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  user-select: all;
}

.brand-slash-o {
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  margin: 0 0.02em;
  vertical-align: -0.04em;
  flex-shrink: 0;
}

.brand-accent {
  width: clamp(56px, 6.5vw, 88px);
  height: 4px;
  background-color: var(--accent-red);
  margin-top: clamp(0.65rem, 1.4vw, 0.95rem);
}

/* Editorial copy */
.manifesto {
  display: flex;
  flex-direction: column;
  gap: clamp(0.95rem, 1.55vw, 1.15rem);
}

.manifesto p {
  font-size: clamp(0.94rem, 1.12vw, 1.03rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.54;
  max-width: 64ch;
}

.tagline {
  margin-top: clamp(1.25rem, 2.2vw, 1.75rem);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.65vw, 1.38rem);
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: -0.01em;
}

/* Footer & Contact */
.site-footer {
  margin-top: clamp(1.25rem, 2.4vw, 1.75rem);
}

.footer-divider {
  border: 0;
  height: 3px;
  width: 100%;
  max-width: 700px;
  background-color: var(--accent-red);
  margin-bottom: clamp(0.95rem, 1.8vw, 1.25rem);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  font-weight: 700;
  color: var(--text-strong);
}

.contact-sep {
  color: var(--accent-red);
  font-weight: 400;
  user-select: none;
}

.contact-link {
  color: var(--text-strong);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
  outline: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1120px) {
  .page-wrapper {
    padding-left: clamp(1.75rem, 6vw, 4.5rem);
    padding-right: clamp(1.75rem, 6vw, 4.5rem);
  }

  .content-column {
    max-width: 600px;
  }

  .bg-artwork img {
    opacity: 0.72;
  }
}

/* Tablets (Portrait) */
@media (max-width: 820px) {
  :root {
    --grid-size: 30px;
  }

  .page-wrapper {
    justify-content: flex-start;
    padding: 3rem 2rem 4rem;
  }

  .content-column {
    max-width: 100%;
  }

  .bg-artwork img {
    opacity: 0.32;
    object-position: 85% center;
  }
}

/* Mobile Devices */
@media (max-width: 540px) {
  :root {
    --grid-size: 26px;
  }

  .page-wrapper {
    padding: 2.25rem 1.35rem 3.25rem;
  }

  .manifesto p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .bg-artwork img {
    opacity: 0.22;
    object-position: 92% bottom;
  }
}

/* Ultrawide Monitors */
@media (min-width: 1680px) {
  .page-wrapper {
    max-width: 1600px;
  }

  .content-column {
    max-width: 720px;
  }
}

/* Print Styles */
@media print {
  body {
    background: #ffffff;
  }

  .bg-artwork {
    position: absolute;
    opacity: 0.25;
  }

  .page-wrapper {
    min-height: auto;
    padding: 1.5rem;
  }
}
