/* ==========================================================================
   Alan Meyerson — design tokens
   Adapted from the Hungry House design system (restrained paper+ink+accent
   palette, hairline rules, square corners, no shadows). The finance-memo
   voice, print layout, and ember accent were left behind; the accent here
   is a warm brass tone pulled from the reference mockup instead.

   Typography: a single clean sans-serif family (Inter) is used throughout
   — headings, labels, body copy, and numerals — per Alan's request to
   drop the mixed serif/label/mono system in favor of one consistent look.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Paper + ink */
  --paper:      #f4efe4;
  --paper-2:    #ece4d4;
  --ink:        #17140f;
  --ink-2:      #2c2721;
  --ink-3:      #5c5347;
  --ink-4:      #8c8275;

  /* Hairlines */
  --rule:       #c9c0aa;
  --rule-soft:  #ddd5c0;

  /* Single accent — warm brass, standing in for "ember" */
  --brass:      #a97a3e;
  --brass-deep: #7c5726;

  /* Dark panel (used sparingly, per source system's rule) */
  --panel-dark: #16130f;
  --panel-dark-text: #f4efe4;

  /* Type — one clean family everywhere */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-label:   'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Inter', system-ui, -apple-system, sans-serif;

  /* Outlined-text pop — used over the painting background where a flat
     color alone isn't reliably legible against its shifting colors. */
  --pop-shadow:
    -1px 0 0 #000, 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000,
    -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
    -2px 0 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000,
    0 0 6px rgba(0,0,0,0.9);
  --pop-shadow-rev:
    -1px 0 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, 0 1px 0 #fff,
    -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff,
    -2px 0 0 #fff, 2px 0 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff,
    0 0 6px rgba(255,255,255,0.9);
}

* { box-sizing: border-box; }

/* the [hidden] attribute must always win, even over elements with their
   own `display` rule (e.g. .hero's display:grid) */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
html { -webkit-text-size-adjust: 100%; }
@media (max-width: 540px) {
  html, body { font-size: 16px; }
}

/* Painting background — Alan's office painting, cleaned of its frame,
   shown full-strength as the site's backdrop (no paper tint over it). */
body {
  background-image: url('../assets/painting.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
}
@media (max-width: 860px) {
  /* fixed backgrounds are unreliable on mobile browsers */
  body { background-attachment: scroll; }
}

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

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

/* Uppercase, wide-tracked labels — the system's signature move */
.label,
.eyebrow,
nav a,
.btn {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Rules */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.75rem 0;
}
.rule-soft {
  border: none;
  border-top: 1px solid var(--rule-soft);
  margin: 0.6rem 0;
}

/* Display headings — all one weight, one color, no italics */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
em, .accent-italic {
  font-style: normal;
  color: var(--ink);
}

/* Square corners, no shadows, hairline borders only */
.panel {
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background: var(--paper);
}
.panel-dark {
  background: var(--panel-dark);
  color: var(--panel-dark-text);
  border: none;
}
.panel-dark .accent-italic { color: var(--panel-dark-text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   Outlined-text "pop" — placed last so it wins over the plain color rules
   above on equal specificity (e.g. .pop on the same element as .accent-italic).
   Every bit of lettering on the site is white with a black outline, so it
   always pops against the painting — including the photo cards and quote
   panel, which .pop-rev used to keep black-on-white; that's now unified too.
   ========================================================================== */
.pop, .pop-thin, .pop-rev {
  color: #fff !important;
  -webkit-text-stroke: 0.5px #000;
  text-shadow: var(--pop-shadow);
  paint-order: stroke fill;
}
.pop-rev-unused {
  color: #000 !important;
  -webkit-text-stroke: 0.5px #fff;
  text-shadow: var(--pop-shadow-rev);
  paint-order: stroke fill;
}
