/* A Women’s Thing — site styles.
   Sizes, weights and spacing are measured from the WordPress theme (Makoney)
   on 2026-09-28; the font-size scale uses the theme's own clamp() presets so
   type scales between phone and desktop the same way it does today. */

/* Soya Display, Saskia's own typeface (formerly "Bauhaus Mona Display" on the WP site) */
@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', 'Libre Franklin', 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); /* whole site in Soya, as on WP (custom CSS: body, h1–h6, p) */
  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; }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  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-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 { text-decoration: underline; text-underline-offset: 0.2em; }
.site-tools { display: flex; gap: 1rem; align-items: center; margin-left: 1.5rem; }
.icon-link { display: inline-flex; width: 1.5rem; height: 1.5rem; }
.icon-link svg { width: 100%; height: 100%; }

.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; min-height: 0; }
  .site-logo { font-size: clamp(1.25rem, 0.8rem + 1.6vw, 1.875rem); }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1rem 0; }
  .site-header.is-open .site-nav { display: flex; }
  .menu-toggle { display: inline-flex; background: none; border: 0; padding: 0; cursor: pointer; }
  .site-tools { margin-left: auto; }
}

/* ---------------------------------------------------------------- article */

.article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30.5rem);
  gap: 2rem 4rem;
  align-items: start;
  padding: 0 var(--gutter);
  margin-bottom: 4rem;
}
.article-title {
  font-size: clamp(2.25rem, 1.1rem + 2.9vw, 4.25rem);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 1rem;
  max-width: 47rem;
}
.byline {
  font-size: var(--text-xxs);
  font-weight: 350;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.byline a { text-decoration: underline; }
.hero { margin: 0; }
.hero figcaption { font-size: var(--text-xxs); line-height: 1.5; margin-top: 0.75rem; }

@media (max-width: 781px) {
  .article-head { grid-template-columns: 1fr; margin-bottom: 2.5rem; }
}

.prose {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: content-box;
}
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: var(--flow); }
.prose p { font-weight: 350; line-height: 1.5; }
.prose strong, .prose b { font-weight: 550; }
.prose h2 { font-size: var(--text-xxl); font-weight: 500; line-height: 1.25; }
.prose h3 { font-size: var(--text-xl); font-weight: 500; line-height: 1.3; }
.prose h4 { font-size: var(--text-l); font-weight: 500; line-height: 1.3; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.25em; font-weight: 350; }
.prose hr { border: 0; border-top: 1px solid var(--rule); }

.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption,
.prose figure + p.caption { font-size: var(--text-xs); line-height: 1.5; margin-top: 1rem; }

.prose blockquote:not(.pullquote) {
  margin: 5rem 0; padding-left: 2rem; border-left: 2.5px solid var(--rule);
}
.prose * + blockquote:not(.pullquote) { margin-top: 5rem; }
.prose blockquote:not(.pullquote) + * { margin-top: 5rem; }
.prose blockquote:not(.pullquote) p { font-size: var(--text-l); font-weight: 450; line-height: 1.55; }
.prose .pullquote {
  margin-left: 0; margin-right: 0;
  padding: 7.5rem 0;
}
.prose .pullquote p {
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  padding-left: 2rem;
  border-left: 2.5px solid var(--rule);
}
.prose .pullquote p + p { padding-top: 1rem; }

/* paragraph sizes carried over from WordPress (has-text-*-font-size), e.g. the
   small visitor-info note at the end of an article */
.prose .text-xxs { font-size: var(--text-xxs); line-height: 1.5; }
.prose .text-xs { font-size: var(--text-xs); line-height: 1.5; }
.prose .text-s { font-size: var(--text-s); line-height: 1.5; }
.prose .text-l { font-size: var(--text-l); line-height: 1.5; }
.prose .pullquote cite { display: block; font-size: var(--text-xs); font-style: normal; margin-top: 1rem; }

.prose .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
}
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose audio { width: 100%; }
.prose .footnotes { font-size: var(--text-xxs); line-height: 1.5; }
.prose .awt-footnote, .prose .awt-cite { font-size: var(--text-xxs); }

/* ---------------------------------------------------------------- after the article */

.author-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: var(--content);
  margin: 8rem auto 0;
  padding: 0 var(--gutter);
  box-sizing: content-box;
}
.author-box img { width: 7.5rem; height: 7.5rem; object-fit: cover; border-radius: 50%; margin-bottom: 2rem; }
.author-name { font-size: var(--text-l); font-weight: 400; line-height: 1.25; margin: 0 0 1rem; }
.author-name a { text-decoration: none; }
.author-bio { font-size: var(--text-xs); font-weight: 350; line-height: 1.5; margin: 0; }

.tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  max-width: var(--content);
  margin: 2rem auto 0;
  padding: 0 var(--gutter);
  box-sizing: content-box;
}
.tags a {
  display: inline-block;
  font-size: var(--text-xxs);
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}

/* ---------------------------------------------------------------- lists (placeholder until the homepage/archive pass) */

main { padding-bottom: 6rem; }
.page-head { padding: 0 var(--gutter); margin-bottom: 2.5rem; }
.page-head h1 { font-size: var(--text-5xl); font-weight: 400; line-height: 1; margin: 0; }

.post-list {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 3rem 2rem;
}
.post-list a { text-decoration: none; }
.post-list img { width: 100%; margin-bottom: 1rem; }
.post-list h2 { font-size: var(--text-m); font-weight: 700; line-height: 1.2; margin: 0 0 0.5rem; }
.post-list p { font-size: var(--text-xxs); font-weight: 350; margin: 0; }

.pager { display: flex; gap: 1.5rem; justify-content: center; margin-top: 4rem; font-size: var(--text-xxs); text-transform: uppercase; font-weight: 700; }

.author-header { padding: 0 var(--gutter); margin-bottom: 3rem; max-width: var(--content); }
.author-header img { border-radius: 50%; margin-bottom: 1rem; }
.author-header h1 { font-size: var(--text-5xl); font-weight: 400; line-height: 1; margin: 0 0 1rem; }
.author-header p { font-size: var(--text-xs); font-weight: 350; }

/* ---------------------------------------------------------------- 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; }
}

/* ---------------------------------------------------------------- homepage */

: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;
}

.site-header--home .site-tools { order: -1; margin-left: 0; }
.masthead { text-align: center; padding: 0 var(--gutter) 2.5rem; border-bottom: var(--rule-w) solid var(--rule); margin-bottom: 0; }
.masthead-title { font-size: var(--text-6xl); font-weight: 700; line-height: 1; letter-spacing: -0.05em; margin: 0 0 1.5rem; text-transform: uppercase; }
.masthead-sub { font-size: var(--text-xxl); font-weight: 400; line-height: 1; margin: 0; }
.masthead-sub a { text-decoration: none; }

.home-section { padding: 0 var(--gutter) 5rem; border-top: var(--rule-w) solid var(--rule); }
.home-top { padding: 0 var(--gutter) 5rem; }
.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; }

.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: start; }
.home-top-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1.875rem; }
.card-row { display: grid; gap: 3rem 1.875rem; }
.card-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-row--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card img { width: 100%; }
.card-image { display: block; }
.card-kicker { font-size: 0.75rem; font-weight: 400; line-height: 1.5; text-transform: uppercase; margin: 0; padding: 0.5rem 0; }
.card-kicker a { text-decoration: none; }
.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; }
.card-author { font-size: var(--text-xxs); font-weight: 350; margin: 0; }
.card--large .card-title { font-size: var(--text-4xl); font-weight: 400; line-height: 1; letter-spacing: -0.32px; padding: 1rem 0; }

.join-us p { max-width: 56rem; font-size: var(--text-l); font-weight: 350; line-height: 1.5; margin: 0; }

.newsletter-band {
  background: #eaeaea; padding: 7.5rem var(--gutter);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: center;
}
.newsletter-band h2 { font-size: var(--text-xxl); font-weight: 600; line-height: 1; margin: 0; }
.newsletter-band iframe { width: 90%; border: 0; background: transparent; display: block; margin: 0; }
.newsletter-band p { font-size: var(--text-xs); font-weight: 350; line-height: 1.5; margin: 0; padding-top: 0.5rem; }
@media (max-width: 781px) { .newsletter-band { grid-template-columns: 1fr; padding: 4rem var(--gutter); } }

@media (max-width: 1023px) {
  .card-row--4, .card-row--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
  .home-grid, .home-top-cards { grid-template-columns: 1fr; }
  .masthead-title { letter-spacing: -0.03em; }
}
main:has(.newsletter-band) { padding-bottom: 0; }

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

/* ---------------------------------------------------------------- search */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-page { padding: 1rem var(--gutter) 4rem; border-top: var(--rule-w) solid var(--rule); }
.search-title { font-size: var(--text-5xl); font-weight: 400; line-height: 1; text-transform: uppercase; margin: 0 0 2.5rem; }
.search-form { display: flex; gap: 0.5rem; max-width: 50rem; }
.search-form input {
  flex: 1; font: inherit; font-size: var(--text-xxs); padding: 0.75rem 1rem;
  border: 1px solid #b3b3b3; border-radius: 0.5rem; background: var(--paper); color: var(--ink);
}
.search-form button {
  font: inherit; font-size: var(--text-xxs); font-weight: 700; padding: 0.75rem 1.25rem;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 0.5rem; cursor: pointer;
}
.search-status { font-size: var(--text-xxs); margin: 1.5rem 0 0; }
.search-results { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2.5rem; max-width: 60rem; }
.search-result { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; align-items: start; }
.search-result-image img { width: 100%; }
.search-excerpt { font-size: var(--text-xxs); font-weight: 350; line-height: 1.5; margin: 0.5rem 0 0; }
.search-excerpt mark { background: #fcd34d; color: inherit; }
.card-row--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1023px) { .card-row--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .search-result { grid-template-columns: 5rem 1fr; } .card-row--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- recommended stories */

.recommended { padding: 0 var(--gutter); margin-top: 6rem; border-top: var(--rule-w) solid var(--rule); }
.recommended-title { font-size: var(--text-l); font-weight: 500; line-height: 1.25; margin: 0; padding: 1rem 0 3rem; }
.recommended .card-title { font-size: var(--text-m); }
.recommended-more { text-align: center; margin: 3rem 0 0; }
.recommended-more a {
  display: inline-block; font-size: var(--text-xxs); font-weight: 700; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.6rem 1.5rem;
}

/* ---------------------------------------------------------------- about us */

.about-intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 3rem;
  padding: 1rem var(--gutter) 5rem; border-top: var(--rule-w) solid var(--rule);
}
.about-title { grid-column: 1 / -1; font-size: var(--text-5xl); font-weight: 400; line-height: 1; margin: 0 0 2.5rem; }
.about-lede { grid-column: 1 / 11; }
.about-lede p { font-size: var(--text-xl); font-weight: 350; line-height: 1.4; margin: 0 0 1em; }
.about-section { padding: 0 var(--gutter) 5rem; border-top: var(--rule-w) solid var(--rule); }
.about-split { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.about-split > .section-title { padding-bottom: 0; }
.about-split > :not(.section-title) { padding-top: 1.75rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem 3rem; }
.team-member img { width: 100%; }
.team-member p { margin: 0; }
.team-name { font-size: var(--text-s); padding-top: 1.25rem; }
.team-name strong { font-weight: 700; }
.team-role { font-size: var(--text-xs); padding-top: 0.25rem; }
.team-bio { font-size: var(--text-xs); font-weight: 350; line-height: 1.5; padding-top: 1.25rem; }

.email-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.email-label { font-size: var(--text-m); font-weight: 700; margin: 0 0 0.5rem; }
.email-text { font-size: var(--text-s); font-weight: 350; line-height: 1.5; margin: 0; }

.alumni-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.alumnus p { font-size: 0.75rem; font-weight: 350; line-height: 1.5; margin: 0; }
.alumnus .alumnus-name { font-weight: 700; text-transform: uppercase; }
.alumnus .alumnus-role { margin-bottom: 0.5rem; }

.name-run { font-size: var(--text-s); font-weight: 350; line-height: 1.6; margin: 0; }

.faq + .faq { margin-top: 2.5rem; }
.faq-q { font-size: var(--text-m); font-weight: 400; margin: 0; }
.faq p { font-size: var(--text-s); font-weight: 350; line-height: 1.5; margin: 1rem 0 0; }

@media (max-width: 781px) {
  .about-split, .team-grid, .email-grid, .alumni-grid { grid-template-columns: 1fr; }
  .about-lede { grid-column: 1 / -1; }
}
.tag-title { text-transform: capitalize; }

/* ---------------------------------------------------------------- text pages (submissions, privacy) */

.text-page .page-head { border-top: var(--rule-w) solid var(--rule); padding-top: 1rem; }
.text-page .prose { margin-left: var(--gutter); padding-left: 0; }
.text-page .prose h2 { font-size: var(--text-l); font-weight: 700; margin-top: 3rem; }
.text-page .prose h4 { font-size: var(--text-m); font-weight: 700; margin-top: 2rem; }
main:has(> .newsletter-band:first-child) .join-us { border-top: 0; padding-top: 3rem; }

/* ---------------------------------------------------------------- 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; }
}

/* long headlines step down a notch */
.article-title--long { font-size: clamp(2rem, 1.1rem + 2.3vw, 3.5rem); }

/* ---------------------------------------------------------------- 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; }

/* the article header rises in on load */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.js .article-head > div, html.js .masthead { animation: rise 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) both; }
html.js .article-head .hero { animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.65, 0.2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .article-head > div, html.js .article-head .hero, html.js .masthead { animation: none; }
}

/* small screens: a little more air under the header, slightly smaller reading size */
@media (max-width: 1100px) {
  .site-header { padding-bottom: 1.75rem; }
}
@media (max-width: 520px) {
  .prose p, .prose ul, .prose ol { font-size: var(--text-s); }
  .prose .pullquote p { font-size: var(--text-l); }
}

/* subheads: generous space above, closer to their own section below */
.prose * + h2 { margin-top: 5rem; }
.prose * + h3 { margin-top: 3.5rem; }
.prose h2 + *, .prose h3 + * { margin-top: 1.25rem; }
@media (max-width: 520px) {
  .prose * + h2 { margin-top: 3.5rem; }
  .prose .pullquote { padding: 4.5rem 0; }
  .prose blockquote:not(.pullquote), .prose * + blockquote:not(.pullquote), .prose blockquote:not(.pullquote) + * { margin-top: 3.5rem; }
}
