/* ============================================
   DARKPORT — BASE
   Reset · Variables · Typography · Utilities
   ============================================ */

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

:root {
  /* colours */
  --black:       #000000;
  --white:       #ffffff;
  --off-white:   #f0eeea;
  --grey-100:    #e8e6e1;
  --grey-300:    #888880;
  --grey-500:    #444440;
  --grey-700:    #1c1c1a;
  --grey-900:    #0d0d0b;
  --accent:      #ffffff;
  --accent-dim:  rgba(255,255,255,0.08);

  /* typography */
  --font-serif:  Georgia, 'Times New Roman', Times, serif;
  --font-mono:   'Courier New', Courier, monospace;

  /* spacing */
  --space-xs:    0.5rem;
  --space-sm:    1rem;
  --space-md:    2rem;
  --space-lg:    4rem;
  --space-xl:    8rem;

  /* layout */
  --max-width:   1200px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  /* transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    0.2s;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-serif);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- typography ---- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--grey-300);
}

a {
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--duration) var(--ease);
}

a:hover { opacity: 0.7; }

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

ul, ol { list-style: none; }

/* ---- layout utilities ---- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--space-lg) 0;
}

.section--lg {
  padding: var(--space-xl) 0;
}

/* ---- text utilities ---- */

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.label--white {
  color: var(--white);
  opacity: 0.5;
}

/* ---- rule ---- */

hr {
  border: none;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  margin: var(--space-md) 0;
}

/* ---- button ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}

.btn--primary:hover {
  background: transparent;
  color: var(--white);
  opacity: 1;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: var(--white);
  background: var(--accent-dim);
  opacity: 1;
}

/* ---- badge ---- */

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  color: var(--grey-300);
}

.badge--white {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ---- divider line with label ---- */

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: rgba(255,255,255,0.1);
}

/* ---- fade-in animation ---- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.7s var(--ease) both;
}

.fade-up--delay-1 { animation-delay: 0.1s; }
.fade-up--delay-2 { animation-delay: 0.2s; }
.fade-up--delay-3 { animation-delay: 0.3s; }
.fade-up--delay-4 { animation-delay: 0.4s; }

/* ---- responsive ---- */

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
  .section--lg { padding: 5rem 0; }
}
