/* ============================================================
   ANALOG THEORY — In Press
   A print studio for people who still believe physical objects matter. 
   ============================================================ */

:root {
  --ink:    #14141C;
  --cream:  #F2ECDF;
  --orange: #FF5A1F;

  --font: "Inter", "Arial", sans-serif;
  --weight-display: 700;
  --weight-body: 400;
  --weight-medium: 500;

  --track: -0.02em;
  --track-matter: -0.04em;
  --track-wide: 0.12em;
}

/* ─── Reset ─────────────────────────────────────────────── */

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

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--ink);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  cursor: none;
}

/* ─── Custom crosshair cursor ────────────────────────────── */

.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0; /* hidden until mouse first moves */
  transition: opacity 0.15s ease;
}

.cursor.visible {
  opacity: 1;
}

/* Horizontal arm */
.cursor::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--orange);
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Vertical arm */
.cursor::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 100%;
  background-color: var(--orange);
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* ─── Text selection ─────────────────────────────────────── */

::selection {
  background-color: var(--cream);
  color: var(--ink);
}

/* ─── Background plotter illustration ───────────────────── */

.bg-plotter-wrap {
  position: fixed;
  right: -4.3vw;
  top: 50%;
  transform: translateY(-50%);
  height: 85vh;
  width: 85vh; /* match height since plotter SVG is square (1024x1024 viewBox) */
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.bg-plotter {
  display: block;
  height: 100%;
  width: auto;
  opacity: 1;
}

.bg-printhead {
  position: absolute;
  top: 31%;
  left: 60%;
  height: 7.5%;
  width: auto;
  opacity: 1;
  animation: printhead-pass 3s ease-in-out infinite alternate;
}

@keyframes printhead-pass {
  0%   { top: 31%; left: 60%; }
  100% { top: 30%; left: 30%; }
}

/* ─── Layout ─────────────────────────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 48px;
}

/* ─── Main Content ───────────────────────────────────────── */

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 48px;
  padding-bottom: 60px;
}

.logo {
  display: block;
  margin-bottom: 64px;
}

.logo img {
  height: 52px;
  width: auto;
}

.headline {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: var(--weight-display);
  letter-spacing: var(--track-matter);
  line-height: 0.92;
  color: var(--cream);
  margin-bottom: 36px;
  max-width: 14ch;
}

.headline em {
  font-style: normal;
  color: var(--orange);
}

.body-copy {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: var(--weight-body);
  line-height: 1.65;
  color: rgba(242, 236, 223, 0.55);
  max-width: 44ch;
}

/* ─── Orange accent rule ─────────────────────────────────── */

.accent-rule {
  display: block;
  width: 32px;
  height: 3px;
  background-color: var(--orange);
  margin-bottom: 36px;
}

/* ─── Footer bar ─────────────────────────────────────────── */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  padding-left: 48px;
  /* border-top: 1px solid rgba(242, 236, 223, 0.07); */
}

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

.footer__tag {
  font-size: 0.6rem;
  font-weight: var(--weight-display);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--cream);
}

.footer__divider {
  width: 1px;
  height: 14px;
  background-color: rgba(242, 236, 223, 0.15);
}

.footer__url {
  font-size: 0.6rem;
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-wide);
  color: var(--cream);
  opacity: 0.3;
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.footer__url:hover {
  opacity: 1;
  color: var(--orange);
}

.footer__copy {
  font-size: 0.6rem;
  letter-spacing: var(--track-wide);
  color: var(--cream);
  opacity: 0.2;
}


/* ─── Status line ────────────────────────────────────────── */

.status-line {
  margin-top: 24px;
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.3;
}

/* ─── Error page ─────────────────────────────────────────── */

.error-code {
  font-size: clamp(5rem, 18vw, 14rem);
  margin-bottom: 16px;
}

.error-label {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--weight-display);
  letter-spacing: var(--track);
  color: var(--cream);
  margin-bottom: 24px;
}

.error-back {
  display: inline-block;
  margin-top: 32px;
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.error-back:hover {
  opacity: 0.7;
}

/* ─── Body copy weight variation ────────────────────────── */

.body-copy strong {
  font-weight: var(--weight-medium);
  color: rgba(242, 236, 223, 0.9);
}

/* ─── Registration Marks ─────────────────────────────────── */

.reg-marks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Corner crosshairs */
.reg-mark {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(242, 236, 223, 0.25);
  border-radius: 50%;
}

.reg-mark::before,
.reg-mark::after {
  content: '';
  position: absolute;
  background-color: rgba(242, 236, 223, 0.25);
}

/* Horizontal arm */
.reg-mark::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Vertical arm */
.reg-mark::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.reg-mark.top-left  { top: 20px; left: 20px;  }
.reg-mark.top-right { top: 20px; right: 20px; }

/* Alignment bars — top and bottom center */
.align-bars {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.align-bars.top    { top: 20px;    }
.align-bars.bottom { bottom: 20px; }

.align-bars .bar {
  width: 1px;
  height: 18px;
  background-color: rgba(242, 236, 223, 0.2);
}

/* Ink density scale — right edge, vertically centered */
.density-scale {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.density-box {
  width: 8px;
  height: 8px;
  background-color: var(--cream);
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 600px) {
  body {
    overflow: auto;
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .page {
    padding: 32px 28px;
    min-height: 100svh;
  }

  .main{
      padding-left: 10px;

  }

  .logo {
    margin-bottom: 48px;
  }

  .logo img {
    height: 24px;
  }

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

  .reg-marks {
    display: none;
  }

  .bg-plotter-wrap {
    display:none;
  }

  .footer__copy {
    padding-right: 20px;
  }
}
