:root {
  /* ===== COLOR ===== */
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;

  /* ===== HORIZONTAL AXES ===== */
  --axis-x: 140px; /* LEFT edge */
  --axis-y: 60px;  /* RIGHT edge */

  /* ===== VERTICAL PADDING ===== */
  --pad-top: 24px;
  --pad-bottom: 40px;

  /* ===== RHYTHM ===== */
  --main-offset-y: 32px;
  --section-gap: 48px;

  /* ===== TYPE / UI ===== */
  --ui-font: "helvetica-lt-pro", sans-serif;
  --logo-font: "termina", sans-serif;
  --ui-weight: 300;

  /* ===== LAYOUT MODULES ===== */
  --max-width: 720px;
  --sidebar-width: 520px;
  --gap: 0px;
  --sticky-top: 65px;

  /* ===== COMPONENT SPACING ===== */
  --header-pad-y: 20px;
  --footer-pad-top: 32px;
  --footer-pad-bottom: 32px;

  /* ===== PROJECT PLATES ===== */
  --plate-min: clamp(560px, 78vh, 980px);
  --plate-divider: rgba(0, 0, 0, 0.18);
  --left-pad-x: 44px;
  --left-pad-top: clamp(88px, 10vh, 140px);
  --left-pad-bottom: 18px;
}

/* GLOBAL RESET + REMOVE iOS TAP HIGHLIGHT */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;

  padding: var(--pad-top) var(--axis-y) 0 var(--axis-x);

  background: var(--bg);
  color: var(--text);

  display: flex;
  flex-direction: column;

  /* CONTENT TYPE */
  font-family: "beaufort-pro", serif;
  font-weight: 300;
  font-style: normal;
  line-height: 1.6;
}

/* ===============================
   PAGE LAYOUT
   =============================== */

main {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1;
  margin-top: var(--main-offset-y);
}

/* ===============================
   TYPOGRAPHY BASE
   =============================== */

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

/* ===============================
   UTILITIES
   =============================== */

.nocopy {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===============================
   MOBILE (global padding + fixed header offset)
   =============================== */

@media (max-width: 640px) {
  /* Match your mobile body padding to axis variables */
  :root {
    --axis-x: 18px;
    --axis-y: 18px;
    --pad-top: 32px;
  }

  body {
    padding: var(--pad-top) var(--axis-y) 0 var(--axis-x);
  }

  /* Push content down because header is fixed */
  main {
    margin-top: calc(var(--main-offset-y) + 64px);
  }
}
