/* Site styles. Same design as A Women’s Thing (On View): clamp() type scale,
   uppercase section titles over 2px rules, aligned card rows. */

/* Soya Display, Saskia’s own typeface */
@font-face {
  font-family: 'Soya Display';
  src: url('/fonts/SoyaDisplayVF.woff2') format('woff2');
  font-weight: 100 950;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: 'Soya Display', 'Helvetica Neue', Arial, sans-serif;

  --ink: #000;
  --ink-soft: #323232;
  --paper: #fff;
  --paper-2: #f4f4f4;
  --rule: #000;

  /* theme presets */
  --text-xxs: 0.875rem;                                                         /* 14px */
  --text-xs: 1rem;                                                              /* 16px */
  --text-s: 1.125rem;                                                           /* 18px */
  --text-m: 1.25rem;                                                            /* 20px */
  --text-l: clamp(1.25rem, 1.25rem + ((1vw - 0.2rem) * 0.27), 1.5rem);
  --text-xl: clamp(1.5rem, 1.5rem + ((1vw - 0.2rem) * 0.405), 1.875rem);
  --text-xxl: clamp(1.875rem, 1.875rem + ((1vw - 0.2rem) * 0.405), 2.25rem);
  --text-5xl: clamp(2.25rem, 2.25rem + ((1vw - 0.2rem) * 2.432), 4.5rem);

  --content: 43.5rem;   /* 696px text column */
  --wide: 112.5rem;
  --gutter: 2.5rem;     /* 40px page margin */
  --flow: 1.5rem;       /* 24px between blocks */
}

@media (max-width: 781px) {
  :root { --gutter: 1.25rem; }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-m);
  line-height: 1.5;
  font-synthesis: none;
}

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

:root {
  --text-4xl: clamp(2.25rem, 2.25rem + ((1vw - 0.2rem) * 1.622), 3.75rem);
  --text-6xl: clamp(3rem, 3rem + ((1vw - 0.2rem) * 3.243), 6rem);
  --rule-w: 2px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1.25rem var(--gutter);
  min-height: 6.5rem;
}
.site-logo {
  font-size: clamp(1.25rem, 0.55rem + 1.55vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 0.1rem + 0.9vw, 1.25rem); margin-left: auto; }
.site-header--home .site-nav { margin: 0 auto; }
.site-nav a {
  white-space: nowrap;
  font-size: clamp(0.75rem, 0.55rem + 0.3vw, 0.875rem);
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 520px) {
  .site-header { min-height: 0; padding-bottom: 1.75rem; }
  .site-nav { margin-left: 0; }
}

/* ---------------------------------------------------------------- masthead + page heads */

main { padding-bottom: 6rem; }
.masthead { text-align: center; padding: 0 var(--gutter) 2.5rem; }
.masthead-title { font-size: var(--text-6xl); font-weight: 700; line-height: 1; letter-spacing: -0.05em; margin: 0; text-transform: uppercase; }
.page-head { padding: 1rem var(--gutter) 0; margin-bottom: 2.5rem; border-top: var(--rule-w) solid var(--rule); }
.page-head h1 { font-size: var(--text-5xl); font-weight: 400; line-height: 1; margin: 0; }
.page-lede { max-width: 40rem; font-size: var(--text-xs); font-weight: 350; line-height: 1.5; margin: 1rem 0 0; }
.page-lede a { text-decoration: underline; }
@media (max-width: 781px) { .masthead-title { letter-spacing: -0.03em; } }

/* ---------------------------------------------------------------- city sections */

.home-section { padding: 0 var(--gutter) 5rem; border-top: var(--rule-w) solid var(--rule); }
.section-title { font-size: var(--text-xxl); font-weight: 700; line-height: 1; text-transform: uppercase; margin: 0; padding: 1rem 0 3rem; }
.section-title a { text-decoration: none; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.section-more { font-size: var(--text-xxs); font-weight: 600; text-transform: uppercase; white-space: nowrap; text-decoration: none;
  padding-bottom: 0.2em; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat; transition: background-size 0.35s cubic-bezier(0.2, 0.65, 0.2, 1); }
.section-more:hover, .section-more:focus-visible { background-size: 100% 2px; }
@media (prefers-reduced-motion: reduce) { .section-more { transition: none; } }
/* "Just opened" / "Opening soon" inside a city */
.subsection + .subsection { margin-top: 5rem; }
.subsection-title { font-size: var(--text-xxs); font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 1.5rem; }

/* ---------------------------------------------------------------- cards */

.card-row { display: grid; gap: 3rem 1.875rem; }
.card-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .card-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .card-row--3 { grid-template-columns: 1fr; } }

.card img { width: 100%; }
.card img.is-tall { aspect-ratio: 3 / 4; object-fit: cover; }
.card-image { display: block; }
/* where + when */
.card-note { font-size: 0.75rem; line-height: 1.5; text-transform: uppercase; margin: 0; padding: 0.5rem 0; display: flex; flex-direction: column; }
.card-note span:first-child { font-weight: 700; }
.card-title { font-size: var(--text-s); font-weight: 550; line-height: 1.3; margin: 0; padding: 1rem 0 0.25rem; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.listing-show { font-size: var(--text-xxs); font-weight: 350; margin: 0 0 0.75rem; }
.listing-blurb { font-size: var(--text-xxs); font-weight: 350; line-height: 1.5; margin: 0; }
.listing-address { font-size: 0.75rem; font-weight: 350; line-height: 1.4; margin: 0.75rem 0 0; }
.listing-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: var(--text-xxs); font-weight: 600; margin: 1rem 0 0; }
/* thin underline; on hover a thicker line draws in from left to right (no layout shift) */
.listing-links a {
  text-decoration: none; padding-bottom: 0.2em;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 0% 2px, 100% 1px; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
  transition: background-size 0.35s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.listing-links a:hover, .listing-links a:focus-visible { background-size: 100% 2px, 100% 1px; }
@media (prefers-reduced-motion: reduce) { .listing-links a { transition: none; } }
.listing-links span { font-weight: 350; }
.listing-credit { font-size: 0.75rem; font-weight: 350; line-height: 1.4; color: #555; margin: 0.75rem 0 0; }

/* Aligned row: images keep their proportions and sit at the top; the rule,
   place/date and names line up across the row (tallest image sets the level). */
.card-row--onview { row-gap: 0; margin-bottom: -3rem; }
.card-row--onview .card { display: grid; grid-template-rows: subgrid; grid-row: span 3; margin-bottom: 3rem; }
.card-row--onview .card-image { align-self: start; }
.card-row--onview .card-note { border-top: 1px solid var(--ink); margin-top: 1.5rem; padding-top: 1rem; }
/* "Just opened" and "Opening soon" side by side in one row: each group spans
   its own columns and borrows the row's tracks, so everything still lines up. */
.card-row--combined .subsection { grid-column: span var(--span); grid-row: span 4; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
.card-row--combined .subsection + .subsection { margin-top: 0; }
.card-row--combined .subsection-title { grid-column: 1 / -1; }
.card-row--combined + .subsection { margin-top: 5rem; }
/* a row with no photos at all: no empty picture space above the rule */
.card-row--onview:not(:has(img)) .card-note { margin-top: 0; }
@media (max-width: 520px) {
  .card-row--combined { display: block; }
  .card-row--combined .subsection { display: grid; grid-template-columns: 1fr; grid-template-rows: none; margin-bottom: 3rem; }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 4rem var(--gutter) 3rem;
  border-top: var(--rule-w) solid var(--rule);
}
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.site-footer .site-logo { font-weight: 600; white-space: normal; max-width: 14rem; display: block; align-self: start; }
.footer-col h2 { font-size: var(--text-s); font-weight: 700; line-height: 1.4; text-transform: uppercase; margin: 0; padding-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { font-size: var(--text-s); font-weight: 350; line-height: 1.5; margin-bottom: 0.5rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.copyright { grid-column: 1 / -1; font-size: var(--text-xxs); font-weight: 350; margin: 2rem 0 0; }

@media (max-width: 781px) {
  .site-footer { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- soft image loading */
/* Lazy images fade in once loaded (the class is set by a small script in BaseLayout).
   Width/height are known, so the space is reserved and nothing jumps. */
html.js img[loading="lazy"] { opacity: 0; transition: opacity 0.6s ease; }
html.js img[loading="lazy"].is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.js img[loading="lazy"] { opacity: 1; transition: none; }
}

/* ---------------------------------------------------------------- motion */
/* Scroll reveal (script in BaseLayout): a short slide up and fade, once per block.
   Nothing is hidden without JavaScript or with reduced motion. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
