/* tbg-realestate.com - authored stylesheet, no framework, no build step */
:root {
  --paper: #FAFAF7;
  --tint: #EFF3F2;
  --ink: #2B2B2B;
  --muted: #55605D;
  --teal: #2E6E65;
  --rule: #D5DCDA;
  --shell: 1240px;
  --sans: "Segoe UI", "Open Sans", Roboto, Helvetica, Arial, sans-serif;
  --display: Oswald, "Arial Narrow", "Helvetica Neue Condensed", "Liberation Sans Narrow", sans-serif;
  --serif: Georgia, "PT Serif", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--teal); }
a:hover { color: #2B2B2B; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 32px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  z-index: 20;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-head .shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { text-decoration: none; color: var(--ink); display: block; }
.brand .wordmark {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand .subject {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 3px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  padding: 10px 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal); }

/* ---------- bands ---------- */
.band { background: var(--paper); padding: 64px 0; border-bottom: 1px solid var(--rule); }
.band--tint { background: var(--tint); }
.band--lead { padding: 0; border-bottom: 1px solid var(--rule); }

.lead-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
  min-height: 440px;
  padding: 48px 0;
}
.lead-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.08;
  margin: 12px 0 20px;
  letter-spacing: 0.005em;
}
.lead-deck { font-size: 19px; max-width: 34em; margin: 0 0 24px; }

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

/* ---------- parcel-block motif ---------- */
.parcel-numeral {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.parcel-glyph {
  width: 34px;
  height: 22px;
  border: 1px solid var(--ink);
  position: relative;
  display: inline-block;
  flex: none;
  background: transparent;
}
.parcel-glyph::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 62%;
  width: 2px;
  background: var(--teal);
}
.parcel-glyph span {
  position: absolute;
  left: 0;
  top: 0;
  width: 62%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0;
}
.parcel-glyph--small { width: 22px; height: 15px; }
.parcel-glyph--small span { font-size: 10px; }

/* ---------- narrative ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: 0.005em; }
h2 { font-size: 38px; line-height: 1.14; margin: 14px 0 18px; }
h3 { font-size: 24px; line-height: 1.2; margin: 32px 0 10px; }
p { margin: 0 0 18px; }

.narrative { max-width: 62ch; }
.narrative--serif p { font-family: var(--serif); font-size: 19px; line-height: 1.62; }

/* ---------- 7/5 splits ---------- */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.split--flip { grid-template-columns: 5fr 7fr; }
.split--flip .split__text { grid-column: 2; grid-row: 1; }
.split--flip .split__figure { grid-column: 1; grid-row: 1; }
.split__text { max-width: 62ch; }
.split__figure img { width: 100%; border: 1px solid var(--rule); background: #fff; }

.chapter + .chapter { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--rule); }

.deflist { margin: 0; }
.deflist div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.deflist dt { font-weight: 600; }
.deflist dd { margin: 0; }

.twocol { column-count: 2; column-gap: 48px; max-width: none; }
.twocol p { break-inside: avoid; }

.chapter-link { font-size: 15px; }

/* ---------- figure pair ---------- */
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.figure-pair figure { margin: 0; }
.figure-pair img { width: 100%; border: 1px solid var(--rule); background: #fff; }
.figure-pair figcaption {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- reading order rows ---------- */
.reading-rows { list-style: none; margin: 24px 0 0; padding: 0; }
.reading-rows li {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.reading-rows li:last-child { border-bottom: 1px solid var(--rule); }
.reading-rows a { font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--rule); }
.reading-rows a:hover { border-bottom-color: var(--teal); }
.reading-rows p { margin: 0; color: var(--muted); }

/* ---------- section index ---------- */
.section-index { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 32px; }
.section-index li { display: flex; align-items: center; gap: 10px; }
.section-index a { text-decoration: none; border-bottom: 1px solid var(--rule); font-size: 16px; }
.section-index a:hover { border-bottom-color: var(--teal); }

/* ---------- fact panel ---------- */
.fact-panel { background: var(--tint); border: 1px solid var(--rule); padding: 24px 28px; margin: 32px 0; }
.band--tint .fact-panel { background: var(--paper); }
.fact-panel h2, .fact-panel h3 { margin-top: 0; }
.fact-panel ul { margin: 0; padding-left: 20px; }
.fact-panel li { margin-bottom: 8px; }

.stages { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: stage; max-width: 62ch; }
.stages li { counter-increment: stage; padding: 16px 0 16px 56px; border-top: 1px solid var(--rule); position: relative; }
.stages li::before {
  content: counter(stage, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--display);
  font-size: 16px;
  color: var(--teal);
  border: 1px solid var(--rule);
  padding: 1px 8px;
}
.stages strong { display: block; }

/* ---------- glossary ---------- */
.jump-strip { margin: 24px 0 8px; overflow-x: auto; }
.jump-strip ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0 0 8px; }
.jump-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--rule);
  text-decoration: none;
  font-family: var(--display);
}
.jump-strip a:hover { border-color: var(--teal); }
.glossary { margin: 0; }
.glossary h2 {
  font-size: 22px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  margin: 40px 0 0;
}
.glossary dt { font-weight: 600; margin-top: 18px; }
.glossary dd { margin: 4px 0 0; max-width: 66ch; }

/* ---------- detail page head ---------- */
.detail-head { background: var(--tint); border-bottom: 1px solid var(--rule); padding: 44px 0 40px; }
.detail-head .shell, .detail-body .shell, .notfound .shell { max-width: 824px; }
.detail-body .narrative, .detail-body .stages { max-width: none; }
.detail-head h1 { font-size: 46px; line-height: 1.1; margin: 14px 0 16px; max-width: 26ch; }
.detail-head .deck { font-size: 19px; max-width: 60ch; margin: 0; }
.detail-figure { margin: 0 0 40px; }
.detail-figure img { width: 100%; border: 1px solid var(--rule); background: #fff; }
.detail-figure figcaption { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 10px; }
.detail-body { padding: 56px 0 64px; }

.related { border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 24px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.related a:hover { border-bottom-color: var(--teal); }

/* ---------- footer ---------- */
.site-footer { background: #2B2B2B; color: #E7EAE9; padding: 56px 0 32px; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #9FB0AC; margin: 0 0 14px; font-family: var(--sans); font-weight: 600; }
.footer-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-groups ul { list-style: none; margin: 0; padding: 0; }
.footer-groups li { margin-bottom: 10px; }
.footer-groups a { color: #E7EAE9; text-decoration: none; border-bottom: 1px solid #4A5552; padding-bottom: 2px; display: inline-block; min-height: 24px; }
.footer-groups a:hover { color: #fff; border-bottom-color: #8FC7BD; }
.footer-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid #4A5552; font-size: 13px; color: #9FB0AC; }

/* ---------- 404 ---------- */
.notfound { padding: 80px 0 96px; }
.notfound h1 { font-size: 48px; margin: 0 0 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .lead-title { font-size: 44px; }
  h2 { font-size: 34px; }
  .detail-head h1 { font-size: 40px; }
  .section-index { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-head .shell { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav ul { gap: 18px; }
  .lead-grid, .split, .split--flip { grid-template-columns: 1fr; gap: 28px; }
  .split--flip .split__text, .split--flip .split__figure { grid-column: 1; grid-row: auto; }
  .figure-pair { grid-template-columns: 1fr; gap: 28px; }
  .related ul { grid-template-columns: 1fr 1fr; }
  .twocol { column-count: 1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .shell { padding: 0 20px; }
  .band { padding: 44px 0; }
  .lead-grid { min-height: 260px; padding: 32px 0; }
  .lead-title { font-size: 30px; }
  .lead-deck { font-size: 17px; }
  h2 { font-size: 27px; }
  h3 { font-size: 21px; }
  .detail-head h1 { font-size: 30px; }
  .detail-head .deck { font-size: 17px; }
  .reading-rows li { grid-template-columns: 1fr; gap: 6px; }
  .deflist div { grid-template-columns: 1fr; gap: 4px; }
  .footer-groups { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section-index { grid-template-columns: 1fr; }
  .related ul { grid-template-columns: 1fr; }
  .detail-body { padding: 40px 0 48px; }
}

@media (max-width: 480px) {
  .footer-groups { grid-template-columns: 1fr; }
  .lead-title { font-size: 27px; }
}
