/* =============================================================
   JT Designs — Base Styles
   Reset, body defaults, shared utilities, and buttons.
   ============================================================= */

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

/* --- HTML --- */
html {
  scroll-behavior: smooth;
  font-size: 17px;
}

/* --- Body --- */
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Paper-texture noise overlay — subtle, adds warmth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1000;
  will-change: transform;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--gutter-sm); }
}

/* --- Typography utilities --- */

/* Small uppercase labels used above headings */
.label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Section mark: "01 — Title" with extending line */
.section-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.section-mark .s-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--oxblood);
  white-space: nowrap;
}

.section-mark .s-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

/* Primary: dark fill */
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--oxblood);
  transform: translateY(-2px);
}

/* Ghost: transparent with border */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--cream-light);
}

/* Arrow nudge on hover */
.btn .arr { transition: transform var(--transition); }
.btn:hover .arr { transform: translateX(4px); }

/* --- Scroll reveal animation --- */
/* Elements start invisible and slide up slightly; JS adds .in to trigger */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s ease, transform 0.85s var(--ease-out);
}

.reveal.stagger-1 { transition-delay: 0.1s; }
.reveal.stagger-2 { transition-delay: 0.2s; }
.reveal.stagger-3 { transition-delay: 0.3s; }

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
