/* Shared site chrome: top navigation, home page, simple pages.
   Loaded together with archive.css (tokens + parchment scroll). */

/* ---------- top navigation ---------- */
.site-nav {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid rgba(157, 118, 45, .55);
  background:
    linear-gradient(rgba(10, 7, 5, .28), rgba(10, 7, 5, .28)),
    repeating-linear-gradient(45deg, #1b130e 0 3px, #20160f 3px 6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .48);
}
.site-nav .nav-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px 26px;
  flex-wrap: wrap;
  padding: 11px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--scroll-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand .brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  box-shadow: inset 0 0 0 3px rgba(215, 189, 131, .14), inset 0 0 0 4px var(--gold);
  font-size: 10px;
  letter-spacing: .03em;
}
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { color: #ffe9c9; border-color: #ffe9c9; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.tab {
  display: block;
  padding: 7px 12px;
  border: 1px solid rgba(157, 118, 45, .42);
  border-radius: 2px;
  color: var(--scroll);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.tab:hover, .tab:focus-visible {
  border-color: var(--gold);
  background: rgba(215, 189, 131, .13);
  color: #fff3da;
}
.tab[aria-current="page"] {
  border-color: var(--seal);
  background: rgba(140, 41, 32, .32);
  color: #ffe9c9;
}

body > .scroll-shell { margin-top: 38px; }

/* ---------- generic page furniture ---------- */
.page-hero { padding-bottom: 34px; border-bottom: 3px double var(--line); }
.page-hero h1 { max-width: 760px; }
.page-hero .home-title {
  max-width: none;
  font-size: clamp(52px, 8vw, 98px);
  line-height: 1;
}
.page-hero .hero-copy { margin-bottom: 0; }
.lede { max-width: 660px; margin: 30px 0 0; font-size: 20px; line-height: 1.55; }
.section-heading {
  margin: 40px 0 0;
  color: var(--seal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- home page ---------- */
.tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.tab-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 210px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(106, 76, 39, .5);
  border-top: 3px double var(--line);
  background: rgba(247, 231, 192, .3);
  box-shadow: inset 0 0 30px rgba(99, 61, 23, .1);
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.tab-card:hover, .tab-card:focus-visible {
  background: rgba(255, 240, 205, .58);
  border-color: var(--seal);
  transform: translateY(-3px);
}
.tab-card .folio {
  color: var(--seal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tab-card h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
}
.tab-card h2 small {
  display: block;
  margin-top: 6px;
  color: var(--faded);
  font-size: 13px;
  font-style: italic;
  letter-spacing: .02em;
  line-height: 1.35;
}
.tab-card p { margin: 0; font-size: 15px; line-height: 1.5; }
.tab-card .status {
  margin-top: auto;
  padding-top: 12px;
  color: var(--faded);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tab-card .status.open { color: var(--seal); }
.tab-card .status.open::before { content: "● "; }
.tab-card .status.soon::before { content: "○ "; }

/* ---------- resource list (Part II drafts) ---------- */
.resource-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.resource {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(106, 76, 39, .45);
  border-left: 3px solid var(--seal);
  background: rgba(247, 231, 192, .3);
  text-decoration: none;
  transition: background-color .16s ease;
}
.resource:hover, .resource:focus-visible { background: rgba(255, 240, 205, .58); }
.resource .resource-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--seal);
  box-shadow: inset 0 0 0 4px rgba(215, 189, 131, .5), inset 0 0 0 5px var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.resource h2, .resource h3 { margin: 0; font-size: 20px; font-weight: 700; font-style: italic; line-height: 1.2; }
.resource p { margin: 5px 0 0; color: var(--faded); font-size: 12px; line-height: 1.4; }
.resource .resource-cta {
  color: var(--seal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- coming soon ---------- */
.coming-soon {
  display: grid;
  place-items: center;
  gap: 14px;
  margin: 38px 0 8px;
  padding: 68px 22px;
  border: 3px double rgba(106, 76, 39, .68);
  background:
    linear-gradient(135deg, transparent calc(50% - .5px), rgba(140, 108, 62, .16) 50%, transparent calc(50% + .5px)),
    linear-gradient(45deg, transparent calc(50% - .5px), rgba(140, 108, 62, .16) 50%, transparent calc(50% + .5px)),
    rgba(242, 221, 174, .5);
  box-shadow: inset 0 0 40px rgba(99, 61, 23, .14);
  text-align: center;
}
.coming-soon .soon-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--seal);
  box-shadow: inset 0 0 0 5px var(--scroll-light), inset 0 0 0 6px var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
.coming-soon .soon-word {
  color: var(--seal);
  font-size: clamp(38px, 7vw, 74px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
  line-height: 1;
}
.coming-soon .soon-note {
  max-width: 520px;
  margin: 0;
  color: var(--faded);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .site-nav .nav-inner { width: calc(100% - 24px); gap: 10px; padding: 9px 0; }
  .tabs { width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .tab { white-space: nowrap; font-size: 11px; }
  .tab-card { min-height: 0; }
  .resource { grid-template-columns: 46px minmax(0, 1fr); }
  .resource .resource-cta { grid-column: 2; }
}
