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

html, body {
  margin: 0;
  padding: 0;

  /* Inter System */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  /* Art gallery feel */
  font-size: 20px;            
  line-height: 1.52;          
  letter-spacing: -0.25px;    
  
  background-color: #ffffff;
  color: #111111;

  -webkit-font-smoothing: antialiased;
}

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

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 32px 100px;
}

/* ===========================
   NAVIGATION
   =========================== */

nav {
  width: 100%;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ededed;
}

nav a {
  text-decoration: none;
  color: #111111;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.15px;
  margin-left: 32px;
  transition: opacity 0.25s ease;
}

nav a:hover {
  opacity: 0.7;
}

.logo a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* ===========================
   HEADINGS
   =========================== */

h1, h2, h3 {
  font-weight: 600;
  margin-top: 0;
  letter-spacing: -0.5px;
  color: #000;
}

h1 {
  font-size: 56px;
  margin-bottom: 40px;
}

h2 {
  font-size: 32px;
  margin-bottom: 24px;
  margin-top: 60px;
}

h3 {
  font-size: 26px;
  margin-bottom: 16px;
  margin-top: 40px;
}

/* ===========================
   PARAGRAPHS
   =========================== */

p {
  margin-bottom: 24px;
  max-width: 740px;
}

/* ===========================
   LINKS
   =========================== */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.6;
}

/* ===========================
   IMAGES
   =========================== */

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

/* ===========================
   LISTS
   =========================== */

ul, ol {
  padding-left: 24px;
  margin-top: 0;
  margin-bottom: 30px;
}

li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  padding: 80px 32px;
  text-align: center;
  color: #777;
  font-size: 14px;
  letter-spacing: -0.1px;
}

/* ===========================
   BUTTONS
   =========================== */

button {
  font-family: inherit;
  font-size: 16px;
  padding: 10px 20px;
  border: 1px solid #111;
  background: white;
  cursor: pointer;
  letter-spacing: 0.02em;
}

button:hover {
  opacity: 0.7;
}

/* ===========================
   FORMS
   =========================== */

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 16px;
  border-radius: 2px;
  margin-bottom: 20px;
}

textarea {
  resize: vertical;
}

/* ===========================
   PRECISE HEADER ALIGNMENT
   =========================== */

.site-header {
  padding-top: 60px;
  padding-bottom: 40px;
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.header-left {
  flex: 1;
}

.site-title {
  font-size: 16px;
  text-decoration: none;
  color: #111;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.main-nav {
  flex: 2;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.main-nav a {
  margin: 0 18px;
  text-decoration: none;
  color: #111;
  font-weight: 400;
}

.main-nav a:hover {
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

/* ===========================
   SPACING
   =========================== */

section {
  margin-bottom: 80px;
}

:root {
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 80px;
}

/* ===========================
   SCANLINE FOOTER
   =========================== */

.scanline-footer {
  width: 100%;
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scanline-line {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: rgba(0,0,0,0.05);
  margin: 0 auto 18px;
}

.scanline-text {
  font-size: 10px;
  opacity: 0.45;
  letter-spacing: 0.03em;
}

.scanline-anim {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: -200%;
  width: 300%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.03) 50%,
    transparent 100%
  );
  animation: scan 14s linear infinite;
  opacity: 0.6;
}

@keyframes scan {
  from { transform: translateX(-30%); }
  to   { transform: translateX(30%); }
}

/* =========================================================
   MICRO-AESTHETICS — FIXED Z-INDEX
   ========================================================= */

/* (⚠ THIS BLOCK WAS HIDING YOUR RIPPLES) */
/* Now placed BELOW ripples but ABOVE content */

body::before,
body::after {
  z-index: 9994 !important;
}

/* Vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.05) 100%
  );
}

/* Neutral tint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(245,245,245,0.02);
}

/* Tiny contrast oscillation */
.stack {
  animation: contrastPulse 6s ease-in-out infinite;
}

@keyframes contrastPulse {
  0%   { filter: contrast(100%); }
  50%  { filter: contrast(103%); }
  100% { filter: contrast(100%); }
}

/* Ultra-fine grain overlay handled by BaseLayout */