:root{
  --brand: 'UnifrakturCook', 'Cinzel', 'EB Garamond', Georgia, serif;
  --display: 'Cinzel', 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
  --bg: #f6f2ea;
  --paper: #ffffff;
  --ink: #141414;
  --muted: rgba(20,20,20,0.72);
  --muted2: rgba(20,20,20,0.62);
  --line: rgba(20,20,20,0.12);
  --accent: #9a7b3d;
  --radius: 18px;
  --max: 1120px;
  --shadow: 0 18px 60px rgba(0,0,0,0.08);
  --shadow2: 0 10px 30px rgba(0,0,0,0.06);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(900px 600px at 18% 10%, rgba(154,123,61,0.08), transparent 62%),
    radial-gradient(900px 600px at 82% 12%, rgba(20,20,20,0.05), transparent 68%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 60%, #f3efe6 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  letter-spacing: 0.1px;
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding: 0 22px}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,242,234,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 14px;
}
.logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  padding: 6px;
  box-shadow: var(--shadow2);
}
.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-title .name{
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: 0.22em;
  font-size: 13px;
  text-transform: uppercase;
}

.brand-title .sub{
  margin-top:4px;
  font-size: 12px;
  color: var(--muted2);
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav a{
  font-size: 13px;
  color: rgba(20,20,20,0.84);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover{
  border-color: var(--line);
  background: rgba(255,255,255,0.65);
}
.nav a.active{
  border-color: rgba(154,123,61,0.35);
  background: rgba(154,123,61,0.12);
}

.lang{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
}
.lang a{
  font-size: 12px;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.lang a:hover{ border-color: var(--line); background: rgba(255,255,255,0.75); }
.lang a.current{ border-color: rgba(154,123,61,0.35); background: rgba(154,123,61,0.16); }

.hero{ padding: 34px 0 10px 0; }

.panel{
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-inner{
  padding: 30px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}
@media (max-width: 940px){
  .panel-inner{grid-template-columns: 1fr;}
}

.h1{
  font-family: var(--display);
  font-size: 40px;
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 520px){ .h1{font-size: 36px;} }

.lead{
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  max-width: 780px;
}

.cta-row{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 18px; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  font-weight: 650;
  font-size: 13px;
}
.btn:hover{ background: rgba(255,255,255,0.92); }
.btn.primary{
  border-color: rgba(154,123,61,0.45);
  background: rgba(154,123,61,0.14);
}
.btn.primary:hover{ background: rgba(154,123,61,0.18); }

.sidebox{
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
@media (max-width: 940px){
  .sidebox{border-left:0; padding-left:0; border-top:1px solid var(--line); padding-top:18px;}
}
.sidebox h3{
  margin:0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted2);
}
.bullets{
  margin: 14px 0 0 0;
  padding: 0;
  list-style: none;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.bullets li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(20,20,20,0.86);
  font-size: 13px;
  line-height: 1.6;
}
.bullets li:before{
  content:"";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(154,123,61,0.86);
  margin-top: 7px;
  flex: 0 0 auto;
}

.meta{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.meta b{color:rgba(20,20,20,0.92)}

.page{ padding: 26px 0 0 0; }
.page .paper{
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.page h1{
  font-family: var(--serif);
  letter-spacing: 0.02em;
  font-family: var(--serif);
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.01em;
}
.page h2{
  font-family: var(--serif);
  letter-spacing: 0.02em;
  font-family: var(--serif);
  margin-top: 22px;
  font-size: 18px;
}
.page p{color: var(--muted); line-height: 1.85; font-size: 14px;}
.page ul{color: rgba(20,20,20,0.86); line-height: 1.8; font-size: 14px;}
.page .note{
  margin-top: 18px;
  border-left: 3px solid rgba(154,123,61,0.55);
  padding: 12px 14px;
  background: rgba(154,123,61,0.08);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 940px){ .grid{grid-template-columns:1fr;} }

.card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
}
.card .pad{padding: 18px;}
.card h4{
  margin:0;
  font-family: var(--serif);
  font-size: 16px;
}
.card p{margin: 10px 0 0 0; color: var(--muted); line-height: 1.75; font-size: 13px;}
.card ul{margin: 12px 0 0 0; padding-left: 16px; color: rgba(20,20,20,0.86); font-size: 13px; line-height: 1.75;}
.card li{margin: 6px 0;}

.footer{
  padding: 36px 0 26px 0;
  color: rgba(20,20,20,0.65);
  font-size: 12px;
  text-align:center;
}
.footer a{ text-decoration: underline; text-decoration-color: rgba(154,123,61,0.35); }
.footer a:hover{ text-decoration-color: rgba(154,123,61,0.65); }

/* Additional home sections */
.section{
  padding: 18px 0 0 0;
}
.section .paper-lite{
  background: rgba(255,255,255,0.80);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 24px;
}
.section h2{
  font-family: var(--serif);
  letter-spacing: 0.02em;
  margin: 0;
  font-size: 18px;
}
.section p{
  margin: 10px 0 0 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 14px;
}
.hr{
  height:1px;
  background: var(--line);
  margin: 18px 0;
}


.brand-title .name{ white-space: nowrap; }

/* v5 layout tweaks */
.nav{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:flex-end; }
.nav .lang{ margin-left:auto; display:flex; gap:6px; align-items:center; }
@media (max-width: 420px){ .brand-title .name{ font-size:18px; letter-spacing:0.08em; } }
.diagram{ margin:18px 0 10px 0; padding:16px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,255,255,0.78); box-shadow:var(--shadow2); }
.diagram img{ width:100%; height:auto; display:block; }
.diagram .caption{ margin-top:8px; color:var(--muted); font-size:13px; line-height:1.6; }

/* v7 typography: more traditional */
:root{
  --brand: 'UnifrakturCook', 'Cinzel', 'EB Garamond', Georgia, serif;
}
body{ font-family: var(--serif); }
h1,h2,h3,h4,.brand-title .name{ font-family: var(--display); }
.brand-title .name{ white-space: nowrap; }

/* v7 nav layout: language switch immediately after nav links */
.nav{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:flex-end; }
.nav .lang{ margin-left:10px; display:flex; gap:6px; align-items:center; }





/* v8: brand name in an old-style typeface (only for the proper name) */
.brand-title .name,
.h1.brand-name{
  font-family: var(--brand);
  letter-spacing: 0.02em;
  white-space: nowrap;
}


/* v9 patches: brand lockup image, nav+language on one line (desktop), single-line footer */
.brand-lockup{
  height: 46px;
  width: auto;
  display:block;
}

.nav{
  flex: 1 1 auto;
  flex-wrap: nowrap;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.lang{
  margin-left: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.footer .v9-footer{
  display:block;
}

.footer-line{
  white-space: nowrap;
}

.footer-links{
  margin-top: 10px;
  display:flex;
  gap: 14px;
  justify-content:center;
  flex-wrap: wrap;
}

@media (max-width: 980px){
  .nav{
    flex-wrap: wrap; /* small screens */
  }
  .lang{
    margin-left: 0;
  }
  .footer-line{
    white-space: normal;
  }
}
