:root {
  color-scheme: light;
  --bg: #fff;
  --paper: #f7f8fa;
  --ink: #2f343f;
  --text: #2f343f;
  --muted: #7d8490;
  --line: #e2e5ec;
  --line-strong: #c9ced8;
  --accent: #faaf3a;
  --danger: #b42318;
  --warning: #9a6700;
  --good: #067647;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 14px/1.55 AvenirNext, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p, h1, h2, h3 { margin: 0; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 68px);
  background: #fff;
  border-bottom: 1px solid rgba(226, 229, 236, .75);
}
.serenity-header { justify-content: space-between; }
.logo-link { display: block; flex: 0 0 auto; line-height: 0; }
.logo-link img { width: 148px; height: 72px; object-fit: contain; object-position: left center; }
.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex: 1 1 auto;
  overflow-x: auto;
}
.nav-link {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.build-status { flex: 0 0 auto; text-align: right; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }
.build-status strong { display: block; color: var(--ink); font-size: 12px; letter-spacing: 0; text-transform: none; margin-top: 3px; }
.eyebrow, .page-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: center;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 72px;
  align-items: end;
  padding: 66px 0 74px;
  position: relative;
  z-index: 1;
}
.intro-heading { position: relative; padding-bottom: 28px; }
.intro-heading:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(520px, 68%);
  height: 3px;
  background: var(--accent);
}
h1, .hero-panel h2 {
  font-family: "Noe Display", Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .98;
}
h1 { font-size: clamp(34px, 6vw, 66px); margin-top: 10px; max-width: 760px; }
.hero-copy { max-width: 620px; margin-top: 20px; color: #535b67; font-size: 16px; line-height: 1.62; }
.source-line { color: var(--muted); margin-top: 16px; }
.source-line strong { color: var(--ink); }
.objective-box { padding-bottom: 8px; }
.objective-box span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.objective-box strong {
  display: block;
  color: #3f5666;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}
.decor-image {
  position: absolute;
  right: -95px;
  top: 130px;
  width: 240px;
  opacity: .45;
  pointer-events: none;
}
.visual-band {
  min-height: 220px;
  background-image: url("assets/serenity/bg-img-01-2x-1903x533.png");
  background-size: cover;
  background-position: center;
}
.home-section { padding: 54px 0 70px; }
.section-heading {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 30px;
}
.section-heading h2 {
  font-family: "Noe Display", Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}
.decor-link {
  position: relative;
  padding-left: 52px;
  color: var(--ink);
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.decor-link:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--accent);
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.home-card {
  min-height: 178px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background .2s ease, color .2s ease;
}
.home-card span {
  display: block;
  color: var(--ink);
  font-family: "Noe Display", Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 700;
}
.home-card p { margin-top: 18px; color: #69717c; line-height: 1.6; }
.home-card:hover { background: var(--ink); color: #fff; }
.home-card:hover span, .home-card:hover p { color: #fff; }
.page-shell { padding: 34px clamp(20px, 5vw, 68px) 70px; }
.hero-panel {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
  padding: 42px 0 34px;
  border-bottom: 1px solid var(--line);
}
.hero-panel:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(420px, 55%);
  height: 3px;
  background: var(--accent);
}
.hero-panel h2 { font-size: clamp(34px, 5.2vw, 62px); margin-top: 8px; max-width: 820px; }
.subtitle { color: #535b67; max-width: 720px; margin-top: 13px; font-size: 15px; line-height: 1.62; }
.metrics { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.metric {
  min-width: 98px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.metric span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.metric strong { display: block; color: var(--ink); font-size: 24px; line-height: 1.1; margin-top: 4px; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 28px 0 14px;
}
.search-box { display: block; width: min(540px, 100%); }
.search-box span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .22em; }
.search-box input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  padding: 0 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}
.search-box input:focus { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.row-count { color: var(--muted); font-weight: 800; padding-bottom: 10px; }
.notes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.note { padding: 6px 9px; background: #fff7e8; color: #80591d; font-size: 12px; font-weight: 700; }
.table-frame {
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
}
table { width: 100%; min-width: 920px; border-collapse: collapse; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; z-index: 1; background: #f5f6f8; }
td { color: #303845; }
tbody tr:nth-child(even) td { background: #fbfcfd; }
tbody tr:hover td { background: #fff8eb; }
tr:last-child td { border-bottom: 0; }
.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.sort-button span { color: var(--accent); }
tr.danger td { background: #fff1f0; color: var(--danger); }
tr.warning td { background: #fff8e5; color: var(--warning); }
tr.good td:first-child { border-left: 4px solid var(--good); }
.empty, .error { padding: 16px; color: var(--muted); }
.error { margin-bottom: 12px; border: 1px solid #f2b8b5; background: #fff1f0; color: var(--danger); }
.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tier-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}
.tier-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.tier-card h3 {
  font-family: "Noe Display", Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}
.tier-card-head span {
  min-width: 34px;
  padding: 5px 8px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-weight: 800;
}
.tier-card p { color: #69717c; margin-bottom: 14px; }
.asset-list { display: flex; flex-wrap: wrap; gap: 7px; }
.asset-list span { padding: 5px 8px; border: 1px solid var(--line); background: #fffaf0; font-weight: 700; color: #303845; }
@media (max-width: 960px) {
  .site-header { display: block; }
  .nav { justify-content: flex-start; margin-top: 18px; }
  .build-status { text-align: left; margin-top: 12px; }
  .hero-layout { grid-template-columns: 1fr; gap: 30px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-panel, .toolbar { display: block; }
  .metrics { justify-content: flex-start; margin-top: 20px; }
  .row-count { padding-top: 10px; }
  .tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-header { padding: 16px 14px; }
  .nav { gap: 14px; }
  .nav-link { font-size: 10px; }
  .home-grid { grid-template-columns: 1fr; }
  .visual-band { min-height: 150px; }
  .page-shell { padding: 20px 14px 48px; }
  table { min-width: 760px; }
}
