:root {
  --navy-deep: #0F1830;
  --navy: #1B2A4A;
  --navy-soft: #2A3D63;
  --gold: #C9A66B;
  --gold-soft: #E4D2AC;
  --cream: #F6F2E8;
  --paper: #FFFDF8;
  --ink: #24242A;
  --ink-soft: #55555f;
  --line: rgba(15, 24, 48, 0.12);
  --shadow: 0 18px 40px -22px rgba(15, 24, 48, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.65;
}

/* ===== Header ===== */
header {
  position: relative;
  background:
    radial-gradient(circle at 85% -10%, rgba(201,166,107,0.18), transparent 55%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 65%, var(--navy-soft) 100%);
  color: var(--cream);
  padding: 4rem 1.5rem 3.5rem;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(201,166,107,0.05) 0 2px, transparent 2px 34px);
  pointer-events: none;
}

header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  opacity: 0.85;
}

.header-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 2.25rem;
  align-items: center;
}

.photo-frame {
  position: relative;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 220deg, var(--gold), var(--gold-soft), var(--gold));
  box-shadow: var(--shadow);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--navy-deep);
}

header h1 {
  margin: 0 0 0.4rem;
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

header p.role {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

header .motto {
  margin: 0;
  max-width: 30em;
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(246, 242, 232, 0.78);
  border-left: 2px solid var(--gold);
  padding-left: 0.85rem;
}

/* ===== Nav ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 166, 107, 0.25);
  box-shadow: 0 6px 18px -12px rgba(0,0,0,0.5);
}

nav ul {
  max-width: 880px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  list-style: none;
  display: flex;
  gap: 2rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
}

nav a {
  position: relative;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.8;
  padding-bottom: 3px;
  letter-spacing: 0.02em;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

nav a:hover,
nav a:focus-visible {
  opacity: 1;
}

nav a:hover::after,
nav a:focus-visible::after {
  width: 100%;
}

/* ===== Main ===== */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}

section {
  scroll-margin-top: 4.5rem;
  margin-bottom: 3.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}

h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.45rem;
  margin: 0 0 1.25rem;
  color: var(--navy);
}

h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

h3 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.6rem;
  color: var(--navy);
}

section p {
  max-width: 62ch;
}

/* ===== Biodata ===== */
.bio-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.65rem 1.5rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.96rem;
  max-width: 560px;
}

.bio-grid dt {
  color: var(--navy);
  font-weight: 600;
}

.bio-grid dd {
  margin: 0;
  color: var(--ink-soft);
}

/* ===== Table ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  min-width: 480px;
}

caption {
  text-align: left;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  caption-side: top;
}

thead th {
  background: var(--navy);
  color: var(--cream);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}

tbody tr {
  transition: background-color 0.15s ease;
}

tbody tr:nth-child(even) {
  background: rgba(201, 166, 107, 0.07);
}

tbody tr:hover {
  background: rgba(201, 166, 107, 0.16);
}

.sks-total td {
  font-weight: 700;
  color: var(--navy);
  background: var(--gold-soft) !important;
  border-top: 2px solid var(--gold);
  border-bottom: none;
}

/* ===== Kontak ===== */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.97rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.contact-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.contact-list .label {
  color: var(--ink-soft);
  min-width: 5.5em;
}

.contact-list a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--gold);
  border-color: var(--navy);
}

/* ===== Footer ===== */
footer {
  background: var(--navy-deep);
  color: rgba(246, 242, 232, 0.75);
  text-align: center;
  padding: 1.75rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.83rem;
}

footer a {
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 620px) {
  .header-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  header .motto {
    border-left: none;
    border-top: 2px solid var(--gold);
    padding-left: 0;
    padding-top: 0.6rem;
    margin: 0 auto;
  }
  section {
    padding: 1.5rem 1.25rem;
  }
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 0.1rem 0;
  }
  .bio-grid dd {
    margin-bottom: 0.5rem;
  }
  nav ul {
    gap: 1.1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  table {
    font-size: 0.82rem;
  }
  .contact-list li {
    flex-wrap: wrap;
  }
}
