/* Stone & Street — shared styles */
:root {
  --navy: #0E2438;
  --navy-2: #16324A;
  --gold: #C9A24B;
  --gold-dark: #A88434;
  --ink: #22303C;
  --slate: #5A6B7C;
  --mist: #9DB2C5;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --line: #E3DED4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: normal; color: var(--navy); }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header img.logo { height: 52px; display: block; }
.site-nav a {
  font-family: var(--serif);
  color: var(--navy);
  margin-left: 28px;
  letter-spacing: 1px;
  font-size: 15px;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--gold-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%);
  color: var(--paper);
  padding: 96px 0;
}
.hero h1 {
  color: var(--white);
  font-size: 44px;
  line-height: 1.2;
  max-width: 720px;
}
.hero h1 .amp { color: var(--gold); }
.hero p.lede {
  margin-top: 20px;
  font-size: 19px;
  color: var(--mist);
  max-width: 640px;
}
.hero .rule { width: 72px; height: 3px; background: var(--gold); margin-bottom: 28px; }
.btn {
  display: inline-block;
  margin-top: 32px;
  padding: 13px 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
}
.btn:hover { background: var(--gold); color: var(--navy); text-decoration: none; }
.btn.solid { background: var(--gold); color: var(--navy); }
.btn.solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section[id] { scroll-margin-top: 96px; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
section.block h2 { font-size: 32px; margin-bottom: 18px; }
section.block p.intro { max-width: 720px; color: var(--slate); font-size: 17px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 28px;
}
section.block.alt .card { background: var(--paper); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15px; }
.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--navy);
  color: var(--paper);
  padding: 48px 0;
}
.stats .container { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-around; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 38px; color: var(--gold); }
.stat .label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--mist); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--mist);
  padding: 48px 0 32px;
  font-size: 14px;
}
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.site-footer img.logo { height: 44px; margin-bottom: 16px; }
.site-footer h4 { color: var(--paper); font-size: 16px; margin-bottom: 12px; }
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--navy-2);
  font-size: 12px;
  color: #6E8299;
}

/* ---------- Research report templates ---------- */
.report {
  max-width: 860px;
  margin: 32px auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 48px 56px;
}
.report-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--navy);
  padding-bottom: 16px;
}
.report-masthead img { height: 48px; }
.report-masthead .report-type {
  font-family: var(--serif);
  text-align: right;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.report-masthead .report-type small { display: block; font-family: var(--sans); font-size: 12px; color: var(--slate); letter-spacing: 1px; }

.report-titleblock { margin: 28px 0 8px; }
.report-titleblock h1 { font-size: 30px; line-height: 1.25; }
.report-titleblock .subtitle { color: var(--slate); font-size: 16px; margin-top: 6px; }

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  color: var(--slate);
}
.report-meta strong { color: var(--navy); }

.rating-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.rating-box {
  flex: 1 1 140px;
  border: 1px solid var(--line);
  padding: 14px;
  text-align: center;
}
.rating-box .value { font-family: var(--serif); font-size: 24px; color: var(--navy); }
.rating-box .value.buy { color: #2E7D32; }
.rating-box .value.sell { color: #B3402A; }
.rating-box .label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--slate); }

.report h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.report h2 .no { color: var(--gold-dark); margin-right: 8px; }
.report p { margin-bottom: 12px; font-size: 15px; }
.report ul { margin: 0 0 12px 22px; font-size: 15px; }
.report li { margin-bottom: 6px; }
.placeholder { color: #8896A5; font-style: italic; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 14px 0 20px;
}
table.data th {
  background: var(--navy);
  color: var(--paper);
  font-weight: normal;
  font-family: var(--serif);
  letter-spacing: 1px;
  padding: 8px 10px;
  text-align: right;
}
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); }
table.data tr:nth-child(even) td { background: var(--paper); }

.chart-placeholder {
  border: 1px dashed var(--mist);
  background: var(--paper);
  color: var(--slate);
  text-align: center;
  padding: 56px 20px;
  font-size: 13px;
  letter-spacing: 1px;
  margin: 14px 0 20px;
}

.callout {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
}
.callout .head { font-family: var(--serif); color: var(--navy); font-size: 16px; margin-bottom: 4px; }

.report-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 3px solid var(--navy);
  font-size: 11px;
  color: var(--slate);
}

.toolbar { max-width: 860px; margin: 24px auto 0; padding: 0 8px; display: flex; justify-content: space-between; align-items: center; }
.toolbar a { font-size: 14px; }

/* ---------- Brand page ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.swatch { width: 150px; border: 1px solid var(--line); background: var(--white); }
.swatch .chip { height: 84px; }
.swatch .info { padding: 10px 12px; font-size: 12px; color: var(--slate); }
.swatch .info strong { display: block; color: var(--navy); font-size: 13px; }
.logo-tile { background: var(--white); border: 1px solid var(--line); padding: 32px; text-align: center; margin-top: 16px; }
.logo-tile.dark { background: var(--navy); }
.logo-tile img { max-width: 100%; height: auto; }
.logo-tile .cap { font-size: 12px; color: var(--slate); margin-top: 12px; letter-spacing: 1px; text-transform: uppercase; }
.logo-tile.dark .cap { color: var(--mist); }

/* ---------- Portfolio ---------- */
.profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}
.portrait {
  width: 220px;
  height: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--slate);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 16px;
  object-fit: cover;
}
.portrait.monogram {
  flex-direction: column;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 80%);
  border: none;
  border-top: 3px solid var(--gold);
  color: var(--mist);
}
.portrait.monogram img { width: 96px; height: 96px; margin-bottom: 18px; }
.portrait.monogram .name { font-family: var(--serif); font-size: 17px; letter-spacing: 0; color: var(--white); }
.portrait.monogram .sub { margin-top: 4px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
img.portrait { padding: 0; display: block; }
.profile p { color: var(--slate); font-size: 16px; margin-bottom: 14px; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.contact-actions .btn { margin-top: 20px; }
.btn.dark { border-color: var(--navy); color: var(--navy); }
.btn.dark:hover { background: var(--navy); color: var(--white); }
.contact-line { margin-top: 18px; color: var(--slate); font-size: 15px; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
html { scroll-behavior: smooth; }

.facts { margin-top: 8px; border-top: 1px solid var(--line); }
.facts .row {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.facts .row .k {
  flex: 0 0 150px;
  font-family: var(--serif);
  color: var(--navy);
}
.facts .row .v { color: var(--slate); }

.pills { margin-top: 10px; }
.pill {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--slate);
  font-size: 13px;
  padding: 5px 12px;
  margin: 0 6px 8px 0;
}
section.block.alt .pill { background: var(--paper); }

.project {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.project:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14, 36, 56, .08); }
section.block.alt .project { background: var(--paper); }
.project .type {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.project h3 { font-size: 20px; margin-bottom: 8px; }
.project p { color: var(--slate); font-size: 15px; flex-grow: 1; }
.project .links { margin-top: 16px; font-size: 15px; }
.project .links a { margin-right: 16px; }

.timeline { margin-top: 28px; border-left: 2px solid var(--line); padding-left: 26px; }
.timeline .item { position: relative; padding-bottom: 26px; }
.timeline .item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 2px solid var(--paper);
  border-radius: 50%;
}
section.block.alt .timeline .item::before { border-color: var(--white); }
.timeline .when { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dark); }
.timeline h3 { font-size: 19px; margin: 2px 0 4px; }
.timeline p { color: var(--slate); font-size: 15px; }

/* ---------- Print ---------- */
@media print {
  .toolbar, .site-header, .site-footer { display: none; }
  body { background: var(--white); }
  .report { border: none; margin: 0; padding: 0; max-width: none; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .report { padding: 28px 20px; }
  .site-header .container { flex-direction: column; gap: 10px; }
  .site-header img.logo { height: 40px; }
  .site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
  .site-nav a { margin: 0; font-size: 13px; }
  section[id] { scroll-margin-top: 140px; }
  .hero { padding: 64px 0; }
  section.block { padding: 56px 0; }
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .portrait { width: 100%; }
  .facts .row { flex-direction: column; gap: 2px; }
  .facts .row .k { flex: none; }
}
