/* =========
   Design tokens
   ========= */
:root{
  --bg-outside: #724e7c;
  --surface: #ffffff;
  --surface-2: #f6f5f8;
  --text: #222222;
  --text-muted: #5a5a5a;
  --border: #e6e4ea;
  --primary: #724e7c;
  --primary-ink: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(16, 10, 20, 0.12);
  --shadow-soft: 0 2px 12px rgba(16,10,20,0.08);
  --container: 1040px;
}

/* =========
   Reset & base
   ========= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg-outside);
  line-height: 1.6;
  letter-spacing: .2px;
}

/* Improve readability */
p, ul, ol { margin-block: .75rem 1rem; }
ul, ol { padding-inline-start: 1.25rem; }
li { margin-block: .35rem; }

/* Links */
a{
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* =========
   Layout
   ========= */
header{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.banner{
  width: 100%;
  max-width: var(--container);
  height: 120px;            /* fixed height as requested */
  object-fit: contain;      /* keeps proportion without distortion */
  display: block;
  margin: 0 auto;
}

/* Top navigation */
.nav-menu{
  max-width: var(--container);
  margin: .25rem auto 0;
  padding: .5rem 16px 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  justify-content: center;
}
.nav-menu a{
  display: inline-block;
  padding: .55rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.nav-menu a:hover{
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.nav-menu a:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.nav-menu .active{
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}

/* Main card */
main{
  max-width: var(--container);
  margin: 2rem auto 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.5vw, 2rem);
}

/* Hero */
.hero{
  background: linear-gradient(0deg, var(--surface-2), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 1.5rem;
  text-align: center;
}
.hero p{ color: var(--text-muted); }

/* Headings */
h1{
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  margin-bottom: .35rem;
  letter-spacing: .2px;
}
h2{
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
h3{
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  margin-top: 1rem;
  margin-bottom: .35rem;
  color: var(--text);
}

/* Tables */
table{
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-block: .75rem 1.25rem;
  box-shadow: var(--shadow-soft);
}
th, td{
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th{
  background: var(--surface-2);
  text-align: left;
  font-weight: 600;
}
tbody tr:hover td{ background: #faf9fb; }

/* Code / inline emphasis (if ever used) */
code, kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: #f0eef3;
  border: 1px solid var(--border);
  padding: .1rem .35rem;
  border-radius: 6px;
}

/* Footer */
footer{
  max-width: var(--container);
  margin: 0 auto 2rem;
  color: #f1edf4;
  text-align: center;
  padding: 1rem;
}

/* Cards (optional utility for future content blocks) */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

/* Media & responsiveness */
img{ max-width: 100%; height: auto; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Print (nice, minimal) */
@media print{
  body{ background: #fff; }
  header, .nav-menu, footer{ display: none !important; }
  main{
    margin: 0;
    box-shadow: none;
    border: none;
  }
}
 
