/* Nathalie Sharp — public site */
:root {
  --ink: #444444;
  --strong: #111111;
  --ground: #ffffff;
  --muted: #7a7a7a;
  --line: #e6e4e0;
  --soft: #f3f1ee;
  --link: #015362;
  --error: #b3261e;
  --wide: 1006px;
  --content: 750px;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--strong); outline-offset: 3px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--strong); color: #fff; padding: 8px 12px; z-index: 20; }

/* ---------- header: title left, vertical menu top-right ---------- */
.site-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 32px max(16px, 32px) 0; position: relative; }
.site-title { font-family: var(--serif); font-size: 26px; text-transform: uppercase; letter-spacing: .04em; color: var(--strong); text-decoration: none; line-height: 1.2; }
.nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 110px; }
.nav a { color: var(--strong); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; line-height: 1.6; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration-thickness: 2px; }
.menu-toggle { display: none; }

main { padding: 0 16px; }
.home-title, .entry-head h1 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; color: #444; margin: 0; }
.home-title { max-width: var(--content); margin: 32px auto 48px; }
.entry { max-width: var(--content); margin: 0 auto; }
.entry-wide { max-width: var(--wide); }
.entry-head { padding: 48px 0 28px; }
.entry-wide .entry-head { max-width: var(--content); margin: 0 auto; }
.intro { margin-top: 12px; }
.preview-note, .notice { background: var(--soft); padding: 12px 16px; font-size: 15px; }
.notice-error { color: var(--error); }
.empty { color: var(--muted); text-align: center; }

/* ---------- homepage compositions ---------- */
.home { max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 110px; padding-bottom: 40px; }
.hs { display: grid; gap: 24px; align-items: end; margin: 0 auto; width: 100%; }
.hs figure { margin: 0; }
.hs-img img { display: block; width: 100%; height: auto; }
.hs-img a { display: block; }
.hs-empty { background: var(--soft); min-height: 140px; }
.hs-text { text-align: center; padding: 0 8px; font-size: 15px; line-height: 1.6; }
.hs-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; color: var(--strong); margin: 0 0 14px; }
.hs-text p { margin: 0 0 12px; }
.hs-link { font-size: 15px; }

.hs-intro { max-width: var(--wide); grid-template-columns: 1fr 2fr 1fr; align-items: center; }
.hs-quote { margin: 0; text-align: right; font-family: var(--serif); font-size: 20px; line-height: 1.3; border-right: 2px solid var(--strong); padding-right: 20px; color: #444; }
.hs-quote p { margin: 0; }
.hs-intro .hs-img img { border-radius: 59px; }
.hs-aside { margin: 0; align-self: start; font-family: var(--serif); font-size: 18px; line-height: 1.2; }

.hs-feature { max-width: var(--wide); grid-template-columns: 70% 30%; gap: 0 24px; padding-right: 24px; }
.hs-feature .hs-main { display: grid; grid-template-columns: 1fr 66%; align-items: start; gap: 16px; }
.hs-feature .hs-main .hs-text { align-self: center; }
.hs-feature .hs-img-1 { aspect-ratio: 4 / 5; overflow: hidden; }
.hs-feature .hs-img-1 img, .hs-feature .hs-img-1 a { height: 100%; object-fit: cover; }
.hs-side { display: flex; flex-direction: column; gap: 16px; }

.hs-offset { max-width: var(--wide); grid-template-columns: 25% 40% 35%; gap: 0 24px; padding-right: 48px; }
.hs-offset .hs-main { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.hs-offset .hs-img-1 { aspect-ratio: 3 / 4; overflow: hidden; }
.hs-offset .hs-img-1 img, .hs-offset .hs-img-1 a { height: 100%; object-fit: cover; }

.hs-columns { max-width: 1440px; grid-template-columns: 44% 44.45% 1fr; align-items: start; padding: 0 24px; }
.hs-columns .hs-col { display: flex; flex-direction: column; gap: 24px; }
.hs-columns .hs-main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.hs-columns .hs-img-1 { aspect-ratio: 4 / 5; overflow: hidden; }
.hs-columns .hs-img-1 img, .hs-columns .hs-img-1 a { height: 100%; object-fit: cover; }

.hs-trio { max-width: 1440px; grid-template-columns: 50% 25% 1fr; padding: 0 24px; }
.hs-trio .hs-text { text-align: left; }

.hs-wide, .hs-wide-alt { max-width: var(--wide); display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
.hs-top { display: grid; grid-template-columns: 66.66% 1fr; gap: 24px; align-items: end; }
.hs-wide-alt .hs-top { grid-template-columns: 75% 1fr; }
.hs-top .hs-text { text-align: left; }
.hs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.hs-wide-alt .hs-row { grid-template-columns: 20% 30% 1fr; }

.hs-pair { max-width: var(--wide); grid-template-columns: 33% 1fr; }
.hs-pair .hs-col { display: flex; flex-direction: column; gap: 16px; }
.hs-pair .hs-text { text-align: left; }

/* ---------- justified mosaic ---------- */
.mosaic { display: flex; flex-wrap: wrap; gap: 4px; }
.mosaic-item { position: relative; display: block; overflow: hidden; background: var(--soft); }
.mosaic-ratio { display: block; }
.mosaic-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease, transform .6s ease; }
.mosaic-item:hover img { opacity: .88; }
.mosaic-fill { flex-grow: 1000; }

/* ---------- viewer ---------- */
dialog.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, .96); color: #eee; }
dialog.viewer[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
dialog.viewer::backdrop { background: rgba(0, 0, 0, .8); }
.viewer figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; justify-content: center; padding: 24px 0; }
.viewer img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.viewer figcaption { text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.viewer-title { font-family: var(--serif); font-weight: 400; font-size: 22px; color: #fff; }
.viewer-details, .viewer-description { color: #bbb; }
.viewer button { background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; height: 64px; }
.viewer-close { position: absolute; top: 8px; right: 12px; font-size: 36px !important; }

/* ---------- pages, blocks, contact ---------- */
.blocks > * + * { margin-top: 28px; }
.prose { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 400; color: var(--strong); }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 23px; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--strong); font-family: var(--serif); font-size: 21px; }
.grid { display: grid; gap: 5px; margin-block: 5px; }
.tile { position: relative; overflow: hidden; min-height: 0; background: var(--soft); }
.tile > a { position: absolute; inset: 0; display: block; }
/* images are taken out of the flow so a large photo can never stretch its row */
.grid img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-empty { position: absolute; inset: 0; display: block; }
.hover-tile .overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); color: #000; font-weight: 600; opacity: 0; transition: opacity .25s; pointer-events: none; }
.hover-tile:hover .overlay { opacity: 1; }
.block-image, .block-video { margin: 0; }
.block-image img { display: block; width: 100%; height: auto; }
.block-image.size-medium { max-width: 50%; } .block-image.size-small { max-width: 160px; }
figcaption { font-size: 14px; color: var(--muted); }
.embed { position: relative; aspect-ratio: 16 / 9; } .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.btn { display: inline-block; background: #111; color: #fff; border: 0; border-radius: 999px; padding: 8px 22px; font: inherit; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #000; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide, .contact-form > p { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--strong); }
.optional { color: var(--muted); font-weight: 300; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--strong); border: 1px solid #cfcdc8; border-radius: 0; padding: 10px 12px; width: 100%; background: #fff; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 14px; }
.contact-info { margin-top: 32px; color: var(--muted); }
.contact-info p { margin: 2px 0; }

/* ---------- footer ---------- */
.site-footer { max-width: var(--content); margin: 100px auto 0; padding: 28px 16px 40px; border-top: 1px solid var(--line); font-size: 14px; }
.site-footer p { margin: 0 0 4px; }
.footer-title { font-family: var(--serif); font-size: 18px; color: var(--strong); text-transform: uppercase; }
.credit { color: var(--muted); margin-top: 12px !important; }

@media (prefers-reduced-motion: reduce) { .mosaic-item img, .hover-tile .overlay { transition: none; } }

@media (max-width: 780px) {
  .site-header { padding: 16px 16px 0; align-items: center; }
  .site-title { font-size: 22px; }
  .js .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
  .menu-toggle .bar { display: block; width: 26px; height: 2px; background: var(--strong); transition: transform .2s; }
  .open .menu-toggle .bar:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
  .open .menu-toggle .bar:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); gap: 8px; }
  .js .open .nav { display: flex; }
  .nav a { font-size: 15px; }
  .home { gap: 64px; }
  .hs, .hs-feature, .hs-offset, .hs-columns, .hs-trio, .hs-pair, .hs-intro { grid-template-columns: 1fr; padding: 0; gap: 16px; }
  .hs-feature .hs-main, .hs-offset .hs-main, .hs-columns .hs-main { grid-template-columns: 1fr 1fr; }
  .hs-offset .hs-main { grid-column: auto; }
  .hs-side { flex-direction: row; }
  .hs-top, .hs-wide-alt .hs-top { grid-template-columns: 1fr; }
  .hs-row, .hs-wide-alt .hs-row { grid-template-columns: 1fr 1fr; }
  .hs-row .hs-img-4 { grid-column: 1 / -1; }
  .hs-quote { text-align: center; border-right: 0; padding: 0; }
  .hs-aside { text-align: center; }
  .hs-intro .hs-img img { border-radius: 32px; }
  .mosaic-item { flex-basis: calc(50% - 2px) !important; max-width: none !important; }
  .contact-form { grid-template-columns: 1fr; }
  dialog.viewer[open] { grid-template-columns: 40px minmax(0, 1fr) 40px; }
}
