:root{
  --bg:#f0ebe1;
  --surface:#faf7f0;
  --ink:#1c1b18;
  --mid:#3e3b35;
  --soft:#7a756c;
  --ghost:#b5b0a7;
  --rule:rgba(28,27,24,.09);
  --rule-strong:rgba(28,27,24,.16);
  --terracotta:#c0622a;
  --teal:#1a5c6b;
  --teal-light:rgba(26,92,107,.07);
  --terra-light:rgba(192,98,42,.07);
  --max:1000px;
  --radius:18px;
}

.site-theme{
  margin:0;
  padding:0;
  color:var(--ink);
  background:var(--bg);
  font-family:'Fraunces',Georgia,serif;
  font-size:17px;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

.site-theme::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.3;
  background: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.04'/%3E%3C/svg%3E");
  background-size:200px;
  mix-blend-mode:multiply;
  z-index:9999;
}

.site-theme *{box-sizing:border-box}
.site-theme a{color:inherit;text-decoration:none}
.site-theme .wrap{width:min(calc(100% - 36px),var(--max));margin:0 auto}

.site-theme .site-header{
  position:sticky;
  top:0;
  z-index:100;
  padding:0;
  text-align:initial;
  background:rgba(240,235,225,.88);
  border:0;
  border-bottom:1px solid var(--rule);
  box-shadow:none;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.site-theme .topbar{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  position:relative;
}

.site-theme .brand{
  display:inline-flex;
  flex-direction:column;
  gap:1px;
  min-width:max-content;
}

.site-theme .brand-title{
  font-family:'Outfit',sans-serif;
  font-size:.88rem;
  line-height:1.25;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--ink);
}

.site-theme .brand-sub{
  font-family:'JetBrains Mono',monospace;
  font-size:.68rem;
  line-height:1.35;
  color:var(--soft);
  letter-spacing:.02em;
  font-weight:400;
}

.site-theme .site-header nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:2px;
  margin:0;
  position:static;
  width:auto;
  background:transparent;
}

.site-theme .site-header nav a{
  flex:none;
  margin:0;
  padding:7px 11px;
  border:0;
  border-radius:999px;
  font-family:'Outfit',sans-serif;
  font-size:.8rem;
  line-height:1.4;
  font-weight:600;
  text-transform:none;
  color:var(--soft);
  transition:background-color .15s ease,color .15s ease;
  text-decoration:none!important;
  width:auto;
}

.site-theme .site-header nav a:hover,
.site-theme .site-header nav a.active{
  color:var(--ink);
  background:rgba(28,27,24,.06);
  box-shadow:none;
  text-decoration:none!important;
}

.site-theme .menu-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid var(--rule);
  background:rgba(255,255,255,.5);
  border-radius:10px;
  font-size:1.1rem;
  line-height:1;
  cursor:pointer;
  color:var(--ink);
  align-items:center;
  justify-content:center;
  position:static;
  padding:0;
}

.site-theme .container{
  width:min(calc(100% - 36px),var(--max));
  max-width:none;
  margin:44px auto 64px;
  padding:34px 38px;
  background:var(--surface);
  border:1px solid var(--rule);
  border-radius:var(--radius);
  box-shadow:0 18px 50px rgba(28,27,24,.05);
}

.site-theme .container>section+section{
  margin-top:40px;
  padding-top:36px;
  border-top:1px solid var(--rule);
}

.site-theme h1,
.site-theme h2,
.site-theme h3{
  color:var(--ink);
  font-family:'Fraunces',Georgia,serif;
  font-weight:600;
}

.site-theme .container h2{
  margin:0 0 14px;
  font-size:clamp(1.75rem,3vw,2.35rem);
  line-height:1.1;
  letter-spacing:-.03em;
}

.site-theme .container h3{
  margin:24px 0 8px;
  font-size:1.15rem;
  line-height:1.25;
}

.site-theme p{color:var(--mid);margin:0 0 18px}
.site-theme li{color:var(--mid);margin:.45rem 0}
.site-theme ul,.site-theme ol{padding-left:1.35rem;margin:10px 0 22px}

.site-theme .container a{
  color:var(--teal);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.site-theme .container a:hover{text-decoration:underline}

.site-theme table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:20px 0 28px;
  overflow:hidden;
  border:1px solid var(--rule);
  border-radius:14px;
  background:rgba(255,255,255,.32);
}
.site-theme table th,
.site-theme table td{
  border:0;
  border-right:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  padding:13px 14px;
  vertical-align:top;
  text-align:left;
}
.site-theme table th:last-child,
.site-theme table td:last-child{border-right:0}
.site-theme table tr:last-child td{border-bottom:0}
.site-theme table th{
  background:var(--teal-light);
  color:var(--ink);
  font-family:'Outfit',sans-serif;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.site-theme .emphasis-note{
  margin:24px 0;
  padding:17px 18px;
  border:1px solid rgba(192,98,42,.16);
  border-left:4px solid var(--terracotta);
  border-radius:12px;
  background:var(--terra-light);
  color:var(--mid);
  font-style:normal;
}

.site-theme .tip{
  margin:10px 0;
  padding:0;
  border:1px solid var(--rule);
  border-radius:14px;
  background:rgba(255,255,255,.28);
  overflow:hidden;
}
.site-theme .tip:last-child{border-bottom:1px solid var(--rule)}
.site-theme .tip-title{
  padding:15px 48px 15px 16px;
  color:var(--ink);
  font-family:'Outfit',sans-serif;
  font-weight:700;
  font-size:.96rem;
}
.site-theme .tip-title::after{
  right:16px;
  color:var(--terracotta);
}
.site-theme .tip-content{
  padding:0 16px 16px;
  border-top:1px solid var(--rule);
}
.site-theme .tip-content p:first-child{margin-top:14px}

.site-theme blockquote{
  margin:18px 0;
  padding:20px 22px;
  background:var(--teal-light);
  border:1px solid rgba(26,92,107,.13);
  border-left:4px solid var(--teal);
  border-radius:14px;
  color:var(--mid);
}
.site-theme blockquote p:last-child{margin-bottom:0}

.site-theme form{
  display:grid;
  gap:8px;
  margin-top:22px;
}
.site-theme form label{
  font-family:'Outfit',sans-serif;
  font-size:.8rem;
  font-weight:700;
  color:var(--mid);
}
.site-theme form br{display:none}
.site-theme input,
.site-theme textarea{
  width:100%;
  margin:0 0 10px;
  padding:12px 13px;
  color:var(--ink);
  background:rgba(255,255,255,.48);
  border:1px solid var(--rule-strong);
  border-radius:12px;
  font:inherit;
  outline:none;
}
.site-theme input:focus,
.site-theme textarea:focus{
  border-color:rgba(26,92,107,.42);
  box-shadow:0 0 0 3px rgba(26,92,107,.08);
}
.site-theme form button,
.site-theme .search-bar button{
  width:auto;
  justify-self:start;
  margin:2px 0 0;
  padding:11px 17px;
  border:1px solid var(--ink);
  border-radius:12px;
  background:var(--ink);
  color:var(--surface);
  font-family:'Outfit',sans-serif;
  font-size:.84rem;
  font-weight:700;
  cursor:pointer;
}
.site-theme form button:hover,
.site-theme .search-bar button:hover{opacity:.86}

.site-theme .search-bar{
  display:flex;
  text-align:left;
  margin:20px 0 8px;
}
.site-theme .search-bar input[type="text"]{
  width:100%;
  max-width:none;
  margin:0;
  padding:14px 16px;
  border-radius:14px;
}
.site-theme .results{margin-top:22px}
.site-theme .result-item{
  padding:18px 0;
  border-bottom:1px solid var(--rule);
}
.site-theme .result-item h3{margin:0 0 6px}
.site-theme .highlight{
  padding:0 .12em;
  background:rgba(192,98,42,.16);
  color:var(--ink);
}

.site-theme .site-footer{
  padding:26px 0 36px;
  background:transparent;
  border:0;
  box-shadow:none;
  text-align:initial;
}
.site-theme .footer-inner{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding-top:20px;
  border-top:1px solid var(--rule);
  color:var(--soft);
  font-family:'JetBrains Mono',monospace;
  font-size:.65rem;
}
.site-theme .site-footer p{margin:0;color:var(--soft)}

@media(max-width:760px){
  .site-theme .topbar{height:62px}
  .site-theme .brand-sub{font-size:.61rem}
  .site-theme .menu-toggle{display:inline-flex}
  .site-theme .site-header nav{
    display:none;
    position:absolute;
    top:calc(100% + 1px);
    left:0;
    right:0;
    width:100%;
    padding:10px;
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    background:rgba(240,235,225,.97);
    border:1px solid var(--rule);
    border-top:0;
    border-radius:0 0 14px 14px;
    box-shadow:0 16px 34px rgba(28,27,24,.08);
  }
  .site-theme .site-header nav.active{display:flex}
  .site-theme .site-header nav a{
    width:100%;
    padding:10px 12px;
    text-align:left;
  }
  .site-theme .container{
    width:min(calc(100% - 24px),var(--max));
    margin:24px auto 44px;
    padding:24px 20px;
    border-radius:15px;
  }
  .site-theme table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .site-theme .footer-inner{
    flex-direction:column;
    gap:5px;
  }
}
