/* Rachel Bloch – Interior Design */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f3;
  --text: #1a1a1a;
  --text-muted: #555555;   /* 7.4:1 on white */
  --line: #d6d4d0;
  --accent: #1a1a1a;
  --focus: #0b57d0;
  --header-h: 96px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --text-scale: 1;
  --font: "Heebo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--text-scale)); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a[href^="mailto:"], a[href^="tel:"] { overflow-wrap: anywhere; }
h1, h2, h3 { font-weight: 300; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul { padding: 0; }
[lang="en"] { direction: ltr; unicode-bidi: isolate; }
kbd { font-family: inherit; border: 1px solid var(--line); border-radius: 4px; padding: 0 .35em; font-size: .9em; }

/* ---------- accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 1000;
  background: var(--text); color: var(--bg); padding: 12px 20px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter);
  min-height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.logo { grid-column: 2; display: block; }
.logo img { width: 116px; height: auto; }
.site-nav { grid-column: 3; justify-self: end; }
.site-nav ul { list-style: none; margin: 0; display: flex; direction: ltr; gap: clamp(12px, 2.4vw, 32px); }
.site-nav a {
  text-decoration: none; font-size: .95rem; letter-spacing: .04em;
  padding: 10px 2px; display: inline-block; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .header-inner { grid-template-columns: auto 1fr; }
  .logo { grid-column: 1; }
  .logo img { width: 84px; }
  .nav-toggle {
    display: inline-flex; grid-column: 2; justify-self: end; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--text);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative; content: "";
  }
  .nav-toggle-bars::before { position: absolute; top: -7px; }
  .nav-toggle-bars::after { position: absolute; top: 7px; }
  .site-nav { grid-column: 1 / -1; justify-self: stretch; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0 16px; direction: rtl; }
  .site-nav a { padding: 12px 0; width: 100%; font-size: 1.1rem; }
}

/* ---------- layout ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--gutter); }
.section + .section { padding-top: 0; }
.section-title {
  text-align: center; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .02em;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-title .title-he { display: block; font-size: .42em; letter-spacing: .1em; color: var(--text-muted); margin-top: .4em; }
.section-title .title-he::before { content: "◇"; display: block; font-size: .7em; margin-bottom: .3em; }
.more { text-align: center; margin-top: 40px; }

.btn {
  display: inline-block; font: inherit; font-weight: 400; letter-spacing: .06em;
  background: var(--accent); color: var(--bg); border: 1px solid var(--accent);
  padding: 12px 40px; min-height: 48px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--bg); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--bg); }

/* ---------- hero quote ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(24px, 4vw, 48px); }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote-hero blockquote p {
  font-size: clamp(1.6rem, 4.4vw, 2.6rem); letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; margin: 0;
}
.quote figcaption { font-size: .95rem; color: var(--text-muted); margin-top: 16px; }
.quote-hero { text-align: left; }
.quote-hero figcaption { padding-left: 25%; }
.about-short .quote, .section > .quote { text-align: center; margin-top: 56px; }
.section > .quote blockquote p, .about-short .quote blockquote p { font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: .06em; margin: 0; }

/* ---------- cards ---------- */
.card-grid { list-style: none; margin: 0; display: grid; gap: clamp(24px, 4vw, 48px); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; } }

.card a, .press-card a, .press-card > div { display: block; text-decoration: none; }
.card img, .press-card img:first-child {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-soft);
  transition: opacity .3s ease;
}
.card a:hover img, .press-card a:hover img:first-child { opacity: .85; }
.card-title { display: block; text-align: center; margin-top: 14px; letter-spacing: .08em; font-size: 1rem; }
.card a:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }

.press-card { text-align: center; }
.press-logo { height: 36px; width: auto; margin: 16px auto 8px; object-fit: contain; }
.press-source { display: block; font-size: .85rem; letter-spacing: .08em; color: var(--text-muted); }
.press-title { display: block; font-size: 1.15rem; margin-top: 4px; }
.press-card a:hover .press-title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-photo { width: 100%; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.prose { font-size: 1.05rem; max-width: 68ch; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 20px; background: var(--bg-soft); }
.service h3 { font-size: 1.4rem; font-weight: 400; }

/* ---------- project page ---------- */
.project-head { text-align: center; margin-bottom: 32px; }
.project-title { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .06em; margin-bottom: .2em; }
.project-type { display: block; font-size: .45em; letter-spacing: .14em; color: var(--text-muted); }
.project-meta { margin: 0; }
.project-credit { color: var(--text-muted); font-size: .95rem; }
.project-text { margin: 0 auto 48px; text-align: center; }

.gallery { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery li { margin: 0; }
.gallery-item { display: block; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.gallery-item:hover img { opacity: .88; }

.project-nav { display: flex; justify-content: center; gap: 40px; margin-top: 48px; }
.project-nav a { padding: 10px; letter-spacing: .06em; }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: rgba(10,10,10,.96); color: #fff;
}
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 72px 24px; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; width: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 12px; font-size: .95rem; }
.lightbox button {
  position: absolute; background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.6);
  font: inherit; cursor: pointer; min-width: 48px; min-height: 48px;
}
.lightbox button:hover { background: #fff; color: #000; }
.lightbox :focus-visible { outline-color: #8ab4ff; }
.lb-close { top: 12px; inset-inline-end: 12px; padding: 8px 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; }
.lb-prev { inset-inline-start: 12px; }
.lb-next { inset-inline-end: 12px; }
@media (max-width: 760px) { .lightbox figure { padding: 64px 8px 80px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- contact ---------- */
.contact { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--gutter); border-top: 1px solid var(--line); }
.contact-cta { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.contact-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.form-note, .form-status, .field-wide, .contact-form .btn { grid-column: 1 / -1; }
.form-note { color: var(--text-muted); font-size: .9rem; margin: 0; }
@media (max-width: 760px) { .contact-form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .95rem; margin-bottom: 6px; font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid #767676; border-radius: 0; padding: 10px 12px; min-height: 48px;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.field-error { color: #b3261e; font-size: .9rem; margin: 4px 0 0; min-height: 0; font-weight: 400; }
.field-error:empty { display: none; }
.form-status { margin: 0; font-weight: 400; }
.contact-form .btn { justify-self: center; }
.contact-details { font-style: normal; text-align: center; margin-top: 40px; }
.contact-details p { margin: 4px 0; }

/* ---------- text pages ---------- */
.prose-page { max-width: 820px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose-page h2 { font-size: 1.4rem; font-weight: 400; margin-top: 2em; }
.prose-page ul { padding-inline-start: 1.4em; }
.prose-page li { margin-bottom: .5em; }
.prose-page .contact-list { list-style: none; padding: 0; }
.updated { color: var(--text-muted); }

/* ---------- scanned article ---------- */
.scan-article { max-width: 980px; }
.scan-pages { display: grid; gap: 24px; }
.scan-pages img { width: 100%; border: 1px solid var(--line); }
.reveal-on-focus {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.reveal-on-focus:focus {
  position: static; width: auto; height: auto; clip: auto; white-space: normal;
  display: inline-block; margin-bottom: 16px; padding: 12px 20px; background: var(--text); color: var(--bg); text-decoration: none;
}
/* Text version: read by screen readers, shown on screen only when asked for */
.article-text:not(:target):not(:focus-within) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
html.a11y-textversion .article-text:not(:target):not(:focus-within) {
  position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
}
.article-text { max-width: 72ch; margin: 40px auto 0; padding: 24px; border: 1px solid var(--line); }
.article-text h2 { font-size: 1.5rem; font-weight: 400; }
.article-text h3 { font-size: 1.2rem; font-weight: 500; margin-top: 1.6em; }
.article-text ul { padding-inline-start: 1.4em; }
.article-note { color: var(--text-muted); }
html.a11y-textversion .scan-pages { display: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 32px var(--gutter) 96px; font-size: .9rem; }
.social { list-style: none; margin: 0 0 16px; display: flex; justify-content: center; gap: 8px; }
.social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-links { margin: 0 0 4px; }
.footer-links a { padding: 8px; display: inline-block; }
.copyright { color: var(--text-muted); margin: 0; }

