/* prettyme.ph: the magazine's own stylesheet (Dean, 2026-10-03: pink, feminine,
   the shape of Vogue, Elle and Cosmopolitan). Every colour is a token in
   brand.css; nothing here names one, white and black aside.

   The shape: big photography, Playfair Display headlines, Inter for reading,
   hairline rules, and white space doing the work a box would do elsewhere. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-strong); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand-ink); color: var(--on-brand); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- masthead */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead__top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-top: 1.4rem; padding-bottom: 1.1rem;
}
.masthead__tagline { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: .95rem; }
.masthead__brand img { width: 250px; height: auto; }
/* The search box is the tagline's width, so the two sides of the logo balance (Dean, 2026-10-03). */
.masthead__tagline, .masthead__find { width: 10.75rem; }
.masthead__tagline { white-space: nowrap; }
.masthead__find { justify-self: end; position: relative; }
.masthead__find input {
  width: 100%; font: inherit; font-size: .85rem; color: var(--ink-strong); background: var(--surface);
  padding: .45rem 2.2rem .45rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px;
}
.masthead__find input:focus { outline: none; border-color: var(--brand); }
.masthead__find input::-webkit-search-cancel-button { display: none; }
.masthead__find button {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 1.8rem; height: 1.8rem; padding: 0;
  border: 0; background: none; color: var(--ink-strong); cursor: pointer;
}
.masthead__find button:hover { color: var(--brand-ink); }
.masthead__search { display: none; justify-self: end; color: var(--ink-strong); }
.sections { border-top: 1px solid var(--line); }
.sections__list {
  list-style: none; display: flex; justify-content: center; gap: 2.4rem;
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem;
}
.sections__list a {
  display: block; padding: .85rem 0 .8rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-strong);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.sections__list a:hover, .sections__list a[aria-current], .sections__list a.is-current { color: var(--brand-ink); border-bottom-color: var(--brand); }

@media (max-width: 760px) {
  .masthead__top { grid-template-columns: 2.5rem 1fr 2.5rem; padding-top: .8rem; padding-bottom: .6rem; }
  .masthead__tagline { display: none; }
  .masthead__brand { grid-column: 2; justify-self: center; }
  .masthead__brand img { width: 170px; }
  .masthead__find { display: none; }
  .masthead__search { grid-column: 3; display: inline-flex; }
  /* A strip that scrolls sideways: every section one swipe away, no menu button. */
  .sections__list { justify-content: flex-start; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 1.25rem; }
  .sections__list::-webkit-scrollbar { display: none; }
  .sections__list a { padding: .7rem 0 .65rem; }
  .sections { position: relative; }
  .sections::after { content: ''; position: absolute; right: 0; top: 0; bottom: 1px; width: 2.5rem; background: linear-gradient(to right, rgba(255,255,255,0), #fff); pointer-events: none; }
}

/* ---------------------------------------------------------------- shared parts */
.kicker { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: .55rem; }
.kicker a:hover { color: var(--brand-deep); }
.ph { display: block; width: 100%; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--blush-soft), var(--blush)); }

.card { display: flex; flex-direction: column; gap: .9rem; }
.card__media { display: block; overflow: hidden; background: var(--blush-soft); }
.card__media img, .card__media .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__title { font-size: 1.3rem; line-height: 1.22; }
.card__title a:hover { color: var(--brand-ink); }
.card__dek { color: var(--muted); font-size: .95rem; line-height: 1.55; margin-top: .5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }
.card__meta:empty { display: none; }
/* The date on a line of its own (Dean, 2026-10-03), so it never breaks across two. */
.card__date { display: block; margin-top: .2rem; white-space: nowrap; }

.card--lead .card__media img, .card--lead .card__media .ph { aspect-ratio: 4 / 3; }
.card--lead .card__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; font-weight: 600; }
.card--lead .card__dek { font-size: 1.05rem; -webkit-line-clamp: 4; }
.card--feature .card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.12; }
.card--row { flex-direction: row; gap: 1.1rem; align-items: flex-start; }
.card--row .card__media { flex: 0 0 38%; }
.card--row .card__media img, .card--row .card__media .ph { aspect-ratio: 4 / 3; }
.card--row .card__title { font-size: 1.12rem; }
.card--mini .card__title { font-size: 1rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.8rem 2rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid--4 { grid-template-columns: 1fr; gap: 2.2rem; } }

.btn {
  display: inline-block; background: var(--brand-ink); color: var(--on-brand); border: 0; cursor: pointer;
  font: 600 .8rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; padding: 1rem 1.6rem;
}
.btn:hover { background: var(--brand-deep); color: var(--on-brand); }

/* ---------------------------------------------------------------- home */
.cover { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.6rem; padding-top: 2.4rem; padding-bottom: 3rem; }
.cover__side { display: flex; flex-direction: column; gap: 1.8rem; }
.cover__side .card { flex-direction: row; align-items: flex-start; gap: 1.1rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.cover__side .card:last-child { border-bottom: 0; padding-bottom: 0; }
.cover__side .card__media { flex: 0 0 42%; }
.cover__side .card__media img, .cover__side .card__media .ph { aspect-ratio: 1 / 1; }
.cover__side .card__title { font-size: 1.2rem; }
.cover__side .card__dek { -webkit-line-clamp: 2; font-size: .9rem; }

.band { padding: 3rem 0; border-top: 1px solid var(--line-strong); }
.band__head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1.4rem; margin-bottom: 2rem; }
.band__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-style: italic; font-weight: 500; }
.band__head h2 a:hover { color: var(--brand-ink); }
.band__head p { color: var(--muted); font-size: .95rem; }
.band__more { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); border-bottom: 1px solid var(--brand); padding-bottom: 2px; white-space: nowrap; }
.band__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.4rem; }
.band__rest { display: flex; flex-direction: column; gap: 1.6rem; }
.band:nth-of-type(even) .band__grid { grid-template-columns: 1fr 1.2fr; }
.band:nth-of-type(even) .band__grid > .card { order: 2; }


@media (max-width: 900px) {
  .cover { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.4rem; }
  .band__grid, .band:nth-of-type(even) .band__grid { grid-template-columns: 1fr; }
  .band:nth-of-type(even) .band__grid > .card { order: 0; }
  .band__head { grid-template-columns: 1fr auto; }
  .band__head p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
  .card--lead .card__title { font-size: 1.85rem; }
  .cover__side .card__media { flex-basis: 36%; }
  .band { padding: 2.2rem 0; }
}

/* ---------------------------------------------------------------- section */
.sechead { text-align: center; padding-top: 3rem; padding-bottom: 2.6rem; }
.sechead h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; font-style: italic; }
.sechead__dek { color: var(--muted); font-size: 1.05rem; margin-top: .8rem; }
.sechead__count { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.seclead { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.seclead .card--lead { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.4rem; align-items: center; }
@media (max-width: 900px) { .seclead .card--lead { grid-template-columns: 1fr; gap: 1rem; } .sechead { padding-top: 2rem; padding-bottom: 1.8rem; } }

.pager { display: flex; justify-content: center; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 3.5rem 0 1rem; font-size: .9rem; }
.pager a, .pager span { min-width: 2.4rem; padding: .55rem .8rem; text-align: center; border: 1px solid var(--line); }
.pager a:hover { border-color: var(--brand-ink); }
.pager [aria-current] { background: var(--ink-strong); color: #fff; border-color: var(--ink-strong); }
.pager .pager__gap { border-color: transparent; }
.pager__step { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }

/* ---------------------------------------------------------------- article */
.story__head { max-width: 860px; text-align: center; padding-top: 3rem; padding-bottom: 2.2rem; }
.story__head h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; font-weight: 600; }
.story__dek { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; color: var(--muted); margin-top: 1.1rem; }
.byline { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.6rem; text-align: left; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.byline a { color: var(--ink-strong); font-weight: 600; }
.byline a:hover { color: var(--brand-ink); }
.byline__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline__sep { margin: 0 .3rem; }
.story__hero { max-width: 1100px; margin: 0 auto 2.6rem; padding: 0 1.25rem; }
.story__hero img { width: 100%; max-height: 720px; object-fit: cover; }

.prose { max-width: var(--column); margin: 0 auto; padding: 0 1.25rem; font-size: 1.075rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-top: 2.8rem; line-height: 1.2; }
.prose h3 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h4 { font-family: var(--font-text); font-size: 1rem; font-weight: 600; letter-spacing: .02em; margin-top: 1.8rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .8rem; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-decoration-color: var(--brand-soft); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brand-deep); text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink-strong); font-weight: 600; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: .3rem 0 .3rem 1.4rem; border-left: 2px solid var(--brand); font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink-strong); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { margin: 0 auto; }
.prose figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.6rem auto; width: 30%; }
.prose .lede { font-size: 1.25rem; line-height: 1.65; color: var(--ink-strong); }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink-strong); background: var(--blush-soft); }
.prose details.faq { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.prose details.faq summary { cursor: pointer; font-weight: 600; color: var(--ink-strong); }
.prose details.faq > div { margin-top: .6rem; }
/* A gallery: the pictures side by side, two across on a phone. */
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.prose .gallery figure { margin: 0; }
.prose .gallery img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 600px) { .prose .gallery { grid-template-columns: repeat(2, 1fr); } }
.prose .video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }

.authorcard { display: flex; gap: 1.2rem; align-items: flex-start; margin-top: 3.2rem; padding: 1.6rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.6; }
.authorcard img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.authorcard__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-strong); margin-bottom: .3rem; }
.authorcard__name a { text-decoration: none; color: inherit; }
.authorcard__name span { font-family: var(--font-text); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin-left: .4rem; }
.prose .authorcard p + p { margin-top: 0; }

.more { padding-top: 3.2rem; padding-bottom: 1rem; margin-top: 3rem; border-top: 1px solid var(--line-strong); }
.more__head { font-size: 1.9rem; font-style: italic; font-weight: 500; margin-bottom: 2rem; text-align: center; }
.more__head a { color: var(--brand-ink); }

@media (max-width: 600px) {
  .story__head { padding-top: 1.8rem; text-align: left; }
  .story__hero { padding: 0; margin-bottom: 2rem; }
  .prose { font-size: 1.04rem; }
}

/* ---------------------------------------------------------------- about, authors, plain pages */
.about__head, .plain__head { max-width: 860px; text-align: center; padding-top: 3rem; padding-bottom: 2rem; }
.about__head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-style: italic; font-weight: 500; }
.plain__head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.about__intro { padding-bottom: 3rem; }
.team { padding-top: 3.2rem; padding-bottom: 3rem; border-top: 1px solid var(--line-strong); }
.team h2 { text-align: center; font-size: 2rem; font-style: italic; font-weight: 500; margin-bottom: 2.6rem; }
.team__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2.8rem 2.2rem; }
.team__member { text-align: center; font-size: .93rem; line-height: 1.6; color: var(--ink); }
.team__member img, .team__member .ph { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; aspect-ratio: 1; }
.team__member h3 { font-size: 1.3rem; }
.team__role { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); margin: .3rem 0 .8rem; }
.about__closing { padding-top: 2.4rem; padding-bottom: 1rem; border-top: 1px solid var(--line); }
.about__closing h2 { margin-top: 0; }

.authorhead { display: flex; gap: 2rem; align-items: center; max-width: 900px; padding-top: 3rem; padding-bottom: 3rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--line); }
.authorhead img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.authorhead h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .8rem; }
.authorhead p + p { margin-top: .6rem; }
@media (max-width: 600px) { .authorhead { flex-direction: column; text-align: center; align-items: center; } }

/* ---------------------------------------------------------------- contact */
.contactform .field { display: flex; flex-direction: column; gap: .35rem; }
.contactform label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-strong); }
.contactform input, .contactform textarea { font: inherit; padding: .8rem .9rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.contactform input:focus, .contactform textarea:focus { border-color: var(--brand-ink); outline: none; }
.hp { position: absolute; left: -9999px; }
.hint { font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------- search (src/render/search.ts) */
.hub__head { text-align: center; padding: 3rem 0 2rem; }
.hub__head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-style: italic; font-weight: 500; margin-bottom: 1.4rem; }
.searchpage { display: flex; gap: .5rem; max-width: 620px; margin: 0 auto; }
.searchpage input { flex: 1; font: inherit; padding: .85rem 1rem; border: 1px solid var(--line-strong); }
.searchhint, .pindex__count { text-align: center; color: var(--muted); margin: 1rem 0 2rem; }
.searchhint a { color: var(--brand-ink); text-decoration: underline; }
.results { list-style: none; max-width: 820px; margin: 0 auto 3rem; padding: 0; }
.result { display: flex; gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.result__shot { width: 110px; height: 110px; object-fit: cover; flex: 0 0 auto; }
.result__kind { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.result__title { font-size: 1.25rem; margin: .25rem 0 .4rem; }
.result__blurb { color: var(--muted); font-size: .93rem; }
.result mark { background: var(--blush-soft); color: inherit; }

/* ---------------------------------------------------------------- ads (src/render/ads.ts) */
.ad { margin: 2.4rem auto; text-align: center; min-height: 100px; }
.ad__label { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.adrail { display: none; }
@media (min-width: 1700px) {
  .adrail { display: block; position: fixed; top: 180px; width: 160px; }
  .adrail--l { left: calc(50% - 620px - 200px); }
  .adrail--r { right: calc(50% - 620px - 200px); }
  .adrail .ad { margin: 0; }
}

/* ---------------------------------------------------------------- footer */
.footer { background: var(--blush-soft); margin-top: 4rem; padding-top: 3.4rem; font-size: .9rem; }
/* The link columns take their own width, so the last one ends where the copyright line does. */
.footer__inner { display: grid; grid-template-columns: 1fr auto auto; gap: 2.4rem 5rem; padding-bottom: 2.6rem; }
.footer__brand { display: inline-block; }
.footer__brand img { display: block; width: 180px; height: auto; }
.footer__about p { color: var(--muted); margin-top: .7rem; max-width: 420px; line-height: 1.6; }
.footer__heading { font-family: var(--font-text); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-strong); margin-bottom: 1rem; }
.footer__col ul { list-style: none; }
.footer__col li + li { margin-top: .5rem; }
.footer__col a:hover { color: var(--brand-ink); }
.footer__base { border-top: 1px solid var(--blush); padding-top: 1.4rem; padding-bottom: 2rem; color: var(--muted); font-size: .8rem; display: flex; justify-content: space-between; gap: 2rem; }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; gap: .6rem; }
}
