/* Field Manual — shared base for the homepage and project case studies.
   Palette tokens and the rules both surfaces use identically live here;
   each page keeps its own component styles. The Writing Chambers use their
   own variant tokens in src/styles/tokens.css. Load this before page CSS. */
:root {
  color-scheme: dark;
  --bg:        #0b0b0c;
  --bg-2:      #0e0e0d;
  --bg-card:   #121210;
  --bg-card-2: #141412;
  --ink:       #eceae3;
  --ink-soft:  #d9d4cb;
  --ink-dim:   #b9b3a8;
  --ink-mute:  #a8a39a;
  --ink-faint: #8a857c;
  --ink-off:   #6f6a61;
  --line:      #26241f;
  --line-2:    #3a372f;
  --accent:    #d4ab5f;
  --accent-hi: #e9c683;
  --accent-rgb: 212, 171, 95;
  --glow:      rgba(var(--accent-rgb), 0.14);
  --maxw: 1280px;
  --gutter: 80px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(var(--accent-rgb), 0.28); color: var(--ink); }
.skip-link {
  position: fixed; z-index: 50; top: 12px; left: 12px;
  min-height: 44px; padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--accent); color: #14110a;
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { transform: none; }
.wrap { position: relative; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.hero-texture { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(236,234,227,0.035) 1px, transparent 1px); background-size: 100% 96px; }
.hero-grain {
  position: absolute; inset: -40px; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-nav {
  position: relative; z-index: 5; margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 0 12px 0 16px;
  background: rgba(20, 20, 18, 0.62);
  border: 1px solid rgba(236, 234, 227, 0.08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-mark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.site-mark img { width: 34px; height: 34px; }
.site-mark span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-mute); }
.site-links { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.site-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); transition: color .2s ease; }
.site-links a:hover { color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; min-height: 96px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-faint); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 26px; height: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 32px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); transition: color .2s ease; }
.footer-links a:hover { color: var(--accent-hi); }
@keyframes gtPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); } 70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
@keyframes gtGrain { 0% { transform: translate(0,0); } 25% { transform: translate(-2%,1%); } 50% { transform: translate(1%,-2%); } 75% { transform: translate(2%,2%); } 100% { transform: translate(0,0); } }
@keyframes gtRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
