/* Atelier Cabin — homepage mockup (simple, open, white space) */

:root {
  --ink: #161616;
  --ink-soft: #444;
  --muted: #757575;
  --line: #ececec;
  --paper: #ffffff;
  --surface: #fafafa;
  --accent: #161616;
  --radius: 0;
  --max: 1120px;
  --space: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 11vw, 8rem);
  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", "Georgia", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Header — light, minimal */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.65;
}

.main-nav {
  display: flex;
  gap: 2.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

/* Hero — generous air */
.hero {
  padding: clamp(5rem, 14vw, 9rem) var(--space) clamp(4rem, 10vw, 7rem);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 2rem;
  max-width: 14ch;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 2.75rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  padding-left: 0.25rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #ccc;
}

.btn-ghost:hover {
  text-decoration-color: var(--ink);
}

/* Sections */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.65;
}

.section-header .eyebrow {
  margin-bottom: 1rem;
}


/* Category filters — text links with | dividers */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 1.25rem;
}

.filter-chip {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.25rem 0;
  margin: 0;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1.4;
}

.filter-chip + .filter-chip::before {
  content: "|";
  display: inline-block;
  margin: 0 0.85rem;
  color: var(--line);
  font-weight: 400;
  pointer-events: none;
}

.filter-chip:hover {
  color: var(--ink);
}

.filter-chip.is-active {
  color: var(--ink);
}

.filter-chip.is-active:hover {
  color: var(--ink);
}

.category-archives {
  margin: 0 0 2.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.category-archives a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 0.15rem;
}

.category-archives a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-card.is-filtered-out,
.project-card[hidden] {
  display: none !important;
}

/* Category archive pages */
.category-page .section-header {
  margin-bottom: 2.5rem;
}

.category-page .category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 2.75rem;
}

.category-page .category-nav a {
  display: inline;
  border: 0;
  padding: 0.25rem 0;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
}

.category-page .category-nav a + a::before {
  content: "|";
  display: inline-block;
  margin: 0 0.85rem;
  color: var(--line);
  font-weight: 400;
  pointer-events: none;
}

.category-page .category-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.category-page .category-nav a.is-current {
  color: var(--ink);
  background: transparent;
  border: 0;
}

.category-empty {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Case studies — open grid, no card boxes */
.case-studies {
  padding: var(--section-y) 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 2.75rem;
}

.project-card {
  background: transparent;
  border: none;
  transition: opacity 0.2s;
}

.project-card:hover {
  opacity: 0.92;
}


.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 1.35rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.02);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
}

.card-body {
  padding: 0.25rem 0 0;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
  line-height: 1.5;
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
  max-width: 36rem;
}


/* Weekly — airy list, soft dividers only */
.weekly {
  padding: var(--section-y) 0;
  background: var(--surface);
}

.weekly-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.weekly-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.weekly-item:last-child {
  border-bottom: 1px solid var(--line);
}

.weekly-item time {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.35rem;
}

.weekly-content h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.weekly-content h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.weekly-content p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 38rem;
  font-size: 0.975rem;
  line-height: 1.65;
}

.weekly-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
  border: none;
}

/* About */
.about-teaser {
  padding: var(--section-y) 0;
}

.about-inner {
  max-width: 40rem;
}

.about-teaser .eyebrow {
  margin: 0 0 0.75rem;
}

.about-teaser h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  margin: 0 0 1.75rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.about-teaser p {
  color: var(--ink-soft);
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-partners {
  margin-top: 2rem !important;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 1rem !important;
  color: var(--ink-soft) !important;
}

.about-partners a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-ceo {
  margin-top: 2.25rem !important;
  font-size: 0.95rem !important;
  color: var(--ink) !important;
}


/* Subscribe CTA — quiet header link + inline form */
.btn-subscribe-header {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent;
  color: var(--muted);
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-subscribe-header:hover {
  color: var(--ink);
  text-decoration: none;
  opacity: 1;
}

.main-nav .nav-subscribe {
  color: var(--muted);
}

.main-nav .nav-subscribe:hover {
  color: var(--ink);
}

.subscribe {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.subscribe-inner {
  max-width: 34rem;
}

.subscribe .section-header {
  margin-bottom: 1.75rem;
}

.subscribe .section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
}

.subscribe-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  max-width: 26rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s;
}

.subscribe-form:focus-within {
  border-bottom-color: var(--ink);
}

.subscribe-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  box-shadow: none;
}

.subscribe-input::placeholder {
  color: var(--muted);
}

.subscribe-input:focus {
  border: 0;
  outline: none;
}

.subscribe-submit {
  flex: 0 0 auto;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  text-decoration: none;
  white-space: nowrap;
}

.subscribe-submit:hover {
  opacity: 0.65;
}

.subscribe-thanks {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer — calm, open */
.site-footer {
  background: var(--ink);
  color: #b8b8b4;
  padding: clamp(3.5rem, 8vw, 5rem) var(--space) 2.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
}

.footer-brand .logo {
  color: #f5f5f3;
  display: inline-block;
  margin-bottom: 1.1rem;
}

.footer-brand p {
  margin: 0;
  max-width: 26rem;
  font-size: 0.925rem;
  line-height: 1.65;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-content: start;
  justify-content: flex-end;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-nav a {
  color: #b8b8b4;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #f5f5f3;
  text-decoration: none;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid #2a2a2a;
  font-size: 0.75rem;
  color: #777;
}

/* Responsive */
@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .weekly-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 2rem 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    padding: 0.75rem var(--space) 1.25rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.9rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-subscribe-header {
    display: none;
  }

  .subscribe-form {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }

  .subscribe-submit {
    margin-left: auto;
  }

  .main-nav .nav-subscribe {
    color: var(--ink);
    font-weight: 500;
  }

  .header-inner {
    position: relative;
  }

  .hero h1 {
    max-width: none;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
}


@media (min-width: 721px) {
  .main-nav .nav-subscribe {
    display: none;
  }
}

/* =========================================================
   Case study page — Brunswick Lane House template
   ========================================================= */

.cs-page {
  padding-bottom: 0;
}

.cs-hero {
  margin: 0;
  width: 100%;
  max-height: min(78vh, 720px);
  overflow: hidden;
  background: var(--surface);
}

.cs-hero img {
  width: 100%;
  height: min(78vh, 720px);
  object-fit: cover;
}

.cs-title-block {
  padding-top: clamp(3.25rem, 8vw, 5.75rem);
  padding-bottom: clamp(2.75rem, 5vw, 3.75rem);
}

.cs-title-block h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 1.1rem;
  max-width: 16ch;
}

.cs-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 2.25rem;
  line-height: 1.5;
}

.cs-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0;
}

/* Fact strip — denser architect facts */
.cs-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 2rem;
  padding-top: 2.75rem;
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.cs-facts div {
  min-width: 0;
}

.cs-facts dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.cs-facts dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
}

/* Body prose — linger-worthy */
.cs-body {
  max-width: 38rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.cs-section {
  margin-bottom: clamp(3.25rem, 7vw, 4.5rem);
}

.cs-section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 1.35rem;
}

.cs-section p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.8;
}

.cs-section p:last-child {
  margin-bottom: 0;
}

.cs-list {
  margin: 1.25rem 0 0;
  padding: 0 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.cs-list li {
  margin-bottom: 0.45rem;
}

.cs-list li:last-child {
  margin-bottom: 0;
}

/* Pull quote */
.cs-pullquote {
  margin: clamp(3rem, 7vw, 4.5rem) 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--ink);
  max-width: 34rem;
}

.cs-pullquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

.cs-pullquote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.cs-figure {
  margin: clamp(3rem, 7vw, 4.5rem) 0;
  max-width: none;
}

.cs-figure img {
  width: 100%;
  height: auto;
  background: var(--surface);
}

.cs-figure figcaption,
.cs-gallery-grid figcaption,
.cs-plan-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.cs-body .cs-figure {
  margin-left: 0;
  margin-right: 0;
}






/* Gallery */
.cs-gallery {
  padding: var(--section-y) 0;
  background: var(--surface);
}

.cs-gallery .section-header {
  margin-bottom: 2.75rem;
}

.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.75rem 1.75rem;
}

.cs-gallery-grid figure {
  margin: 0;
}

.cs-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee;
}

/* Floor plans — only when original drawings are available */
.cs-plan {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cs-plan .section-header {
  margin-bottom: 2.75rem;
}

.cs-plan .section-header h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.cs-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem 2.5rem;
  align-items: start;
}

.cs-plan-figure {
  margin: 0;
}

.cs-plan-figure img,
.cs-plan-figure svg {
  width: 100%;
  height: auto;
  background: #fff;
  display: block;
}

.cs-plan-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.cs-plan-figure figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

/* Related */
.cs-related {
  padding: var(--section-y) 0;
}

.cs-related-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
}

.cs-related-grid .card-excerpt {
  display: none;
}

@media (max-width: 900px) {
  .cs-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .cs-plan-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 860px) {
  .cs-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.5rem;
  }

  .cs-gallery-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .cs-related-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cs-hero img,
  .cs-hero {
    height: auto;
    max-height: none;
  }

  .cs-hero img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

@media (max-width: 520px) {
  .cs-facts {
    grid-template-columns: 1fr 1fr;
  }

  .cs-pullquote {
    padding-left: 1.1rem;
  }
}
