/* Public pages. Values follow the approved mockups in design-reference/. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-text);
  font: 400 16px/1.5 var(--font-body);
  min-height: 100vh;
}
a { color: var(--c-link); }
a:hover { color: var(--c-link-hover); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding-left: var(--side-padding); padding-right: var(--side-padding); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--c-card); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Header: shared hvs-brand nav (hvs.css), aligned with the content width ---------- */
html { scroll-padding-top: 72px; }
:root { --hvs-nav-max: var(--max-width); --hvs-nav-pad: 16px; } /* loaded after hvs.css, so these win */

/* ---------- Hero + filters ---------- */
.hero { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.hero--small { padding-top: 56px; padding-bottom: 32px; }
.kicker { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-ochre-text); display: flex; align-items: center; gap: 6px; }
.hero h1 {
  margin: 0; font-family: var(--font-heading); font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1.05;
  max-width: 820px; text-wrap: balance;
}
.lead { margin: 0; font-size: 18px; line-height: 1.6; max-width: 640px; color: var(--c-text-secondary); text-wrap: pretty; }
.lead a { white-space: nowrap; }
.lead svg { vertical-align: -1px; }

.filters { padding-bottom: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  min-height: var(--touch); padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--c-pill-border);
  display: inline-flex; align-items: center; font: 500 14px var(--font-body); color: var(--c-text); text-decoration: none; background: transparent;
}
.pill:hover { color: var(--c-text); background: var(--c-border); }
.pill.is-on { background: var(--c-selected); color: var(--c-on-selected); border-color: var(--c-selected); }

/* ---------- Masonry feed ---------- */
.feed { padding-bottom: 64px; }
.grid { column-count: 3; column-gap: var(--grid-gap); }
@media (max-width: 900px) { .grid { column-count: 2; } }
@media (max-width: 600px) { .grid { column-count: 1; } }
.card {
  break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 var(--grid-gap);
  background: var(--tint, var(--c-card)); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--c-border);
}
.card__img { display: block; background: var(--tint); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
/* On tinted backgrounds the label uses the darker link green to keep ≥ 4.5:1 contrast. */
.tag-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-link); font-weight: 600; }
.card__text { margin: 0; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.card__text a { color: var(--c-text); text-decoration: none; }
.card__text a:hover { text-decoration: underline; }
.place-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-text-muted); text-decoration: none; min-height: 24px; }
.place-line:hover { color: var(--c-text); text-decoration: underline; }
.place-line svg { flex: none; }
.apt-box {
  display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--c-sage-light); color: var(--c-on-sage-light);
  padding: 8px 10px; border-radius: 4px; text-decoration: none; min-height: 36px;
}
.apt-box:hover { color: var(--c-on-sage-light); text-decoration: underline; }
.apt-box svg { flex: none; }
.empty { color: var(--c-text-secondary); padding: 24px 0 48px; }
.more { display: flex; justify-content: center; padding-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  min-height: var(--touch); padding: 0 24px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center;
  font: 500 15px var(--font-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; color: var(--c-text); background: transparent;
}
.btn--outline { border-color: var(--c-pill-border); }
.btn--outline:hover { background: var(--c-border); color: var(--c-text); }
.btn--ochre { background: var(--c-ochre); color: var(--c-on-ochre); font-weight: 600; font-size: 16px; padding: 15px 26px; }
.btn--ochre:hover { background: #D39350; color: var(--c-on-ochre); }
.btn--dark { background: var(--c-selected); color: var(--c-on-selected); }
.btn--dark:hover { color: var(--c-on-selected); opacity: .9; }

/* ---------- Contact band + footer ---------- */
.contact { background: var(--c-sage); color: var(--c-on-sage); }
.contact__inner { padding-top: 64px; padding-bottom: 64px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.contact__text { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.contact h2 { margin: 0; font: 500 40px/1.1 var(--font-heading); }
.contact p { margin: 0; font-size: 17px; line-height: 1.6; }
.site-footer { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--c-text-secondary); }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- Post page ---------- */
.post { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr; }
.post__media { background: var(--tint); width: 100%; max-height: 80vh; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__content { padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 16px; }
.post__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-chip {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-sage-text); font-weight: 600;
  border: 1px solid #A9B5A5; padding: 6px 10px; border-radius: var(--radius-pill); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center;
}
.tag-chip:hover { color: var(--c-link-hover); background: var(--c-sage-light); }
h1.post__title { margin: 0; font: 500 30px/1.2 var(--font-heading); text-wrap: pretty; }
.post__body p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--c-text-secondary); }
.post__body p:last-child { margin-bottom: 0; }
.place-line--post { font-size: 14px; gap: 8px; min-height: var(--touch); }
.place-line--post .u { text-decoration: underline; }
.post__date { font-size: 13px; color: var(--c-text-faint); }
.apt-feature {
  margin-top: 8px; display: flex; flex-direction: column; gap: 6px; background: var(--c-sage); color: var(--c-on-sage);
  text-decoration: none; padding: 18px; border-radius: var(--radius-card);
}
.apt-feature:hover { color: var(--c-on-sage); background: #86997F; }
.apt-feature__kicker { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.apt-feature__name { font: 600 24px/1.2 var(--font-heading); }
.apt-feature__link { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.share { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--c-border-strong); }
.share__title { font-size: 14px; font-weight: 600; }
.share__buttons { display: flex; gap: 10px; }
.share__buttons .btn { flex: 1; font-size: 14px; }
.share__status { font-size: 13px; color: var(--c-link); min-height: 1em; }

@media (min-width: 900px) {
  .post { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; padding: 40px var(--side-padding) 64px; align-items: start; }
  .post__media { border-radius: var(--radius-card); max-height: none; }
  .post__content { padding: 8px 0 0; position: sticky; top: 76px; }
  h1.post__title { font-size: 36px; }
}

.notfound { padding-top: 96px; padding-bottom: 96px; }
.notfound h1 { font: 500 48px/1.1 var(--font-heading); margin: 0 0 12px; }
.notfound p { margin: 0 0 24px; color: var(--c-text-secondary); }

@media (max-width: 600px) {
  .hero { padding-top: 40px; padding-bottom: 28px; }
  .contact h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card__img img { transition: opacity .2s; }
}
