/* ============================================================
   MAIN — Tokens, reset, global base styles
   ============================================================ */

:root {
  --bg:       #F2F0EB;
  --fg:       #1E1E1E;
  --mid:      #888888;
  --border:   #D8D5CF;
  --white:    #FFFFFF;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  96px;
  --space-xxl: 128px;

  --content-max:    660px;
  --grid-max:       860px;
  --site-max:       1200px;
  --site-padding:   40px;
  --site-padding-m: 20px;

  --font-base: 'EB Garamond', Garamond, 'Times New Roman', serif;
}

/* Minimal reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

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

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Shared page wrapper — single container used by nav, hero, grid,
   bio, and essay pages so every top-level element lines up to the
   exact same left edge at every viewport size. */
.page-wrap {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 768px) {
  .page-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Image / video caption — global */
.caption {
  margin-top: 10px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

@media (max-width: 768px) {
  .caption {
    font-size: 9px;
  }
}
