@page { size: A4; margin: 14mm; }
* { box-sizing: border-box; }
html, body { height: 100%; }

:root{
  --maroon:#6D0F1B;
  --gold:#C9A227;
  --champagne:#f6e0c4;
  --rose:#f5c2b8;
  --paper:#fffdf8;
  --ink:#1d1b16;
  --muted:#6b645a;
  --rule:#e7dfd0;
}

body{
  margin: 0;
  background: #1a1a1a;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color: var(--ink);
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  line-height: 1.25;
  /* Use clearer lining/tabular numerals for readability */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.sheet{
  width: 210mm;
  min-height: 297mm;
  margin: 24px auto;
  background: var(--paper);
  position: relative;
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
  overflow: hidden;
}

/* Frame */
.frame{ position: absolute; inset: 0; pointer-events: none; }
.frame .outer{
  position: absolute;
  inset: 12mm;
  border: 2.2px solid var(--gold);
  border-radius: 2px;
}
.frame .inner{
  position: absolute;
  inset: calc(12mm + 4mm);
  border: 1.2px solid var(--maroon);
  border-radius: 2px;
}

/* Content */
.content{
  position: relative;
  padding: 26mm 22mm 18mm 22mm;
}

/* Header band */
.header{
  background: var(--maroon);
  color: #fff;
  border-radius: 2px;
  padding: 15mm 16mm 10mm 16mm;
  margin: -10mm 0 12mm 0;
  position: relative;
}
.header:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 2.2px;
  background: var(--gold);
}

.header-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 0 0 8px 0;
}

.name{
  font-family: "Cinzel", "Palatino Linotype", "Palatino", serif;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 32px;
  line-height: 1.04;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.subtitle{
  font-family: "Cinzel", "Palatino Linotype", "Palatino", serif;
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 10px 0;
  opacity: .98;
}
.tagline{
  margin: 4px 0 10px 0;
  font-size: 15px;
  opacity: .95;
}

/* Header links visible */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  font-size: 14.2px;
  margin-top: 6px;
  align-items: center;
}
.contact-grid b{ color:#fff; font-weight: 700; }
.header-link{
  color: #ffe7c2;
  text-decoration: underline;
  text-decoration-color: rgba(255,231,194,.75);
  text-decoration-thickness: 1.4px;
  text-underline-offset: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.header-link:hover{
  text-decoration-color: #fff3dc;
  color: #fff3dc;
}
.header-accent{
  color: #ffe3b3;
  font-weight: 700;
}

/* Sections */
.section{ margin-top: 12px; }
.section-title{
  font-family: "Cinzel", "Palatino Linotype", "Palatino", serif;
  font-weight: 700;
  color: var(--maroon);
  font-size: 18px;
  margin: 0 0 6px 0;
}
.rule{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .85;
  margin: 6px 0 10px 0;
}

/* Key-Value layout */
.kv{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 6px 18px;
  font-size: 16px;
}
.k{ font-weight: 700; color: #231f19; }
.v{ color: #231f19; }
.k-inline{ font-weight: 700; color: #231f19; }
.muted{ color: var(--muted); }

/* Body links (very visible on paper) */
.body-link{
  color: var(--maroon);
  text-decoration: underline;
  text-decoration-color: rgba(109,15,27,.55);
  text-decoration-thickness: 1.4px;
  text-underline-offset: 2px;
  font-weight: 700;
}
.body-link:hover{ text-decoration-color: rgba(109,15,27,.85); }

.para{
  font-size: 16px;
  color: var(--ink);
  margin: 0;
}

ul.clean{
  margin: 6px 0 0 18px;
  padding: 0;
  font-size: 16px;
}
ul.clean li{ margin: 4px 0; }

.footer{
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-accent{
  color: var(--maroon);
  font-weight: 700;
}

/* Print tip (screen only) */
.print-tip{
  max-width: 210mm;
  margin: 10px auto 26px auto;
  color: #ddd;
  font-family: ui-sans-serif, system-ui;
  font-size: 13px;
}

/* Print tweaks */
@media print{
  body{ background:#fff; }
  .sheet{ margin: 0; box-shadow: none; }
  .print-tip{ display: none; }
  a{ text-decoration: none; }
}


/* Language toggle inside the header row */
.lang-switch{
  position: static;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  background: linear-gradient(135deg, rgba(246,224,196,.92), rgba(245,194,184,.9));
  border: 1px solid rgba(109,15,27,.35);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.35) inset;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switch .lang-label{
  color: var(--maroon);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  opacity: .9;
}

.lang-switch .lang-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12.4px;
  line-height: 1;
  font-weight: 700;
  color: var(--maroon);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,245,230,.94));
  border: 1px solid rgba(109,15,27,.24);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 0 0 1px rgba(255,255,255,.3) inset;
  transition: all .16s ease;
}

.lang-switch .lang-pill:hover{
  border-color: rgba(109,15,27,.55);
  background: linear-gradient(135deg, #fff7eb, #ffe6ce);
  color: #4c0a14;
  box-shadow: 0 5px 12px rgba(0,0,0,.16);
}

.lang-switch .lang-pill.current{
  background: linear-gradient(135deg, #fff5e6, #ffe4cc);
  color: var(--maroon);
  border-color: rgba(109,15,27,.5);
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 8px 18px rgba(0,0,0,.22);
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
