/* Nadine Issa — rebuilt from the Squarespace 7.1 site.
   Layout: Squarespace "fluid engine" grid (8 columns on phones, 24 on desktop), white page, red accent. */
:root {
  --white: #ffffff;
  --black: #000000;
  --accent: #ff0000;          /* Squarespace accent hsl(0,100%,50%) */
  --accent-dark: #8a0101;     /* darkAccent hsl(0,99%,27%) */
  --accent-light: #ff8080;    /* lightAccent hsl(0,100%,75%) */
  --line: #e6e6e6;
  --placeholder: #f4f2f2;

  /* Originals are Adobe Fonts: Orpheus Pro (headings) and Adobe Garamond Pro (body). */
  --font-head: "Cormorant Garamond", "orpheus-pro", Garamond, "Times New Roman", serif;
  --font-body: "EB Garamond", "adobe-garamond-pro", Garamond, "Times New Roman", serif;
  --font-mono: "Courier New", Courier, monospace;

  --h1: 4rem; --h2: 2.8rem; --h3: 2.2rem; --h4: 1.2rem;
  --p: 1.2rem; --p-large: 1.5rem; --p-small: 1rem;

  --max: 1400px;
  --pad: 4vw;
  --gap: 11px;
  /* sizes follow page width only: screen-height units loop inside frames that grow to fit the page */
  --sec-pad: clamp(24px, 3.3vw, 60px);
  color-scheme: light;
}
@media (max-width: 767px) {
  :root { --h1: 2.6rem; --h2: 2rem; --h3: 1.65rem; --h4: 1.1rem; --p: 1.08rem; --p-large: 1.25rem; --pad: 6vw; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: var(--font-body); font-size: var(--p); line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: var(--h1); } h2 { font-size: var(--h2); } h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); line-height: 1.5; }
p { margin: 1rem 0; }
.sqsrte-large { font-size: var(--p-large); line-height: 1.5; }
.sqsrte-small { font-size: var(--p-small); }
.sqsrte-text-color--darkAccent { color: var(--accent-dark); }
.sqsrte-text-color--accent { color: var(--accent); }
.sqsrte-text-color--white { color: var(--white); }
.sqsrte-text-color--dark { color: var(--black); }
.sqsrte-text-highlight { background-image: linear-gradient(transparent 58%, rgba(255, 0, 0, .22) 58%); }
pre { margin: 1rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { font-family: var(--font-mono); font-size: .9em; line-height: 1.55; }
blockquote { margin: 0; }
hr { border: 0; border-top: 1px solid currentColor; margin: 0; width: 100%; }

/* ---------- header ---------- */
.site-header { padding: 1.6rem var(--pad) .6rem; text-align: center; position: relative; }
.hdr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: var(--max); margin: 0 auto; }
.hdr-social { justify-self: start; font-size: .95rem; text-decoration: none; letter-spacing: .02em; }
.hdr-social:hover { color: var(--accent); }
.logo img { width: clamp(150px, 17vw, 245px); height: auto; }
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.1rem; margin-top: .6rem; font-size: 1rem; }
.nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: currentColor; }
.menu-btn { display: none; justify-self: end; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px 8px; }
.menu-btn span:not(.sr) { display: block; height: 1px; background: var(--black); margin: 6px 0; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 50; background: var(--white);
  padding: calc(120px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(24px, env(safe-area-inset-left, 0px)); }
.mnav nav { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; font-family: var(--font-head); font-size: 2rem; }
.mnav a { text-decoration: none; }
.mnav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.mnav-ig { font-family: var(--font-body); font-size: 1.05rem; margin-top: .8rem; }
@media (max-width: 767px) {
  .site-header { padding-top: 1rem; }
  .hdr-social { visibility: hidden; }
  .nav { display: none; }
  .menu-btn { display: block; position: relative; z-index: 60; }
  .logo img { width: clamp(130px, 40vw, 180px); }
  .logo { position: relative; z-index: 60; }
}

/* ---------- sections ---------- */
.sec { position: relative; isolation: isolate; }
.theme-white { background: var(--white); color: var(--black); }
.theme-black { background: var(--black); color: var(--white); }
.theme-dark { background: var(--accent-dark); color: var(--white); }
.theme-black .btn, .theme-dark .btn { color: var(--white); border-color: var(--white); }
.sec-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sec-bg img { width: 100%; height: 100%; object-fit: cover; }
.sec-ov { position: absolute; inset: 0; background: var(--white); }
.theme-black .sec-ov { background: var(--black); }
.theme-dark .sec-ov { background: var(--accent-dark); }

.sec-fe, .sec-empty { display: flex; flex-direction: column; justify-content: center; padding-block: var(--sec-pad); }
.sec-fe.va-bottom { justify-content: flex-end; }
.sec-fe.va-top { justify-content: flex-start; }
.sec-fe.h-small, .sec-empty.h-small { min-height: clamp(220px, 24vw, 340px); }
.sec-fe.h-medium, .sec-empty.h-medium { min-height: clamp(320px, 42vw, 620px); }
.sec-fe.h-large, .sec-empty.h-large { min-height: clamp(420px, 60vw, 900px); }

/* Squarespace fluid engine grid */
.fe {
  --g: calc(var(--pad) - var(--gap));
  display: grid; width: 100%;
  column-gap: var(--gap); row-gap: var(--gap);
  grid-template-columns: minmax(var(--g), 1fr) repeat(8, minmax(0, calc((var(--max) - var(--gap) * 7) / 8))) minmax(var(--g), 1fr);
  grid-template-rows: repeat(var(--rm), minmax(24px, auto));
}
.fb { grid-area: var(--am); min-width: 0; position: relative; }
@media (min-width: 768px) {
  .fe {
    --cw: min(var(--max), calc(100vw - var(--pad) * 2));
    grid-template-columns: minmax(var(--g), 1fr) repeat(24, minmax(0, calc((var(--max) - var(--gap) * 23) / 24))) minmax(var(--g), 1fr);
    grid-template-rows: repeat(var(--rd), minmax(calc(var(--cw) * .0215), auto));
  }
  .fb { grid-area: var(--ad); }
}
.fb-text > :first-child, .fb-text blockquote > :first-child { margin-top: 0; }
.fb-text > :last-child, .fb-text blockquote > :last-child { margin-bottom: 0; }
.fb-img > img, .fb-img > a { position: absolute; inset: 0; width: 100%; height: 100%; }
.fb-img img { width: 100%; height: 100%; object-fit: cover; }
.fb-img.contain img { object-fit: contain; }
.fb-img > a { display: block; }
.fb-line { display: flex; align-items: center; }
.fb-btn { display: flex; align-items: center; justify-content: center; }
.btn {
  display: inline-block; font-family: var(--font-body); font-size: 1rem; line-height: 1.2; text-decoration: none;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 300px; padding: .95em 2.1em;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent); color: var(--white); }
.fb-video { display: flex; align-items: center; justify-content: center; }
.vid-ph {
  width: 100%; max-height: 100%; aspect-ratio: var(--ar); background: var(--placeholder); color: #6b5d5d;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center;
  border: 1px dashed #cdbcbc; font-size: 1rem; padding: 1rem;
}
.fb-video .vid-ph { height: 100%; }
.vid { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; background: transparent; }
.vid-ph small { font-size: .8rem; opacity: .8; }
.vid-icon { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; }
.vid-icon::after { content: ""; position: absolute; left: 18px; top: 13px; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

/* ---------- galleries ---------- */
.sec-gallery { padding-block: var(--sec-pad); }
.gallery { margin: 0 auto; }
.gallery.w-full { padding-inline: var(--pad); max-width: calc(var(--max) + var(--pad) * 2); }
.gallery.w-inset { padding-inline: calc(var(--pad) * 2.5); max-width: calc(var(--max) * .8 + var(--pad) * 5); }
.gallery.w-full-bleed { padding-inline: 0; }
.g-item { display: block; overflow: hidden; cursor: zoom-in; background: #f7f7f7; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.g-item:hover img { transform: scale(1.03); }

.masonry { --mg: 20px; columns: 3; column-gap: var(--mg); }
.masonry > .g-item { break-inside: avoid; margin-bottom: var(--mg); aspect-ratio: var(--ar); }
.masonry.is-js { columns: auto; display: flex; gap: var(--mg); align-items: flex-start; }
.masonry .m-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--mg); }
.masonry .m-col > .g-item { margin: 0; }
@media (max-width: 767px) { .masonry { --mg: 10px; columns: 2; } }

.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gut); }
.grid > .g-item { aspect-ratio: var(--g-ar); }
@media (max-width: 767px) { .grid { grid-template-columns: 1fr; gap: min(var(--gut), 20px); } }

.strips { --rh: 300px; --sg: 10px; display: flex; flex-wrap: wrap; gap: var(--sg); }
.strips > .g-item { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--rh)); aspect-ratio: var(--ar); }
.strips::after { content: ""; flex: 10 1 calc(var(--rh) * 2); }
@media (max-width: 767px) { .strips { --rh: 160px; --sg: 6px; } }

/* ---------- books grid (portfolio) ---------- */
.sec-portfolio { padding: var(--sec-pad) var(--pad); }
.pf-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 22px; }
.pf-card { text-decoration: none; display: block; }
.pf-img { aspect-ratio: 2 / 3; overflow: hidden; background: #f7f7f7; }
.pf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pf-card:hover .pf-img img { transform: scale(1.04); }
.pf-title { font-size: var(--h4); margin: .8rem 0 0; text-align: left; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 14px; } }

/* ---------- pager + footer ---------- */
.pager { display: flex; justify-content: space-between; gap: 1rem; padding: var(--sec-pad) var(--pad); border-top: 1px solid var(--line); max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; }
.pager a { text-decoration: none; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.pager .pg-next { margin-left: auto; text-align: right; }
.pg-lbl { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }
.pg-t { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.2; }
.pager a:hover .pg-t { color: var(--accent); }
.site-footer { display: flex; justify-content: center; gap: 1.4rem; padding: 2.4rem var(--pad) calc(2.4rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; color: #555; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(255, 255, 255, .97); display: flex; align-items: center; justify-content: center;
  padding: calc(56px + env(safe-area-inset-top, 0px)) max(56px, env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(56px, env(safe-area-inset-left, 0px)); }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; cursor: pointer; color: var(--black); font: 300 2.4rem/1 var(--font-body); width: 52px; height: 52px; }
.lb button:hover { color: var(--accent); }
.lb-close { top: calc(8px + env(safe-area-inset-top, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(4px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(4px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; font-size: .9rem; color: #555; pointer-events: none; }
.lb-prev, .lb-next { z-index: 2; border-radius: 50%; background: rgba(255, 255, 255, .8) !important; }
@media (max-width: 767px) { .lb { padding-inline: 12px; } }
body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
