/*
 * dfg.css — DesignForGood shared styles
 * Load after Foundation, before any page-specific styles
 * ─────────────────────────────────────────────────────
 */

/* ── DESIGN TOKENS ── */
:root {
  --paper:        #f4f0ea;
  --carbon:       #1c1a17;
  --carbon-mid:   #3a3731;
  --carbon-faint: #a09c96;
  --link:         #2a4a8a;
  --accent:       #c8472a;
}

/* ── BASE — override Foundation defaults ── */
html, body {
  height: 100%;
  background: var(--paper);
  color: var(--carbon);
  font-family: 'Cormorant Garamond', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── PAPER GRAIN ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 0;
}

/* ── PAGE STRUCTURE ── */
main {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dfg-container {
  width: 100%;
  max-width: 100%;
  padding: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ── NAMEPLATE ── */
.dfg-nameplate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dfg-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--carbon);
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  animation: dfg-emerge 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.dfg-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  letter-spacing: 0.03em;
  color: var(--carbon-mid);
  margin-top: 0.3rem;
  line-height: 1;
  opacity: 0;
  animation: dfg-emerge 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.dfg-period {
  display: block;
  margin-top: 0.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(4rem, 6.4vw, 4.8rem);
  color: var(--link);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.25s;
  user-select: none;
  opacity: 0;
  animation: dfg-emerge 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.64s forwards;
}
.dfg-period:hover { opacity: 0.6; }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: none;
}

.dfg-footer-inner {
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  align-items: center;
}

.dfg-footer-note {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--carbon-faint);
}

/* ── ANIMATION ── */
@keyframes dfg-emerge {
  to { opacity: 1; transform: translateY(0); }
}
