/* Forge8 LLC — "quiet craft" : warm paper, deep ink, a single ember accent. */

:root {
  --paper:     #f6f3ec;   /* warm off-white, not cold white */
  --paper-2:   #efe9dd;
  --ink:       #1c1813;   /* warm near-black */
  --ink-soft:  #4d473e;   /* secondary text */
  --muted:     #8b8275;   /* eyebrows, footer */
  --ember:     #c14e26;   /* the single accent */
  --ember-lit: #d9762f;
  --line:      #ddd5c6;   /* warm hairline */

  --measure: 40rem;       /* comfortable reading width */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  /* soft forge-glow, top-right, plus a low warm wash from the base */
  background-image:
    radial-gradient(60rem 40rem at 88% -10%, rgba(209, 110, 47, 0.16), transparent 60%),
    radial-gradient(50rem 50rem at 105% 110%, rgba(193, 78, 38, 0.07), transparent 55%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine film grain overlay — adds material texture, very subtle. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* Page frame: a tall, left-aligned editorial column. */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(100% - 2.5rem, 64rem);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 4vh, 2.75rem) clamp(1.5rem, 4vh, 2.75rem);
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { display: inline-flex; filter: drop-shadow(0 2px 6px rgba(193, 78, 38, 0.25)); }
.brand-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.brand-eight { color: var(--ember); }

.header-contact {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.header-contact:hover { color: var(--ember); border-color: var(--ember); }

/* ---- Hero ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--measure);
  padding-block: clamp(2.5rem, 9vh, 6rem);
}

.eyebrow {
  margin: 0 0 1.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.statement {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.statement em {
  font-style: italic;
  color: var(--ink-soft);
}

.lede {
  margin: 2.1rem 0 0;
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--ink-soft);
}
.lede strong { color: var(--ink); font-weight: 600; }

.cta { margin: 2.4rem 0 0; }
.mail {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 1.5px solid var(--ember);
  transition: color 0.2s ease, gap 0.2s ease;
}
.mail .arrow { color: var(--ember); transition: transform 0.2s ease; display: inline-block; }
.mail:hover { color: var(--ember); }
.mail:hover .arrow { transform: translateX(4px); }

/* ---- Footer ---- */
.site-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.site-footer .dot { color: var(--line); }

/* ---- Entrance: staggered fade-up on load ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .mail .arrow, .mail, .header-contact { transition: none; }
  body { background-attachment: scroll; }
}

/* ---- Small screens ---- */
@media (max-width: 30rem) {
  .header-contact { display: none; }   /* contact still present in hero + footer */
  .lede { font-size: 1.05rem; }
}
