/* Interior Designers Bay Area — styles modeled on the Boca do Lobo editorial template
   Fonts: Playfair Display (title), Figtree (body), Hind (nav / labels) */

:root {
  --black: #090909;
  --footer: #0b0b0b;
  --ink: #242424;
  --head: #222;
  --text: #555;
  --muted: #888;
  --faint: #999;
  --gold: #907a54;
  --red: #ce1126;
  --chip: #f2f2f2;
  --line: #e6e6e6;
  --gray: #f3f3f3;
  --white: #fff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Figtree, "Helvetica Neue", Arial, sans-serif;
  --ui: Hind, "Helvetica Neue", Arial, sans-serif;
  --shell: 962px;
  --hdr: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 20px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  padding-top: var(--hdr);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--head); }
p { margin: 0 0 22px; }
strong { font-weight: 700; color: var(--text); }
.small { font-size: 13px; color: var(--muted); }

.shell { width: min(var(--shell), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hdr);
  background: rgba(0, 0, 0, .96);
  color: #fff;
  font-family: var(--ui);
}
.hdr__in { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: #fff; letter-spacing: .14em; text-transform: uppercase; flex: 0 0 auto; }
.logo__a { font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .1em; }
.logo__b { font-size: 8.5px; font-weight: 600; letter-spacing: .34em; color: rgba(255,255,255,.78); margin-top: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a {
  display: block; padding: 0 7px; line-height: var(--hdr);
  font-size: 10px; font-weight: 600; letter-spacing: .15px; text-transform: uppercase;
  color: rgba(255,255,255,.84); text-decoration: none;
}
.nav a:hover { color: #fff; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; margin-right: -10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }
.mnav { display: none; position: fixed; inset: var(--hdr) 0 0 0; background: rgba(0,0,0,.96); padding: 24px 0; overflow: auto; }
.mnav ul { list-style: none; margin: 0; padding: 0 32px; }
.mnav a { display: block; padding: 18px 0; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
body.menu-open { overflow: hidden; }
body.menu-open .mnav { display: block; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Post head ---------- */
.post { padding: 75px 0 95px; }
.post__cats { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px; }
.post__cats a { color: var(--red); text-decoration: none; }
.post__cats a:hover { text-decoration: underline; }
.post__cats span { color: #bbb; margin: 0 8px; }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.5vw, 46px); line-height: 1.04;
  color: var(--head); margin: 0 0 18px; max-width: 980px;
}
.post__date { font-size: 11px; letter-spacing: .55px; text-transform: uppercase; color: var(--gold); margin-bottom: 32px; }
.post__featured { margin: 0 0 35px; }
.post__featured img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post__featured figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- 3-column grid ---------- */
.post__grid { display: grid; grid-template-columns: 50px minmax(0, 1fr) 230px; gap: 20px; align-items: start; }
.content { max-width: 642px; }

.share { position: sticky; top: calc(var(--hdr) + 20px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.share__lbl { font-family: var(--ui); font-size: 9px; letter-spacing: .72px; text-transform: uppercase; color: var(--faint); margin-bottom: -4px; }
.share a {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: #333; color: #fff; text-decoration: none;
  font-family: var(--ui); font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.share a:hover { background: var(--gold); }

.side { position: sticky; top: calc(var(--hdr) + 40px); display: grid; gap: 20px; }
.side__box { border: 1px solid var(--line); padding: 18px 18px 14px; }
.side__box--dark { background: var(--black); color: rgba(255,255,255,.75); border-color: var(--black); font-size: 14px; line-height: 1.55; }
.side__box--dark p { margin: 0; }
.side__box--dark a { color: #fff; }
.side__h { font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.side__box--dark .side__h { color: #fff; }
.side__list { list-style: none; margin: 0; padding: 0; }
.side__list li + li { border-top: 1px solid var(--line); }
.side__list a { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; padding: 8px 0; text-decoration: none; color: var(--ink); font-size: 13px; line-height: 1.3; }
.side__list .n { font-family: var(--serif); color: var(--gold); font-size: 15px; grid-row: span 2; }
.side__list .t { font-weight: 500; }
.side__list .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.side__list a:hover .t { color: var(--gold); }

/* ---------- Sections ---------- */
.sec { margin-top: 56px; }
.sec__h {
  font-family: var(--ui); font-weight: 500; font-size: 19px; letter-spacing: 1.71px; text-transform: uppercase;
  color: var(--ink); text-align: center; margin: 0 0 26px; padding-top: 30px; position: relative;
}
.sec__h::before { content: ""; position: absolute; top: 0; left: 50%; width: 60px; height: 2px; background: var(--text); transform: translateX(-50%); }
.sec__sub { text-align: center; font-size: 13px; color: var(--muted); margin-top: -14px; }

/* tables */
.table-wrap { margin: 8px 0 22px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.tbl thead th { font-family: var(--ui); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--text); padding-top: 0; }
.tbl tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tbl--style tbody th { white-space: normal; }

/* ---------- Designer cards ---------- */
.card { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.card:first-of-type { border-top: 2px solid var(--text); }
.card__title { font-family: var(--sans); font-weight: 400; font-size: 18px; color: var(--text); text-align: center; margin: 0 0 18px; }
.card__title a { color: var(--gold); }
.card__media { margin: 0; }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--gray); }
.card__source { font-size: 15px; margin: 10px 0 16px; }
.meta { margin: 0 0 16px; padding: 14px 16px; background: var(--gray); display: grid; gap: 6px; }
.meta__row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: baseline; }
.meta dt { font-family: var(--ui); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.meta dd { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.45; }
.stars { display: inline-flex; gap: 1px; vertical-align: -2px; margin-right: 6px; color: var(--gold); }
.stars svg { width: 13px; height: 13px; fill: currentColor; }
.stars svg.empty { fill: #d8d4cc; }
.rating__num { font-weight: 700; margin-right: 6px; }
.tags { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 11px; color: var(--muted); background: var(--chip); padding: 6px 10px 5px; line-height: 1.55; }
.card__bio { margin-bottom: 14px; }
.card__visit { margin: 0; }
.card__visit a { font-weight: 700; }
.card__visit a::after { content: " \2192"; }

/* steps + faq */
.steps { padding-left: 22px; margin: 0 0 22px; }
.steps li { margin-bottom: 10px; }
.steps strong { color: var(--ink); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
.faq__item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq__item:last-of-type { border-bottom: 0; }
.faq__q { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--head); margin: 0 0 8px; }
.faq__a { margin: 0; }

.post__tags { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post__tags li { font-size: 11px; color: var(--muted); background: var(--chip); padding: 6px 10px 5px; }

/* ---------- Black band ---------- */
.band { background: var(--black); color: #fff; padding: 70px 0 74px; text-align: center; font-family: var(--ui); }
.band h2 { font-size: 19px; font-weight: 500; letter-spacing: 1.71px; text-transform: uppercase; margin: 0 0 8px; }
.band p { font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.72); margin: 0 0 26px; }
.band__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 12px 22px 10px; text-decoration: none; line-height: 1.2; transition: background .2s, color .2s;
}
.btn--light { background: #fff; color: var(--black); }
.btn--light:hover { background: var(--gold); color: #fff; }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; padding-block: 11px 9px; }
.btn--ghost:hover { border-color: #fff; background: #fff; color: var(--black); }
.btn--dark { background: var(--ink); color: #fff; padding: 9px 16px 7px; font-size: 10px; }

/* ---------- Gallery grid ---------- */
.gallery { padding: 70px 0 80px; }
.gallery__h { font-family: var(--ui); font-size: 19px; font-weight: 500; letter-spacing: 1.71px; text-transform: uppercase; color: var(--ink); text-align: center; margin: 0 0 40px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 20px; }
.grid a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--text); }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; }
.grid .g__name { font-size: 13px; color: var(--ink); font-weight: 500; line-height: 1.3; }
.grid .g__loc { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 3px 0 12px; }
.grid a:hover .btn--dark { background: var(--gold); }

/* ---------- Footer ---------- */
.ftr { background: var(--footer); color: rgba(255,255,255,.6); font-family: var(--ui); font-size: 11px; line-height: 1.55; padding: 25px 0; }
.ftr__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ftr p { margin: 0; }
.ftr p:first-child { max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .post__grid { grid-template-columns: 1fr; }
  .content { max-width: none; }
  .share { position: static; flex-direction: row; order: -1; margin-bottom: 8px; }
  .share__lbl { margin: 0 6px 0 0; }
  .side { position: static; order: 3; grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .nav { display: none; }
  .burger { display: block; }
  .post { padding: 44px 0 60px; }
  .post__featured { width: 100vw; margin-left: calc(50% - 50vw); }
  .post__featured figcaption { padding: 0 16px; }
  .side { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .meta__row { grid-template-columns: 1fr; gap: 2px; }
  .map iframe { height: 320px; }
  .ftr__in { flex-direction: column; gap: 10px; }
  /* stacked tables */
  .tbl thead { position: absolute; left: -9999px; }
  .tbl tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl th, .tbl td { display: block; border: 0; padding: 3px 0; white-space: normal; }
  .tbl td::before, .tbl tbody th::before {
    content: attr(data-label); display: block;
    font-family: var(--ui); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600;
  }
  .tbl tbody th::before { display: none; }
  .tbl tbody th { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Homepage hub ---------- */
.home-hero { padding: 75px 0 10px; }
.post__cats-static { color: var(--red); }
.lede { font-size: 18px; line-height: 1.6; max-width: 760px; margin: 0 0 10px; }
.lists { padding: 50px 0 70px; }
.lgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; }
.lcard a { display: flex; flex-direction: column; text-decoration: none; color: var(--text); height: 100%; }
.lcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 16px; }
.lcard__kicker { font-family: var(--ui); font-size: 11px; letter-spacing: .55px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.lcard__title { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--head); margin-bottom: 10px; }
.lcard__desc { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.lcard .btn { align-self: flex-start; margin-top: auto; }
.lcard a:hover .lcard__title { color: var(--gold); }
.lcard a:hover .btn--dark { background: var(--gold); }
.home-about { max-width: 760px; padding-bottom: 80px; }
.home-about .sec__h { margin-top: 10px; }
@media (max-width: 767px) { .home-hero { padding-top: 44px; } .lede { font-size: 17px; } }

/* ---------- Guide-format entries (full home furnishing list) ---------- */
.card__studio { text-align: center; font-size: 14px; color: var(--muted); margin: -10px 0 16px; }
.card__best { margin-bottom: 14px; }
.card__best strong { color: var(--ink); }
.card__media figcaption.card__source { font-size: 15px; margin: 10px 0 16px; }
.tbl--glance td.num { font-family: var(--serif); color: var(--gold); font-size: 16px; width: 28px; }
.tbl--glance tbody th a { color: var(--ink); text-decoration: none; }
.tbl--glance tbody th a:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 767px) { .tbl--glance td.num { display: none; } }
