/* dscreative — site styles
   Palette, type scale and spacing mirror the original Squarespace theme. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/dm-sans-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/dm-sans-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/dm-sans-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/dm-sans-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pt-serif-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pt-serif-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Italianno"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/italianno-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Italianno"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/italianno-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --white: hsl(32 23.81% 87.65%);   /* #e7e0d8 – lightest */
  --cream: hsl(32.73 37.93% 94.31%); /* #f6f1eb – page background */
  --accent: hsl(20.21 80.51% 53.73%);/* #e86a2a – orange */
  --olive: hsl(56.47 12.78% 26.08%); /* #4b4a3a – dark accent */
  --ink: hsl(180 7.69% 17.84%);      /* #2a3131 – text */
  --field: hsl(32 23.81% 87.65% / .75);

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --script: "Italianno", cursive;

  --gutter: 4vw;
  --max-width: 2000px;
  --header-h: 124px;

  /* Squarespace scales headings as (size - 1) × unit + 1rem */
  --fs-unit: 1.2vw;
  --h1: calc(3 * var(--fs-unit) + 1rem);
  --h2: calc(1.8 * var(--fs-unit) + 1rem);
  --h3: calc(1.2 * var(--fs-unit) + 1rem);
  --h4: calc(.6 * var(--fs-unit) + 1rem);
  --small: .89rem;

  --radius-btn: 15px;
  --radius-field: 10px;
}
@media (max-width: 799px) { :root { --header-h: 80px; } }
@media (max-width: 767px) {
  :root { --gutter: 6vw; --fs-unit: calc(.012 * min(100vh, 900px)); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 87.5%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  margin: 0 0 .6em;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--accent);
}
h1, .h1 { font-size: var(--h1); line-height: 1.06; }
h2, .h2 { font-size: var(--h2); line-height: 1.11; }
h3, .h3 { font-size: var(--h3); line-height: 1.2; }
h4, .h4 { font-size: var(--h4); line-height: 1.17; }

/* "light" sections use dark headings, like the original theme */
.theme-light h1, .theme-light h2, .theme-light h3, .theme-light h4 { color: var(--ink); }
.accent { color: var(--accent) !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only {
  position: absolute; 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; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 1.35rem 2rem;
  border: 0; border-radius: var(--radius-btn);
  background: var(--accent); color: #fff;
  font: 400 1rem/1.2 var(--serif);
  text-decoration: none; cursor: pointer;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

.field { display: block; margin-bottom: 20px; }
.field-label { display: block; margin-bottom: .4rem; }
.field-label small { opacity: .7; }
.field input, .field textarea, .field select, .select-wrap select {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0; border-radius: var(--radius-field);
  background: var(--field); color: var(--ink);
  font: inherit;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .select-wrap select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 3rem; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: 12px; height: 12px; margin-top: -9px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); pointer-events: none;
}
.form-message { margin-top: 1rem; }
.form-message[hidden] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 var(--gutter);
  color: var(--ink);
}
.header-dark .site-header { color: var(--white); }
.site-logo {
  color: var(--accent); text-decoration: none;
  font-size: 1rem; letter-spacing: -.01em; line-height: 1;
}
.site-logo:hover { text-decoration: none; }
.site-nav > ul { display: flex; align-items: center; gap: 1.6em; margin: 0; padding: 0; list-style: none; }
.site-nav a, .site-nav .folder-toggle {
  color: inherit; text-decoration: none;
  font: inherit; background: none; border: 0; padding: .4em 0; cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s ease;
}
.site-nav a:hover, .site-nav .folder-toggle:hover,
.site-nav [aria-current="page"], .site-nav .is-active > .folder-toggle { background-size: 100% 1px; }
.has-folder { position: relative; }
.folder {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 12.5rem; margin: 0; padding: .8rem 1.1rem; list-style: none;
  background: var(--cream); color: var(--ink);
  border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .1);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.folder a { display: inline-block; padding: .3em 0; }
.has-folder:hover .folder, .has-folder:focus-within .folder, .has-folder.is-open .folder {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -4px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-toggle .bar {
  display: block; width: 36px; height: 1px; margin: 7px auto;
  background: currentColor; transition: transform .3s ease;
}
.menu-open .menu-toggle .bar-top { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle .bar-bottom { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: var(--header-h) var(--gutter) 3rem;
  background: var(--cream); color: var(--ink);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .site-header { position: fixed; color: var(--ink); }
.menu-panel { width: 100%; text-align: center; }
.menu-panel[hidden] { display: none; }
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.menu-panel a, .menu-panel button {
  display: inline-block; padding: .25em 0;
  color: inherit; text-decoration: none;
  font: 400 calc(1.4rem + 3vw)/1.3 var(--sans); letter-spacing: -.02em;
  background: none; border: 0; cursor: pointer;
}
.menu-panel .menu-back { font-size: 1.1rem; margin-bottom: 1rem; opacity: .8; }

@media (max-width: 799px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Main offsets ---------- */
main { display: block; }
.no-hero main { padding-top: var(--header-h); }

/* ---------- Hero (image sections) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--overlay-color, var(--cream)); opacity: var(--overlay, .15);
}

/* Home: the whole photo at its natural aspect ratio, with the statement centred on it */
.home-hero { position: relative; }
.home-hero-image { width: 100%; height: auto; }
.home-statement {
  --band: 2.4em; /* half-height of the soft band behind the words */
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 0 var(--gutter);
  color: var(--white); text-align: center;
  font-size: calc(.9 * var(--fs-unit) + 1rem); font-weight: 700; line-height: 1.3;
  letter-spacing: .03em; text-transform: uppercase;
  background: linear-gradient(to bottom,
    transparent calc(50% - var(--band)),
    hsl(180 7.69% 17.84% / .4) 50%,
    transparent calc(50% + var(--band)));
  text-shadow: 0 1px 2px hsl(180 7.69% 17.84% / .25);
}
.home-statement > span { display: flex; flex-wrap: wrap; justify-content: center; gap: .15em .6em; }
.home-statement .phrase { white-space: nowrap; }
@media (max-width: 767px) {
  .home-statement { --band: 2.8em; padding: 0 8vw; font-size: 1.15rem; }
  .home-statement > span { column-gap: .5em; }
}

/* About */
.hero--about {
  --overlay: .05;
  min-height: max(300px, 39vw);
  display: flex; align-items: flex-end;
}
.hero--about .hero-media img { object-position: 50% 35%; }
.about-title {
  width: 100%; margin: 0;
  padding: var(--header-h) var(--gutter) 1vw 42.5%;
  font-weight: 700;
}
.about-body {
  display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: 7px;
  align-items: start;
  padding: 5vw var(--gutter) 9vw;
}
.about-aside { grid-column: 2 / 9; position: sticky; top: 3rem; }
.about-tagline { margin: 0; }
.about-text { grid-column: 11 / 24; max-width: 38rem; font-size: 1.1rem; line-height: 1.75; }
.about-text p { margin-bottom: 1.4em; }
@media (max-width: 767px) {
  .about-title { padding-left: var(--gutter); padding-bottom: .4rem; }
  .about-body { display: block; padding-top: 2.5rem; padding-bottom: 4rem; }
  .about-aside { position: static; margin-bottom: 1.6rem; }
  .about-text { font-size: 1.05rem; line-height: 1.7; }
}

/* Overview */
.hero--overview {
  --overlay: .2;
  min-height: max(620px, 90vh);
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 5rem;
  text-align: center;
}
.hero--overview::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, hsl(32.73 37.93% 94.31% / .7), transparent 75%);
}
.overview-content { max-width: 50rem; }
.overview-content h1 { margin-bottom: 1.4rem; }
.overview-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 3.2rem;
  margin: 0 0 4.5rem; padding: 0; list-style: none;
}
.overview-links a, .overview-gear { color: var(--olive); }
.overview-content h2 { margin-bottom: 1rem; }
@media (max-width: 767px) {
  .overview-links { flex-direction: column; gap: 1.6rem; margin-bottom: 3rem; }
}

/* ---------- Simple page intros (Cart, 404) ---------- */
.page-intro { padding: 2.5vw var(--gutter) 6vw; }
.page-intro-inner { max-width: 36rem; }
.page-intro h1 { margin-bottom: 1.4rem; }
.page-intro .lead { margin-bottom: 2.5rem; }
@media (max-width: 767px) { .page-intro { padding-top: 1.5rem; padding-bottom: 3.5rem; } }

/* Work with Me */
.work {
  display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: 7px;
  align-items: start;
  padding: 2.5vw var(--gutter) 8vw;
}
.work-intro { grid-column: 1 / 10; }
.work-intro h1 { color: var(--ink); margin-bottom: 1.6rem; }
.work-intro .work-tagline { margin-bottom: 2.4rem; }
.work-intro p { max-width: 30rem; }
.work-form { grid-column: 12 / 24; }
.work-form h2 { color: var(--ink); margin-bottom: 1.8rem; }
.enquiry-form textarea { min-height: 11rem; }
.enquiry-form [aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
.field-error, .form-error { margin: .45rem 0 0; color: var(--accent); font-size: var(--small); }
.form-error { margin-top: 1.2rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-confirmation {
  max-width: 30rem; padding-top: 1.2rem;
  border-top: 1px solid hsl(180 7.69% 17.84% / .2);
}
.form-confirmation:focus { outline: none; }
@media (max-width: 767px) {
  .work { display: block; padding-top: 1.5rem; padding-bottom: 4rem; }
  .work-intro { margin-bottom: 3rem; }
  .work .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Editorial Gallery ---------- */
/* Main page: a column per collection plus the statement column, edge to edge with hairline gaps */
.ed-home { padding-bottom: 6vw; }
.ed-columns {
  display: grid; grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
  gap: 6px; align-items: start;
}
.ed-statement { align-self: stretch; padding: 3vw; }
.ed-statement:empty { display: none; } /* the third column stays as blank space until text is added */

/* Cover: the photo at its own proportions, its title centred over it */
.ed-cover { position: relative; display: block; overflow: hidden; color: var(--white); text-decoration: none; }
.ed-cover:hover { text-decoration: none; }
.ed-cover img { width: 100%; height: auto; transition: transform 1.2s ease, filter .6s ease; }
.ed-cover:hover img { transform: scale(1.015); filter: brightness(.93); }
.ed-cover-blank { display: block; aspect-ratio: var(--ratio, 3 / 4); background: var(--white); }
.ed-cover-title {
  --band: 2.4em;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 1.5rem; text-align: center;
  font-size: calc(.4 * var(--fs-unit) + 1rem); font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  background: linear-gradient(to bottom,
    transparent calc(50% - var(--band)),
    hsl(180 7.69% 17.84% / .32) 50%,
    transparent calc(50% + var(--band)));
  text-shadow: 0 1px 2px hsl(180 7.69% 17.84% / .25);
}
/* Main gallery covers: quieter, label-sized titles */
.ed-columns .ed-cover-title { font-size: calc(.29 * var(--fs-unit) + .73rem); letter-spacing: .18em; }
.ed-cover--empty { color: var(--ink); }
.ed-cover--empty .ed-cover-title { background: none; text-shadow: none; }

/* Collection and chapter pages */
.ed-page { padding: 2.5vw var(--gutter) 8vw; }
.ed-header { margin-bottom: 4.5vw; }
.ed-header .breadcrumb { margin-bottom: 1.2rem; }
.ed-header h1 { margin: 0; color: var(--ink); }
.ed-chapters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 6px; align-items: start;
  margin: 0; padding: 0; list-style: none;
}

/* Chapter gallery: a composed rhythm of photographs (layouts chosen in build.py) */
.ed-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8vw 2vw; align-items: start;
}
.ed-item { margin: 0; }
.ed-item img { width: 100%; height: auto; }
.ed-photo { display: block; cursor: zoom-in; }
.ed-item--bleed { grid-column: 1 / -1; margin: 0 calc(-1 * var(--gutter)); }
.ed-item--wide { grid-column: 2 / 12; }
.ed-item--left { grid-column: 1 / 7; }
.ed-item--right { grid-column: 7 / 13; margin-top: 10vw; }
.ed-item--narrow-left { grid-column: 2 / 6; }
.ed-item--narrow-right { grid-column: 8 / 12; }
.ed-item figcaption { margin-top: .9rem; font-size: var(--small); }
.ed-item--bleed figcaption, .ed-item--bleed .ed-placeholder { padding-left: var(--gutter); padding-right: var(--gutter); }
.ed-placeholder {
  aspect-ratio: var(--ratio, 4 / 5);
  display: flex; align-items: flex-end;
  padding: 1rem 1.1rem;
  background: var(--white);
  color: hsl(180 7.69% 17.84% / .4);
  font-size: var(--small); letter-spacing: .08em;
}
.ed-chapter-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  margin-top: 7vw; padding-top: 1.6rem;
  border-top: 1px solid hsl(180 7.69% 17.84% / .15);
}
.ed-chapter-nav a { color: var(--ink); text-decoration: none; }
.ed-chapter-nav a:hover { text-decoration: underline; }
.ed-chapter-nav .ed-up { font-size: var(--small); letter-spacing: .14em; text-transform: uppercase; }
.ed-chapter-nav .ed-next { justify-self: end; }

/* Location page opening: label, title and text on the left; the photograph from the centre line, right */
.ed-opening {
  display: grid; align-items: center;
  grid-template-columns: 15.4fr 28.4fr 6.2fr 39.1fr 10.9fr;
}
.ed-opening-text { grid-column: 2; padding: 3rem 0; }
.ed-opening-media { grid-column: 4; }
.ed-opening-media img { width: 100%; height: auto; }
.ed-opening-label {
  margin: 0 0 1.3em;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.ed-opening-title {
  margin: 0 0 .45em; color: var(--ink);
  font: 400 calc(1.55 * var(--h3))/1.1 var(--script); letter-spacing: 0;
}
.ed-opening-text p:not(.ed-opening-label) { font-size: 12px; line-height: 1.3; }
/* each further chapter on a location page starts after a wider pause than the rows within a chapter */
.ed-section + .ed-section { margin-top: 12vw; }

/* A row of photographs at one shared height (column widths set per photo in build.py), hairline gaps,
   outer edges on the page margins; consecutive rows sit a hairline apart */
.ed-row {
  display: grid; grid-template-columns: var(--columns); gap: 2px;
  margin-top: 8vw; padding: 0 var(--gutter);
}
.ed-row + .ed-row { margin-top: 2px; }
.ed-row-item { margin: 0; }
/* fill the shared row height exactly: web copies round their proportions by a fraction of a pixel */
.ed-row-item .ed-photo { height: 100%; }
.ed-row-item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1023px) {
  .ed-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-statement { grid-column: 1 / -1; }
  .ed-opening { grid-template-columns: var(--gutter) minmax(0, 1fr) 5vw 46vw var(--gutter); }
}
@media (max-width: 767px) {
  .ed-page { padding-top: 1.5rem; padding-bottom: 4rem; }
  .ed-header { margin-bottom: 2rem; }
  .ed-grid { grid-template-columns: minmax(0, 1fr); row-gap: 3.5rem; }
  .ed-item { grid-column: 1 / -1; margin-top: 0; }
  .ed-item--narrow-left, .ed-item--narrow-right { width: 78%; }
  .ed-item--narrow-right { justify-self: end; }
  .ed-chapter-nav { margin-top: 3.5rem; }
  .ed-opening { grid-template-columns: minmax(0, 1fr); }
  .ed-opening-media { grid-column: 1; order: -1; }
  .ed-opening-text { grid-column: 1; padding: 2.5rem var(--gutter) 0; }
  .ed-section + .ed-section { margin-top: 4.5rem; }
  .ed-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3rem; padding: 0; }
  .ed-row--stack { grid-template-columns: minmax(0, 1fr); }
  .ed-row + .ed-row { margin-top: 2px; }
}
@media (max-width: 599px) {
  .ed-columns { grid-template-columns: minmax(0, 1fr); }
  .ed-cover-title { font-size: 1.05rem; }
  .ed-columns .ed-cover-title { font-size: .78rem; }
}

/* Lightbox (Editorial Gallery chapters) */
.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: hsl(180 7.69% 9% / .97); color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin: 0; }
.lb-img {
  box-sizing: content-box; display: block;
  width: auto; height: auto; max-width: 84vw; max-height: 80vh;
  border: 2px solid #fff;
  opacity: 0; transition: opacity .35s ease;
}
.lb-img.is-loaded { opacity: 1; }
.lb-caption { max-width: 60ch; margin: 0; font-size: var(--small); text-align: center; }
.lb-button {
  position: absolute; padding: .6rem 1rem;
  background: none; border: 0; color: var(--white); cursor: pointer;
  font: 300 2.2rem/1 var(--sans); opacity: .75; transition: opacity .2s ease;
}
.lb-button:hover, .lb-button:focus-visible { opacity: 1; }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .8rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); margin: 0; font-size: var(--small); letter-spacing: .14em; opacity: .7; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
@media (max-width: 767px) {
  .lb-img { max-width: 92vw; max-height: 72vh; }
  .lb-prev, .lb-next { top: auto; bottom: .4rem; transform: none; }
}

/* ---------- Shop: list ---------- */
.shop { padding: 1vw var(--gutter) 6vw; }
.shop-header { margin-bottom: 2.4rem; }
.shop-header h1 { color: var(--ink); font-size: var(--h2); margin-bottom: 1.4rem; }
.category-nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; margin: 0; padding: 0; list-style: none; }
.category-nav a { color: var(--ink); text-decoration: none; }
.category-nav a:hover { text-decoration: underline; }
.category-nav [aria-current="page"] { font-weight: 700; }
.category-select { display: none; align-items: center; gap: .8rem; }
.category-select .select-wrap { flex: 1; }
.category-select label { white-space: nowrap; }

.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3.5rem 25px; margin: 0; padding: 0; list-style: none;
}
.product-card a { display: block; color: var(--ink); text-decoration: none; }
.product-card-image { aspect-ratio: 3 / 4; overflow: hidden; background: var(--white); margin-bottom: 1.1rem; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.product-card a:hover img { transform: scale(1.025); }
.product-card-title { margin: 0 0 .35rem; color: var(--ink); font-size: var(--h4); }
.product-card-price { margin: 0; }
@media (max-width: 1023px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .shop-header h1 { font-size: var(--h3); }
  .category-nav { display: none; }
  .category-select { display: flex; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 4vw; }
  .product-card-title { font-size: 1.15rem; }
}

/* ---------- Shop: product ---------- */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw;
  align-items: start;
  padding: 1vw var(--gutter) 6vw;
}
.product-media { position: sticky; top: 2rem; }
.product-media img { width: 100%; max-height: calc(100vh - 4rem); object-fit: contain; object-position: left top; }
.product-info { max-width: 36rem; }
.breadcrumb { margin-bottom: 1.6rem; font-size: var(--small); }
.breadcrumb a { color: var(--ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 .5em; }
.product-info h1 { color: var(--ink); font-size: var(--h1); margin-bottom: 1.2rem; }
.product-price { margin-bottom: 1.6rem; font-size: 1.05rem; }
.product-description p { margin-bottom: 1.1em; }
.product-meta { padding-top: 1.1rem; margin-top: 1.4rem; border-top: 1px dashed currentColor; }
.product-form { margin-top: 2rem; }
.product-form .field-label { margin-bottom: .6rem; }
.product-actions { display: grid; grid-template-columns: 9.5rem 1fr; gap: 10px; margin-top: 10px; }
.qty {
  display: grid; grid-template-columns: 2.8rem 1fr 2.8rem; align-items: center;
  border-radius: var(--radius-field); background: var(--field);
}
.qty button { height: 100%; border: 0; background: none; color: inherit; font: inherit; font-size: 1.3rem; cursor: pointer; }
.qty input {
  width: 100%; border: 0; background: none; text-align: center; font: inherit; color: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-note { margin-top: 1.2rem; font-size: var(--small); opacity: .8; }
@media (max-width: 767px) {
  .product { display: block; padding: 0 0 3rem; }
  .product-media { position: static; margin-bottom: 2rem; }
  .product-media img { max-height: none; }
  .product-info { max-width: none; padding: 0 var(--gutter); }
  .product-info h1 { font-size: var(--h2); }
}

/* ---------- Footer ---------- */
.site-footer { padding: 2.2rem var(--gutter) 4rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 3rem; }
.newsletter { flex: 0 1 34.5rem; }
.newsletter h2 { color: var(--ink); font-size: var(--h3); margin-bottom: 1rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3.5rem; }
.newsletter-form input {
  flex: 1 1 13rem; max-width: 18rem; padding: 1.3rem 1.4rem;
  border: 0; border-radius: var(--radius-field); background: #fff; color: var(--ink); font: inherit;
}
.newsletter-form .btn { flex: none; }
.follow { flex: none; min-width: 9.8rem; }
.social { display: flex; gap: 1rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.social a { display: block; color: var(--ink); }
.social a:hover { color: var(--accent); }
.social svg { display: block; width: 20px; height: 20px; }
@media (max-width: 767px) {
  .footer-inner { flex-direction: column; gap: 2.5rem; }
  .newsletter { flex: none; }
  .newsletter-form { margin-top: 2rem; }
}
