/* ==========================================================================
   Trevor Earley Photography — Base
   Reset, design tokens, typography, layout utilities, placeholder imagery
   ========================================================================== */

:root {
  /* Color — dark steel/black, white text, no color accent (monochrome, editorial) */
  --color-bg:          #0b0c0d;
  --color-bg-alt:      #141618;
  --color-panel:       #1b1e21;
  --color-steel:       #2c3034;
  --color-steel-soft:  #24272a;
  --color-border:      #303438;
  --color-text:        #f4f4f2;
  --color-text-dim:    #c7c9cb;
  --color-text-mute:   #8b9096;

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  /* Layout */
  --container-max: 1440px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 84px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

html, body {
  height: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-mute);
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-dim);
}

/* ---- Layout utilities ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 1000;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border: 1px solid var(--color-text);
  border-radius: 2px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: transparent;
  color: var(--color-text);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-text);
}

.btn svg {
  width: 1em;
  height: 1em;
}

/* ---- Placeholder imagery ----
   Used everywhere a real photo will eventually go. Keeps correct aspect
   ratio / sizing so swapping in real images later is a drop-in replacement.
   Remove the .img-placeholder class and replace the element with a real
   <img> once photos are ready. */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      var(--color-steel-soft) 0px,
      var(--color-steel-soft) 2px,
      var(--color-bg-alt) 2px,
      var(--color-bg-alt) 14px
    );
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.img-placeholder::after {
  content: attr(data-label);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  background: var(--color-bg);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  text-align: center;
  max-width: 80%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
