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

:root {
  --ink: #0e1224;
  --ink2: #1a1d38;
  --blue: #2e2d87;
  --blue2: #3a39a8;
  --silver: #c2c3cb;
  --paper: #f7f6f2;
  --paper2: #efeee9;
  --muted: #6b6e7d;
  --line: rgba(14, 18, 36, 0.10);
  --line2: rgba(14, 18, 36, 0.06);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 104px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue2); outline-offset: 4px; }

#topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 48px;
  background: rgba(247, 246, 242, 0.94);
  border-bottom: 1px solid var(--line2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 42px; height: 42px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: 0.02em; }
.nav-logo-tag { margin-top: 4px; color: var(--blue); font-size: 9px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }
.nav-cta { padding: 12px 22px; background: var(--ink); color: #fff !important; border-radius: 2px; font-size: 12px !important; letter-spacing: 0.08em !important; text-transform: uppercase; }
.nav-cta:hover { background: var(--blue); }
.nav-toggle { display: none; padding: 9px 11px; background: transparent; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.nav-toggle span { position: relative; display: block; width: 20px; height: 1.5px; background: var(--ink); }
.nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); content: ''; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.container { width: min(1180px, calc(100% - 96px)); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 1px; background: currentColor; content: ''; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue); }
.btn-outline { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.blog-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 70vh;
  padding: 170px 0 88px;
  color: #fff;
  background: linear-gradient(100deg, rgba(14, 18, 36, 0.90) 0%, rgba(14, 18, 36, 0.68) 52%, rgba(14, 18, 36, 0.25) 100%), url('/assets/photos/portfolio/palm-beach/palm-beach-08.jpeg') center/cover;
}
.blog-hero .seo-breadcrumb, .article-hero .seo-breadcrumb { margin-bottom: 34px; }
.blog-hero .eyebrow { color: var(--silver); }
.blog-hero h1 { max-width: 820px; font-family: var(--font-head); font-size: clamp(48px, 6.5vw, 88px); font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.blog-hero h1 em { color: var(--silver); font-weight: 400; }
.blog-hero p { max-width: 650px; margin-top: 26px; color: rgba(255, 255, 255, 0.80); font-size: 19px; font-weight: 300; line-height: 1.7; }

.blog-section { padding: 104px 0; }
.section-head { display: grid; grid-template-columns: 1fr minmax(280px, 0.72fr); gap: 70px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
.section-head h2 em { color: var(--blue); font-weight: 400; }
.section-head p { color: var(--muted); font-size: 17px; font-weight: 300; }

.featured-post { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 480px; overflow: hidden; background: #fff; border: 1px solid var(--line2); border-radius: 3px; text-decoration: none; box-shadow: 0 24px 70px rgba(14, 18, 36, 0.08); transition: transform 0.3s, box-shadow 0.3s; }
.featured-post:hover { transform: translateY(-5px); box-shadow: 0 30px 80px rgba(14, 18, 36, 0.13); }
.featured-image { min-height: 430px; background: url('/assets/optimized/project-mosman-720.webp') center/cover; }
.featured-image img, .article-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-image-quote { background-image: url('/assets/photos/project-entry-exterior.jpg'); }
.featured-copy { display: flex; flex-direction: column; justify-content: center; padding: 54px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.featured-copy h2 { margin: 24px 0 18px; font-family: var(--font-head); font-size: clamp(32px, 3.5vw, 48px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.featured-copy p { color: var(--muted); font-size: 16px; font-weight: 300; line-height: 1.75; }
.read-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.read-link::after { width: 34px; height: 1px; background: var(--blue); content: ''; transition: width 0.2s; }
.featured-post:hover .read-link::after { width: 48px; }

.topic-section { background: var(--paper2); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.topic-card { display: flex; min-height: 230px; flex-direction: column; padding: 30px; background: #fff; border: 1px solid var(--line2); border-radius: 3px; text-decoration: none; transition: transform 0.25s, border-color 0.25s; }
.topic-card:hover { transform: translateY(-4px); border-color: rgba(46, 45, 135, 0.25); }
.topic-card span { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.topic-card h3 { margin: 48px 0 12px; font-family: var(--font-head); font-size: 23px; line-height: 1.2; }
.topic-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

.article-hero { padding: 144px 0 58px; background: var(--ink); color: #fff; }
.article-hero .eyebrow { color: var(--silver); }
.article-hero h1 { max-width: 980px; font-family: var(--font-head); font-size: clamp(44px, 6.2vw, 78px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; }
.article-hero .standfirst { max-width: 760px; margin-top: 26px; color: rgba(255, 255, 255, 0.76); font-size: 19px; font-weight: 300; line-height: 1.7; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; color: var(--silver); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.article-image { width: min(1180px, calc(100% - 96px)); height: min(62vw, 650px); min-height: 380px; margin: 0 auto; overflow: hidden; background: url('/assets/optimized/project-mosman-720.webp') center/cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 250px; gap: 90px; align-items: start; padding: 86px 0 108px; }
.article-body { min-width: 0; }
.article-body > p:first-child { color: var(--ink2); font-family: var(--font-head); font-size: 25px; line-height: 1.55; }
.article-body h2 { margin: 58px 0 18px; color: var(--ink); font-family: var(--font-head); font-size: clamp(30px, 3vw, 40px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.16; }
.article-body h3 { margin: 34px 0 12px; font-family: var(--font-head); font-size: 23px; font-weight: 600; line-height: 1.25; }
.article-body p { margin-bottom: 22px; color: #343748; font-size: 17px; line-height: 1.82; }
.article-body ul, .article-body ol { display: flex; flex-direction: column; gap: 11px; margin: 0 0 26px 22px; color: #343748; font-size: 17px; line-height: 1.7; }
.article-body a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--blue2); }
.checklist { margin: 38px 0 46px; padding: 30px 34px; background: var(--paper2); border-left: 3px solid var(--blue); }
.checklist h2 { margin: 0 0 18px; font-size: 27px; }
.checklist ul { margin-bottom: 0; }
.article-note { margin: 34px 0; padding: 26px 28px; background: #fff; border: 1px solid var(--line); }
.article-note p:last-child { margin-bottom: 0; }
.article-aside { position: sticky; top: 112px; padding: 26px; background: var(--paper2); border: 1px solid var(--line2); }
.article-aside h2 { font-family: var(--font-head); font-size: 22px; line-height: 1.2; }
.article-aside ul { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; list-style: none; }
.article-aside a { color: var(--muted); font-size: 13px; line-height: 1.45; text-decoration: none; }
.article-aside a:hover { color: var(--blue); }

.blog-cta { padding: 94px 0; background: var(--blue); color: #fff; }
.blog-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.blog-cta h2 { max-width: 760px; font-family: var(--font-head); font-size: clamp(34px, 4vw, 54px); font-weight: 500; line-height: 1.1; }
.blog-cta p { max-width: 660px; margin-top: 16px; color: rgba(255, 255, 255, 0.76); font-weight: 300; }
.blog-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.blog-cta .btn-dark { background: #fff; color: var(--ink); }
.blog-cta .btn-dark:hover { background: var(--silver); }

footer { padding: 58px 0 30px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 60px; padding-bottom: 42px; }
.footer-brand { max-width: 380px; }
.footer-brand-row { display: flex; align-items: center; gap: 14px; }
.footer-brand-row img { width: 46px; height: 46px; }
.footer-brand-name { font-family: var(--font-head); font-size: 21px; font-weight: 600; }
.footer-brand p { margin-top: 18px; color: rgba(255, 255, 255, 0.58); font-size: 14px; line-height: 1.75; }
.footer-title { margin-bottom: 16px; color: var(--silver); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 9px; list-style: none; }
.footer-links a { color: rgba(255, 255, 255, 0.66); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.42); font-size: 12px; }

@media (max-width: 1040px) {
  .nav-links { gap: 20px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 50px; }
}

@media (max-width: 900px) {
  #topnav { padding: 0 24px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 12px 4px; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .container { width: min(100% - 48px, 1180px); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-image { min-height: 430px; }
  .section-head { grid-template-columns: 1fr; gap: 22px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; }
  .article-aside ul { display: grid; grid-template-columns: 1fr 1fr; }
  .blog-cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-logo-name { font-size: 15px; }
  .nav-logo-tag { font-size: 8px; }
  .container { width: min(100% - 36px, 1180px); }
  .blog-hero { min-height: 620px; padding: 150px 0 66px; background-position: 42% center; }
  .blog-hero p, .article-hero .standfirst { font-size: 17px; }
  .blog-section { padding: 76px 0; }
  .featured-image { min-height: 310px; }
  .featured-copy { padding: 34px 26px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 200px; }
  .article-hero { padding: 132px 0 48px; }
  .article-image { width: 100%; min-height: 330px; background-position: 48% center; }
  .article-layout { padding: 62px 0 82px; }
  .article-body > p:first-child { font-size: 22px; }
  .article-body p, .article-body ul, .article-body ol { font-size: 16px; }
  .checklist { padding: 26px 24px; }
  .article-aside ul { grid-template-columns: 1fr; }
  .blog-cta { padding: 74px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  body { background: #fff; color: #000; }
  header[role='banner'], footer, .blog-cta, .article-aside { display: none; }
  .article-hero { padding: 36px 0 28px; background: #fff; color: #000; }
  .article-hero .seo-breadcrumb, .article-hero .eyebrow { color: #333; }
  .article-hero .standfirst, .article-meta { color: #333; }
  .article-image { width: 100%; height: 300px; min-height: 0; }
  .article-layout { display: block; width: 100%; padding: 36px 0; }
  .article-body a { color: #000; }
}
