
:root{
  --field:#090b0e;            /* brighter teal */
  --fieldDeep:#0d1014;        /* for subtle depth (used as shadow/vignette, not a hard split) */
  --paper:#f6f1e6;            /* warm paper */
  --paper2:#efe6d6;
  --olive:#b7b49b;            /* olive plate */
  --olive2:#a8a585;
  --ink:#101213;
  --muted:rgba(16,18,19,0.70);
  --rule:rgba(16,18,19,0.14);
  --ruleLight:rgba(255,255,255,0.18);
  --accent:#ef9b2d;           /* richer orange highlight */
  --accent2:#d77816;
  --shadow:rgba(0,0,0,0.20);
  --shadow2:rgba(0,0,0,0.12);
  --maxw:1120px;
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background: var(--field);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
/* subtle paper speckle in the field */
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:0.08;
  mix-blend-mode:overlay;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0,0,0,0.55) 0.8px, transparent 1.2px),
    radial-gradient(circle at 40% 60%, rgba(0,0,0,0.55) 0.8px, transparent 1.2px),
    radial-gradient(circle at 80% 30%, rgba(0,0,0,0.55) 0.8px, transparent 1.2px);
  background-size:160px 160px;
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(var(--maxw), calc(100% - 2.4rem)); margin:0 auto}

/* Header / Nav */
.header{
  position: relative; /* no sticky ghost overlay */
  background: transparent; /* sits on teal field */
  border-bottom: 0;
}
.header-inner{
  max-width:1160px; margin:0 auto;
  padding: 12px 22px;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  flex-wrap: nowrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand .logo{
  height:86px; /* big, but doesn't force nav wrap */
  width:auto;
  display:block;
  filter:none;
}

.nav{display:flex; align-items:center; gap:.55rem; flex-wrap:nowrap}
.nav a{
  position:relative;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size:.98rem;
  color: rgba(255,255,255,0.94);
  padding:.42rem .62rem;
  border-radius:999px;
  border:1px solid transparent;
  white-space: nowrap;
}
.nav a:hover{border-color: rgba(255,255,255,0.22); text-decoration:none}
.nav a.active{
  background: rgba(239,155,45,0.14);
  border-color: rgba(239,155,45,0.35);
}
/* orange underline cue (like your mock) */
.nav a.active:after{
  content:"";
  position:absolute;
  left:.75rem; right:.75rem;
  bottom:-10px;
  height:3px;
  background: linear-gradient(90deg, rgba(239,155,45,0), rgba(239,155,45,0.95), rgba(239,155,45,0));
  border-radius:999px;
}
.nav a.external{border-color: rgba(255,255,255,0.20)}

.nav-toggle{
  display:none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  padding:.45rem .7rem;
  border-radius:12px;
}
@media (max-width:900px){
  .nav-toggle{display:inline-flex}
  .nav{display:flex; align-items:center; gap:.55rem; flex-wrap:nowrap}
  .nav.open{display:flex}
  .nav a.active:after{display:none}
}

main{padding:2.2rem 0 3.2rem}

/* Paper sheet container */
.sheet{
  background: var(--paper);
  border-radius: calc(var(--radius) + 10px);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 32px 90px var(--shadow);
  overflow:hidden;
}
.sheet-inner{padding:1.6rem}

/* Components */
.kicker{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(16,18,19,0.55);
  font-size:.85rem;
}
h1{margin:.45rem 0 .6rem; font-size:2.55rem; line-height:1.08}
h2{font-size:1.65rem; margin:2rem 0 .9rem}
h3{font-size:1.2rem; margin:1.2rem 0 .6rem}
.lede{font-size:1.08rem; color: rgba(16,18,19,0.78); max-width:64ch}

.hero{
  border:1px solid rgba(16,18,19,0.12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 55px var(--shadow2);
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:1.6rem;
  padding:1.8rem;
}
@media (max-width:900px){.hero-inner{grid-template-columns:1fr}}

.figure{border-left:4px solid rgba(16,18,19,0.18); padding-left:1rem; margin:.85rem 0}
.figure img{
  width:100%; height:auto; display:block;
  border:1px solid rgba(16,18,19,0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--olive), var(--olive2));
}
.caption{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.85rem; color: rgba(16,18,19,0.58); margin-top:.45rem;
}

.grid{display:grid; grid-template-columns:repeat(12,1fr); gap:1rem; margin-top:1.6rem}
.card{
  grid-column:span 4;
  border:1px solid rgba(16,18,19,0.12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 48px var(--shadow2);
  padding:1.15rem 1.15rem 1.2rem;
}
@media (max-width:900px){.card{
  grid-column:span 4;
  border:1px solid rgba(16,18,19,0.12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 48px var(--shadow2);
  padding:1.15rem 1.15rem 1.2rem;
}}

.meta{display:flex; flex-wrap:wrap; gap:.5rem; margin:.8rem 0 .2rem}
.badge{
  display:inline-flex; align-items:center;
  border:1px solid rgba(16,18,19,0.16);
  border-radius:999px;
  padding:.18rem .6rem;
  background: rgba(239,155,45,0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.78rem; color: rgba(16,18,19,0.74);
}
.badge.stamp{
  background: rgba(239,155,45,0.22);
  border-color: rgba(239,155,45,0.42);
  letter-spacing:.04em; text-transform:uppercase;
}

.cta-row{display:flex; flex-wrap:wrap; gap:.8rem; margin-top:1rem}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.72rem .98rem;
  border-radius: 14px;
  border:1px solid rgba(239,155,45,0.55);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight:780;
  background: rgba(255,255,255,0.66);
  color: rgba(16,18,19,0.90);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover{ text-decoration:none; transform: translateY(-1px); filter:brightness(1.02); background: rgba(239,155,45,0.14); }
.btn.primary{ background: rgba(255,255,255,0.66); }
.btn.stamp{ background: rgba(255,255,255,0.66); }

.rule{border-top:1px solid var(--rule); margin:2.2rem 0}

.procedure{
  border:1px solid rgba(16,18,19,0.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.30);
  padding:1.2rem 1.2rem .8rem;
  box-shadow: 0 18px 48px var(--shadow2);
}
.aside{
  border-left:6px solid rgba(239,155,45,0.92);
  padding:1rem 1.1rem;
  background: rgba(239,155,45,0.18);
  border-radius: 16px;
}

.footer{
  margin-top:1.9rem;
  border-top:1px solid var(--rule);
  padding:1.4rem 0 0;
  color: rgba(16,18,19,0.66);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size:.98rem;
}
.footer a{color: rgba(16,18,19,0.66)}
.footer a:hover{color: rgba(16,18,19,0.88); text-decoration:none}

@media print{
  body{background:white}
  body:before{display:none}
  .header{
  position: relative; /* no sticky ghost overlay */
  background: transparent; /* sits on teal field */
  border-bottom: 0;
}
  main{padding:0}
  .sheet{
  background: var(--paper);
  border-radius: calc(var(--radius) + 10px);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 32px 90px var(--shadow);
  overflow:hidden;
}
  .hero,.card,.procedure{box-shadow:none}
  a{color:black; text-decoration:underline}
}

.btn.primary:hover{ background: rgba(239,155,45,0.14); }
.btn.stamp:hover{ background: rgba(239,155,45,0.14); }

/* Field Notes list */
.fn-item{ padding: .95rem 0; border-bottom: 1px solid rgba(16,18,19,0.10); }
.fn-item:last-child{ border-bottom: 0; }
.fn-title{
  display:inline-block;
  font-family: ui-serif, Georgia, 'Times New Roman', Times, serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: rgba(205,120,18,0.98); /* warm orange */
  text-decoration: none;
}
.fn-title:hover{ text-decoration: underline; text-underline-offset: 4px; filter: brightness(1.02); }
.fn-meta{ margin-top:.18rem; color: rgba(16,18,19,0.55); font-size:.92rem; }
.fn-desc{ margin-top:.18rem; color: rgba(16,18,19,0.72); font-size: 1rem; }

.brand-stack{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.05;
  padding-top: 2px;
}
.brand-stack .tagline{
  margin-top:6px;
}
.brand{
  align-items:center;
}

/* Book cover frames */
.cover-grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
@media (max-width:900px){ .cover-grid{ grid-template-columns: 1fr; } }
.cover-frame{
  background:#fff;
  border:1px solid rgba(16,18,19,0.12);
  border-radius: 18px;
  height: 560px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.cover-frame img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}


/* Resources page: list/form/template library (distinct from Projects cards) */
.resource-section{ margin-top: 1.4rem; }
.resource-list{
  border: 1px solid rgba(16,18,19,0.14);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.20);
}
.resource-item{
  display:grid;
  grid-template-columns: 140px 1fr 240px;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(16,18,19,0.10);
  align-items: center;
}
.resource-item:last-child{ border-bottom: 0; }
@media (max-width: 980px){
  .resource-item{ grid-template-columns: 1fr; }
}
.resource-type{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(16,18,19,0.60);
}
.resource-title{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: rgba(205,120,18,0.98);
  text-decoration: none;
}
.resource-title:hover{ text-decoration: underline; text-underline-offset: 4px; }
.resource-desc{ color: rgba(16,18,19,0.74); margin-top: 6px; }
.resource-meta{ color: rgba(16,18,19,0.55); font-size: .95rem; margin-top: 6px; }
.resource-actions{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 980px){
  .resource-actions{ justify-content: flex-start; }
}
.btn.small{
  padding: .55rem .78rem;
  border-radius: 12px;
  font-size: .95rem;
}
.btn.ghost{
  background: rgba(255,255,255,0.35);
}
