:root {
  --ink: #102032;
  --muted: #5d6770;
  --paper: #f7f4f1;
  --accent: #a9765e;
  --accent-dark: #81513d;
  --line: #e4dcd5;
  --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: var(--accent-dark); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(13,24,37,.96);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.header-inner,
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.header-nav a {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.header-nav .nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 10px 18px;
  text-decoration: none;
}

.breadcrumbs {
  margin: 0 0 22px;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
}

.breadcrumbs a { color: var(--white); }

.hero {
  position: relative;
  display: grid;
  min-height: 520px;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,10,16,.12), rgba(4,10,16,.87));
  content: "";
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 70px 0 58px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #efd9cc;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  letter-spacing: -.035em;
}

.hero-lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

main { padding: 54px 0 76px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  align-items: start;
}

.content > *:first-child { margin-top: 0; }

h2 {
  margin: 48px 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

h3 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

p { margin: 0 0 18px; }

ul,
ol { padding-left: 1.3em; }

li { margin-bottom: 8px; }

.summary {
  border-left: 4px solid var(--accent);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(16,32,50,.08);
  padding: 22px 24px;
}

.summary p:last-child { margin-bottom: 0; }

.media {
  margin: 28px 0;
  overflow: hidden;
  border-radius: 16px;
  background: #e7e0da;
  box-shadow: 0 14px 38px rgba(16,32,50,.11);
}

.media figcaption {
  background: var(--white);
  color: var(--muted);
  font-size: .9rem;
  padding: 12px 16px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 22px;
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.table-wrap {
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #efe8e2;
  font-size: .92rem;
}

tr:last-child td { border-bottom: 0; }

.notice {
  margin: 30px 0;
  border: 1px solid #dfc0b0;
  border-radius: 14px;
  background: #fff8f4;
  padding: 20px 22px;
}

.sidebar {
  position: sticky;
  top: 92px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  padding: 24px;
}

.sidebar h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.sidebar p { color: rgba(255,255,255,.86); }
.sidebar .button { width: 100%; margin-top: 5px; }
.sidebar .button.secondary { border: 1px solid rgba(255,255,255,.35); background: transparent; }

.related {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.related-list a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  padding: 15px;
  text-decoration: none;
}

.site-footer {
  background: #09121c;
  color: rgba(255,255,255,.82);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer a { color: var(--white); }
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .header-nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 430px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .related-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner,
  .container { width: min(100% - 24px, 1120px); }
  .brand { font-size: 1.05rem; }
  .header-nav { gap: 10px; }
  .header-nav .nav-cta { min-height: 38px; padding: 7px 12px; }
  .hero-content { padding: 46px 0 36px; }
  main { padding: 38px 0 58px; }
  .grid,
  .related-list { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
  .site-footer p + p { margin-top: 10px; }
}
