:root{
  --bg:#141210;
  --panel:#1e1a17;
  --panel-2:#25201c;

  --text:#f3efe7;
  --muted:#c8c1b7;
  --border:rgba(243,239,231,.14);

  --focus:#f3efe7;

  --radius:18px;
  --shadow:0 14px 34px rgba(0,0,0,.45);

  --max:1100px;
  --gap:1.25rem;

  --accent:#c08b5a;      /* umber */
  --accent-2:#d7b89a;    /* soft sand */
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html:focus-within{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 
  line-height:1.6;
  color:var(--text);
  background:
    radial-gradient(900px 560px at 16% 12%, rgba(192,139,90,.18), transparent 60%),
    radial-gradient(780px 520px at 86% 18%, rgba(215,184,154,.10), transparent 55%),
    var(--bg);
}

img,
svg{
  max-width:100%;
  height:auto;
  display:block;
}

.container{
  width:min(var(--max), 92vw);
  margin:0 auto;
}

.site-header{
  border-bottom:1px solid var(--border);
  background:linear-gradient(to bottom, rgba(255,255,255,.04), transparent);
}

.header-grid{
  display:grid;
  gap:var(--gap);
  padding:2.5rem 0 1.5rem;
  grid-template-columns:1fr;
  align-items:start;
}

@media (min-width: 900px){
  .header-grid{
    grid-template-columns:1.2fr 0.8fr;
    align-items:center;
  }
}

.kicker{
  margin:0 0 0.5rem;
  color:var(--muted);
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:0.85rem;
}

h1{
  margin:0;
  font-size:clamp(2rem, 4vw, 3.2rem);
  line-height:1.1;
}

.lead{
  margin:0.9rem 0 0;
  color:var(--muted);
  font-size:1.05rem;
  max-width:60ch;
}

/* Symbol */
.symbol-card{
  margin:0;
  padding:1rem;
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.symbol-wrap{
  border-radius:calc(var(--radius) - 6px);
  overflow:hidden;
  border:1px solid var(--border);
  background:rgba(0,0,0,.14);
}

.symbol{
  width:100%;
}

.symbol .c1{
  fill:rgba(192,139,90,.20);
  stroke:rgba(255,255,255,.18);
  stroke-width:2;
}

.symbol .c2{
  fill:rgba(215,184,154,.14);
  stroke:rgba(255,255,255,.18);
  stroke-width:2;
}

.symbol .hand{
  fill:rgba(255,255,255,.78);
}

.caption{
  margin:0.85rem 0 0;
  color:var(--muted);
  font-size:0.95rem;
}

/* Nav */
.site-nav{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:rgba(0,0,0,.12);
}

.nav-row{
  display:flex;
  gap:0.75rem;
  overflow-x:auto;
  padding:0.75rem 0;
}

.nav-link{
  white-space:nowrap;
  text-decoration:none;
  color:var(--text);
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  padding:0.5rem 0.75rem;
  border-radius:100px;
  font-weight:600;
  font-size:0.95rem;
}

.nav-link:hover{
  background:rgba(255,255,255,.07);
  border-color:rgba(192,139,90,.55);
}

.nav-link:focus{
  outline:3px solid var(--accent-2);
  outline-offset:3px;
}

/* Main */
.site-main{
  padding:2rem 0 2.5rem;
}

.content-grid{
  display:grid;
  gap:var(--gap);
  grid-template-columns:1fr;
}

@media (min-width: 980px){
  .content-grid{
    grid-template-columns:1fr 1fr;
    align-items:start;
  }
  #contexts,
  #visual{
    grid-column:1 / -1;
  }
}

.panel{
  padding:1.25rem 1.25rem 1.35rem;
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border:1px solid var(--border);
}

.panel h2{
  margin:0 0 0.75rem;
  font-size:1.35rem;
}

.subpanel{
  margin-top:1rem;
  padding:1rem;
  border-radius:calc(var(--radius) - 6px);
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
}

.subpanel h3{
  margin:0 0 0.5rem;
  font-size:1.05rem;
}

.note{
  margin-top:1rem;
  padding:1rem;
  border-left:4px solid rgba(192,139,90,.55);
  background:rgba(0,0,0,.12);
  border-radius:calc(var(--radius) - 6px);
}

.note h3{
  margin:0 0 0.4rem;
  font-size:1.05rem;
}

.small{
  font-size:0.95rem;
  color:var(--muted);
}

ul{
  margin:0.4rem 0 0;
  padding-left:1.25rem;
}

.terms li{
  margin-bottom:0.5rem;
}

.quotes{
  list-style:none;
  padding-left:0;
  margin:0.75rem 0 0;
}

.quotes li{
  padding:0.75rem 1rem;
  border:1px solid var(--border);
  border-radius:calc(var(--radius) - 6px);
  background:rgba(255,255,255,.03);
  margin-bottom:0.75rem;
}

::selection{
  background:rgba(192,139,90,.35);
  color:var(--text);
}

/* Context cards */
.cards{
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
  margin-top:0.75rem;
}

@media (min-width: 720px){
  .cards{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

.card{
  padding:1rem;
  border-radius:calc(var(--radius) - 6px);
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
}

.card h3{
  margin:0 0 0.35rem;
  font-size:1.05rem;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  background:rgba(0,0,0,.10);
  padding:1.25rem 0;
}

.footer-row{
  display:flex;
  flex-direction:column;
  gap:0.5rem;
}

@media (min-width: 720px){
  .footer-row{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
  }
}
