/* ==========================================================================
   base.css, carlpayne.com
   Shared foundation for every page: design tokens, reset, typography,
   header/nav, footer, buttons, and small utilities.
   Page-specific layout lives in home.css and gallery.css.
   ========================================================================== */

/* ----- Design tokens ------------------------------------------------------
   Change the look of the whole site here. */
:root {
  /* color */
  --ground:        #161310;                 /* page background: warm near-black */
  --ground-2:      #1d1915;                 /* slightly lifted panels */
  --bone:          #EAE3D6;                 /* primary text */
  --bone-dim:      #9C937F;                 /* secondary text, captions */
  --brass:         #B49A66;                 /* accent: links, surname, hovers */
  --hairline:      rgba(234, 227, 214, .14);/* visible rules */
  --hairline-soft: rgba(234, 227, 214, .08);/* subtle rules */

  /* type families */
  --font-display: 'Cormorant Garamond', serif; /* wordmark + headings (caps) */
  --font-body:    'Newsreader', Georgia, serif;/* running text */
  --font-mono:    'IBM Plex Mono', monospace;  /* labels, captions, "ticket" text */

  /* the embossed relief used on the wordmark and page titles */
  --relief:
    0 -1px 0 rgba(255, 252, 240, .24),
    0  1px 0 rgba(0, 0, 0, .7),
    0  3px 5px rgba(0, 0, 0, .4),
    0  8px 16px rgba(0, 0, 0, .28);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--ground);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 4px; }

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

/* ----- Utilities ------------------------------------------------------------ */
/* Small uppercase mono label, the "kitchen ticket" voice. */
.mono {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  font-weight: 400;
}

/* ----- Header / nav ---------------------------------------------------------
   Fixed bar; mix-blend-mode keeps it legible over photos. */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.2rem;
  mix-blend-mode: difference;
}

header .wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

nav { display: flex; gap: 1.8rem; }

nav a {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
}

nav a:hover { opacity: 1; color: var(--brass); }

@media (max-width: 640px) {
  /* On phones, collapse nav to the single "Inquire" link (class="keep"). */
  nav a:not(.keep) { display: none; }
  header { padding: 1.2rem 1.3rem; }
}

/* ----- Buttons --------------------------------------------------------------- */
.btn {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .85rem 1.5rem;
  border: 1px solid var(--hairline);
  transition: border-color .25s, color .25s, background .25s;
}

.btn:hover { border-color: var(--brass); color: var(--brass); }

.btn.solid { background: var(--bone); color: var(--ground); border-color: var(--bone); }
.btn.solid:hover { background: var(--brass); border-color: var(--brass); color: var(--ground); }

/* ----- Footer ----------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 2.4rem 2.2rem 2.8rem;
  display: flex;
  justify-content: center;
}

footer .ticket {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

footer .ticket span { color: var(--brass); }
