@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/assets/newsreader.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sand: #f7f5ee;
  --paper: #fffdfa;
  --ink: #192b27;
  --fern: #244c40;
  --muted: #465851;
  --rust: #984c34;
  --line: #d9ded3;
  --serif: Newsreader, Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  font: 1rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--sand);
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

a:focus-visible {
  outline: 3px solid #b35331;
  outline-offset: 4px;
}

.shell {
  width: min(100% - 5rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--paper);
  z-index: 2;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 5.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--fern);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: .3rem;
  font-size: .75rem;
  font-weight: 500;
}

.brand-mark {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  left: .55rem;
  right: .55rem;
  height: .42rem;
  border-bottom: 1px solid currentColor;
  border-radius: 0 0 50% 50%;
  transform: rotate(-15deg);
}

.brand-mark::before { top: .65rem; }
.brand-mark::after { top: 1.03rem; }

.main-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  font-size: .9rem;
  font-weight: 600;
}

.main-nav a, .header-cta { text-decoration: none; }
.main-nav a:hover { color: var(--rust); text-decoration: underline; }

.header-cta {
  border: 1px solid var(--fern);
  border-radius: .25rem;
  padding: .6rem 1rem;
  color: var(--fern);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta:hover { background: #e5ede3; }

.hero {
  background: #edf0e5;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 3.5rem 3rem;
}

.hero-copy { padding-bottom: 1rem; }

.eyebrow {
  color: var(--rust);
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.65rem, 5.3vw, 5rem); }
h2 { font-size: clamp(1.95rem, 3.18vw, 3rem); }

.hero h1 {
  max-width: 10ch;
  margin-top: .9rem;
  font-size: clamp(3.55rem, 7.5vw, 7rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.hero-description {
  margin-top: 1.35rem;
  max-width: 32ch;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  min-height: 2.875rem;
  background: var(--fern);
  border: 1px solid transparent;
  border-radius: .28rem;
  padding: .65rem 1rem;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}

.hero .button { margin-top: 1.6rem; }
.button:hover { background: #183b31; }

.hero figure { min-width: 0; }

.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: .3rem;
  background: #b8cfc9;
}

.hero figcaption {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .75rem;
  text-align: right;
}

.section {
  border-bottom: 1px solid var(--line);
  padding-block: 2.7rem;
}

.section h2, .section h1 { margin-bottom: 1.25rem; }

.region-grid, .post-grid, .property-grid {
  display: grid;
  gap: .75rem;
}

.region-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.region-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 4.1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: .28rem;
  background: var(--paper);
  text-decoration: none;
  line-height: 1.25;
}

.region-card small {
  display: block;
  margin-top: .28rem;
  color: var(--muted);
  font-size: .76rem;
}

.region-card > span:last-child { color: var(--rust); }

.region-card:hover, .region-card[aria-current="page"] {
  border-color: var(--fern);
  background: #e9efe4;
}

.post-grid, .property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card, .property-card {
  border: 1px solid var(--line);
  border-radius: .28rem;
  background: var(--paper);
}

.post-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 1.3rem;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  align-items: baseline;
  margin-bottom: .7rem;
  color: var(--muted);
  font-size: .78rem;
}

.post-card-meta > span { color: var(--rust); font-weight: 700; }
.post-card h3, .property-card h3 { font-size: clamp(1.42rem, 2.2vw, 2rem); }
.post-card a { text-decoration-thickness: 1px; text-underline-offset: .15em; }
.post-card a:hover, .text-link:hover { color: var(--rust); }
.post-card p { margin-block: .7rem 1rem; color: var(--muted); }
.post-place { margin-top: auto; font-size: .8rem; font-weight: 700; }

.empty {
  border-left: 2px solid var(--line);
  padding: .65rem 1rem;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.4rem;
}

.pagination a { font-weight: 700; text-underline-offset: .2em; }

.partnership {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem 3rem;
  margin-block: 2.5rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: .35rem;
  background: var(--fern);
  color: #fffdfa;
}

.partnership p { margin-top: .5rem; max-width: 58ch; }
.partnership .button { flex: 0 0 auto; }
.button--light { background: var(--paper); color: var(--fern); }
.button--light:hover { background: #e9efe4; }

.breadcrumbs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .6rem;
  color: var(--muted);
  font-size: .85rem;
}

.breadcrumbs a { text-underline-offset: .2em; }

.page-heading, .article-heading, .page-empty { padding-block: 2.5rem; }
.page-heading, .article-heading { border-bottom: 1px solid var(--line); }

.page-heading h1 { margin-top: .85rem; }
.page-heading p { max-width: 65ch; margin-top: .55rem; color: var(--muted); }
.article-heading .eyebrow { margin-top: 1.35rem; }
.article-heading h1 { max-width: 19ch; margin-top: .5rem; }

.article-description {
  max-width: 52ch;
  margin-top: .8rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.4rem);
}

.article-date {
  margin-top: .9rem;
  color: var(--muted);
  font-size: .9rem;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 48rem);
  padding-block: 2rem;
}

.article-grid--sidebar {
  grid-template-columns: minmax(0, 48rem) minmax(14rem, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.article-content { min-width: 0; overflow-wrap: anywhere; }
.prose { font-size: 1.065rem; }
.prose > * + * { margin-top: 1.05em; }

.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { font-size: 1.6rem; }
.prose a, .article-sources a { color: var(--fern); text-underline-offset: .18em; }

.prose blockquote {
  margin-inline: 0;
  border-left: 2px solid var(--rust);
  padding-left: 1.2rem;
}

.prose pre {
  overflow: auto;
  border: 1px solid var(--line);
  padding: .8rem;
  background: var(--paper);
}

.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .75rem; }

.article-sources, .article-faq {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

.article-sources h2, .article-faq h2 { font-size: clamp(1.75rem, 2.7vw, 2.25rem); }
.article-sources ul { margin-bottom: 0; padding-left: 1.25rem; }
.article-sources li { margin-bottom: .5rem; }
.article-sources li > span { color: var(--muted); font-size: .85rem; }

.article-faq dl { margin-bottom: 0; }
.article-faq dl > div { padding-block: .8rem; border-bottom: 1px solid var(--line); }
.article-faq dt { font-weight: 700; }
.article-faq dd { margin: .25rem 0 0; }

.related { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.property-grid { padding: 0; margin-block: 1rem 0; list-style: none; }
.property-card { overflow: hidden; }

.property-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 13;
  object-fit: cover;
  background: #dde6d9;
}

.property-copy { padding: 1.15rem; }
.property-place { margin-bottom: .6rem; color: var(--muted); font-size: .8rem; }
.property-price { margin-block: .55rem .7rem; font-weight: 700; }
.property-price > span { color: var(--muted); font-size: .8rem; }
.text-link { font-weight: 700; text-underline-offset: .18em; }
.return-link { margin-bottom: 2.5rem; }

.ad-slot {
  display: grid;
  align-content: start;
  padding: .6rem;
  min-width: 0;
  min-height: 6.25rem;
  border: 1px dashed var(--line);
  border-radius: .25rem;
  color: var(--muted);
  text-align: center;
  font: .7rem/1.2 var(--sans);
}

.ad-slot ins { display: block; min-width: 0; }
.ad-slot--top { margin-block: 1.4rem 0; }
.ad-slot--sidebar { min-height: 15.625rem; }
.ad-slot--inline { margin-block: 1.65rem; min-height: 10rem; }

.site-footer { border-top: 1px solid var(--line); background: #edf0e5; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: baseline; padding-block: 1.45rem; font-size: .85rem; }
.footer-brand { font-weight: 700; text-underline-offset: .18em; }
.photo-credit { flex: 0 0 100%; color: var(--muted); font-size: .75rem; }
.page-empty > a { margin-top: 1rem; }

@media (max-width: 56rem) {
  .shell { width: min(100% - 3rem, 76rem); }
  .region-grid, .post-grid, .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid--sidebar { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
  .shell { width: min(100% - 2rem, 76rem); }
  .header-inner { min-height: 0; padding-block: .85rem; flex-wrap: wrap; gap: .8rem 1rem; }
  .main-nav { flex: 1 0 100%; order: 1; justify-content: space-between; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 2rem 1.5rem; gap: 1.15rem; }
  .hero h1 { max-width: 12ch; }
  .hero-copy { padding: 0; }
  .hero figcaption { text-align: left; }
  .section { padding-block: 1.8rem; }
  .region-card { padding: .65rem .75rem; }
  .post-grid, .property-grid { grid-template-columns: minmax(0, 1fr); }
  .partnership { flex-direction: column; align-items: start; }
  .page-heading, .article-heading, .page-empty { padding-block: 1.8rem; }
}

@media (max-width: 25rem) {
  .brand { font-size: .9rem; gap: .5rem; }
  .brand-mark { width: 2rem; height: 2rem; flex-basis: 2rem; }
  .brand-mark::before { top: .4rem; }
  .brand-mark::after { top: .75rem; }
  .header-cta { font-size: .77rem; padding-inline: .5rem; }
}
