:root{
  --paper:#d9b57a;
  --ink:#2a1b10;
  --muted:rgba(42,27,16,.72);
  --line:rgba(42,27,16,.18);

  --nav-bg: rgba(255,255,255,.20);
  --nav-bg-hover: rgba(255,255,255,.30);
  --nav-border: rgba(42,27,16,.22);

  --shadow: 0 12px 40px rgba(0,0,0,.22);

  /* Image aspect ratio: 998w / 1249h = 0.79903922 */
  --img-aspect: calc(998 / 1249);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color:var(--ink);
  background: var(--paper);
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

a{ color:var(--ink); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  min-height:100vh;
  display:grid;
  /* Left panel width = 100vh * image aspect ratio */
  grid-template-columns: calc(100vh * var(--img-aspect)) 1fr;
}

/* LEFT IMAGE PANEL */
.left{
  position:sticky;
  top:0;
  height:100vh;
  border-right:1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.12);
  padding: 0;
}

.left-card{
  width:100%;
  height:100%;
  border-radius:0;
  overflow:hidden;
  border:0;
  background:transparent;
  box-shadow:none;
  position:relative;
}

.left-card img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  filter: saturate(1.02) contrast(1.06);
  transform: translateZ(0);
}

.left-caption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:14px 16px;
  color: rgba(255,255,255,.94);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size:12px;
  letter-spacing:.35px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  backdrop-filter: blur(6px);
}

/* RIGHT CONTENT */
.right{
  padding:32px 34px 54px;
}

.container{
  width:min(980px, 100%);
  margin:0 auto;
}

/* HEADER */
.header{
  display:block;
  padding:10px 0 18px;
  border-bottom:1px solid var(--line);
}

.brand-title{
  font-size: 44px;
  font-weight: 900;
  letter-spacing: .35px;
  margin:0;
}

.brand-sub{
  margin-top:10px;
  margin-bottom:22px;
  color:var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size:16px;
  line-height:1.35;
}

.brand-domain{ font-weight: 800; }

.nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:center;
  gap:14px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size:13px;
}

.nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border:1px solid var(--nav-border);
  border-radius:999px;
  background: var(--nav-bg);
  color: var(--ink);
  font-weight:700;
  line-height:1;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  white-space:nowrap;
}

.nav a:hover{
  background: var(--nav-bg-hover);
}

/* HERO */
.hero{
  padding:22px 0 10px;
}

.hero-title{
  font-size: 34px;
  margin:0 0 10px;
  line-height:1.08;
  font-weight: 800;
}

.lead{
  margin:0;
  color:var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size:16px;
  line-height:1.55;
  max-width:820px;
}

.section{
  margin-top:22px;
}

.section h3{
  font-size:22px;
  margin:0 0 10px;
}

.card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  background: rgba(255,255,255,.20);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

.card ul{
  margin:10px 0 0;
  padding-left:18px;
  line-height:1.6;
}

.muted{ color:var(--muted); }

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:9px 12px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.12);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size:13px;
}

hr.sep{
  border:0;
  border-top:1px solid var(--line);
  margin:16px 0;
}

.footer{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size:12.5px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:space-between;
  background: transparent;
  position: static;
}

/* Document pages */
.card.doc h3{ margin-top: 18px; }
.card.doc h3:first-child{ margin-top: 0; }
.card.doc p, .card.doc li{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15.5px;
}

/* MOBILE */
@media (max-width: 980px){
  .wrap{ grid-template-columns: 1fr; }

  .left{
    position:relative;
    height:auto;
    width: 100%;
    border-right:none;
    border-bottom:1px solid var(--line);
    padding: 0;
  }

  .left-card{
    aspect-ratio: 998 / 1249;
    height: auto;
  }

  .left-card img{
    object-fit: contain;
  }

  .right{ padding:18px 14px 44px; }

  .nav{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .nav a{
    width:100%;
    padding:10px 10px;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .brand-title{ font-size:34px; }
  .hero-title{ font-size:28px; }

  .grid{ grid-template-columns: 1fr; }
}

@media (max-width: 420px){
  .nav{ grid-template-columns: 1fr; }
}