:root {
  --sea: #1d4e6e;
  --sea-deep: #10324a;
  --sand: #f3e6c8;
  --parchment: #fbf5e6;
  --ink: #2a2017;
  --ink-soft: #5b4b3a;
  --wheat: #e6b52e;
  --brick: #b4462b;
  --wood: #2f6a35;
  --sheep: #8bbf63;
  --ore: #6c7784;
  --gold: #d6a21a;
  --silver: #a9b3bd;
  --line: #e2d3ae;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 50, 74, 0.12);
  --display: "Cinzel", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

a { color: var(--sea); }
a:hover { color: var(--brick); }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--sea-deep);
  color: var(--sand);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 4px solid var(--wheat);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sand);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand:hover { color: #fff; }
.brand svg { width: 32px; height: 32px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 999px;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--wheat); color: var(--sea-deep); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(230, 181, 46, 0.25), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16z M28 64v33' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.5'/%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: var(--sand);
  padding: 72px 0 84px;
  text-align: center;
}
.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); color: #fff; }
.hero .lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  max-width: 680px;
  margin: 0 auto 28px;
  color: #e9ddc0;
}
.hero-medal { width: 150px; height: 150px; margin: 0 auto 20px; display: block; }

/* Player portrait with a medal badge pinned to the corner */
.portrait { display: block; position: relative; width: 150px; margin: 0 auto 20px; }
.portrait img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  border: 5px solid var(--silver);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.portrait.gold img { border-color: var(--gold); object-position: 50% 15%; background: #fff; }
.portrait svg { position: absolute; right: -10px; bottom: -6px; width: 58px; height: 58px; }
.award .portrait { width: 96px; margin-bottom: 12px; }
.award .portrait img { width: 96px; height: 96px; border-width: 4px; box-shadow: none; }
.award .portrait svg { width: 40px; height: 40px; margin: 0; right: -8px; bottom: -4px; }

.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--wheat);
  color: var(--sea-deep);
  border: 2px solid var(--wheat);
}
.btn:hover { background: #f2c94c; color: var(--sea-deep); }
.btn.ghost { background: transparent; color: var(--sand); border-color: rgba(243, 230, 200, 0.5); }
.btn.ghost:hover { border-color: var(--sand); color: #fff; }

/* Resource stripe */
.stripe { display: flex; height: 8px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--wood); }
.stripe span:nth-child(2) { background: var(--brick); }
.stripe span:nth-child(3) { background: var(--sheep); }
.stripe span:nth-child(4) { background: var(--wheat); }
.stripe span:nth-child(5) { background: var(--ore); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--sand); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--sea-deep); }
.section-head p { color: var(--ink-soft); margin: 0; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 8px;
  display: block;
}

/* Award cards */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.award {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  border-top: 6px solid var(--accent, var(--gold));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.award:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16, 50, 74, 0.18); color: var(--ink); }
.award svg { width: 96px; height: 96px; margin: 0 auto 12px; }
.award .title { font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.award .name { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--sea-deep); margin: 4px 0 10px; }
.award p { margin: 0 0 16px; color: var(--ink-soft); flex: 1; }
.award .more { font-weight: 700; color: var(--sea); }
.award.gold { --accent: var(--gold); }
.award.ore { --accent: var(--ore); }
.award.silver { --accent: var(--silver); }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote {
  background: var(--parchment);
  border-left: 5px solid var(--brick);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0;
  font-size: 1.05rem;
}
.quote:nth-child(5n+2) { border-color: var(--wood); }
.quote:nth-child(5n+3) { border-color: var(--wheat); }
.quote:nth-child(5n+4) { border-color: var(--ore); }
.quote:nth-child(5n+5) { border-color: var(--sheep); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.stat .num { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--brick); line-height: 1; }
.stat .label { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; }

/* Award detail pages */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { color: var(--sea-deep); font-size: 1.7rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.citation {
  background: #fff;
  border: 2px solid var(--wheat);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.highlights li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 14px 50px;
  position: relative;
}
.highlights li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 20px;
  height: 22px;
  background: var(--hex, var(--wheat));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.highlights li:nth-child(5n+2) { --hex: var(--brick); }
.highlights li:nth-child(5n+3) { --hex: var(--wood); }
.highlights li:nth-child(5n+4) { --hex: var(--ore); }
.highlights li:nth-child(5n+5) { --hex: var(--sheep); }

.speech {
  margin: 0;
  padding: 24px 28px;
  background: var(--sea-deep);
  color: var(--sand);
  border-radius: var(--radius);
  font-size: 1.15rem;
}
.speech cite { display: block; margin-top: 12px; font-style: normal; color: var(--wheat); font-weight: 700; font-size: 0.95rem; }
.note { font-size: 0.95rem; color: var(--ink-soft); font-style: italic; }

/* Tips */
.tip-groups { display: grid; gap: 40px; }
.tip-group h2 { font-size: 1.6rem; color: var(--sea-deep); display: flex; align-items: center; gap: 12px; }
.tip-group h2::before {
  content: "";
  width: 26px;
  height: 30px;
  background: var(--hex, var(--wheat));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}
.tip-group.wood { --hex: var(--wood); }
.tip-group.brick { --hex: var(--brick); }
.tip-group.ore { --hex: var(--ore); }
.tip-group.sheep { --hex: var(--sheep); }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.tip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.tip h3 { font-family: var(--body); font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.tip p { margin: 0; color: var(--ink-soft); }
.tip .jab { display: block; margin-top: 10px; font-size: 0.92rem; color: var(--brick); font-weight: 600; }

/* Pip chart */
.pips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.pip {
  width: 52px;
  text-align: center;
  background: var(--sand);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}
.pip small { font-size: 0.7rem; letter-spacing: 1px; margin-top: 3px; }
.pip.hot { color: var(--brick); }

/* Book */
.book-feature {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 48px;
  align-items: center;
}
.book {
  aspect-ratio: 2 / 3;
  border-radius: 4px 12px 12px 4px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0, rgba(0, 0, 0, 0.05) 6%, transparent 9%),
    linear-gradient(170deg, #1a1a1a 0%, #2a2a2a 55%, #3a2a12 100%);
  color: #fff;
  padding: 26px 22px 22px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 14px 18px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
  position: relative;
  overflow: hidden;
}
.book::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 170px;
  height: 190px;
  background: var(--gold);
  opacity: 0.9;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.book .b-badge { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wheat); font-weight: 700; }
.book .b-title { font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.1; margin: 14px 0 10px; }
.book .b-sub { font-size: 0.85rem; font-style: italic; color: #d9d2c2; line-height: 1.35; }
.book .b-author { margin-top: auto; font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; position: relative; z-index: 1; }
.book-info h2 { color: var(--sea-deep); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.book-info .sub { font-style: italic; color: var(--ink-soft); margin-top: -6px; }
.chapters { padding-left: 1.2em; margin: 0 0 18px; }
.chapters li { margin-bottom: 4px; }
.blurbs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.blurbs li { background: #fff; border-radius: 10px; padding: 12px 16px; border: 1px solid var(--line); font-style: italic; }
.blurbs li span { font-style: normal; font-weight: 700; color: var(--sea); }
.rating { color: var(--gold); font-size: 1.3rem; letter-spacing: 2px; }

/* Footer */
.site-footer { background: var(--sea-deep); color: #c9bfa6; padding: 32px 0; font-size: 0.92rem; text-align: center; }
.site-footer a { color: var(--wheat); }
.site-footer p { margin: 4px 0; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .site-nav { justify-content: center; }
  .hero { padding: 52px 0 60px; }
  section { padding: 48px 0; }
  .book-feature { grid-template-columns: 1fr; gap: 32px; }
  .book { max-width: 240px; margin-inline: auto; }
  .citation { padding: 20px; font-size: 1.08rem; }
}
