/* sundayvisit.com.au/research: the published research behind each part of the app (W-01).
   A static page with no app code, in the homepage's look: the same paper, inks and Home tile colours as
   client/src/landing-v4.css (websiteQa.test.ts keeps them equal to theme.css), Newsreader for what the
   page says, Outfit for what you read and press.

   Body text 19px or more, nothing under 18px (staticPageTextSize.test.ts). Every clamp() has a plain
   line before it for Chrome 78; flex layouts use margins, not gap (Chrome 78 has no flex gap). */

:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --card: #fffcf7;
  --ink: #13243b;
  --ink-soft: #4a5363;
  --pine: #245447;
  --pine-hover: #1b4338;
  --ring: #8a6420;
  --bezel: #1d2b2a;
  --sun: #f3dfb4;
  --rule: rgba(19, 36, 59, .12);
  /* The Home tiles' colours (theme.css), so each part of the page wears the colour it has in the app. */
  --sky: #d3e0ea;
  --sand: #ecdfc8;
  --sage: #d6e2d3;
  --lavender: #ddd6e7;
  --butter: #f1e6c3;
  --rose: #ecd4cf;
  --mist: #e2e7e1;
  --deep-sky: #46677f;
  --deep-sand: #85673a;
  --deep-sage: #466555;
  --deep-lavender: #635782;
  --deep-butter: #7f7030;
  --deep-rose: #8a5751;
  --deep-mist: #4f5f58;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: 1.25rem;
  --max: 74rem;
}

/* The page's own type scale: 100%, and 110% on wide screens. (The saved A/A/A text sizes are
   gone; every visitor gets Standard.) */
html { -webkit-text-size-adjust: 100%; font-size: 100%; }
@media (min-width: 768px) {
  html { font-size: 110%; }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--pine-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 6rem; }
.sv-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sv-tile-art { display: block; width: 100%; height: 100%; }

/* ---------- Header: the homepage's, without its menu (this page has no sections to jump between up there) ---------- */
.sv-skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 40;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fffdf8;
  font-weight: 600;
  text-decoration: none;
}
.sv-skip:focus { top: .75rem; color: #fffdf8; }
.sv-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: .5rem var(--gutter);
  background: rgba(246, 241, 232, .96);
  border-bottom: 1px solid rgba(19, 36, 59, .07);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sv-header { background: rgba(246, 241, 232, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.sv-header-home { display: block; flex: none; border-radius: 12px; }
.sv-logo { display: block; width: auto; height: 44px; }
.sv-header-tools { display: flex; align-items: center; }
.sv-header-tools > * + * { margin-left: .6rem; }
.sv-header-link { display: none; }
.sv-header .sv-header-cta { display: none; }

.sv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.4rem;
  border-radius: 16px;
  font: 600 1.125rem/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
a.sv-button-primary { background: var(--pine); color: #fffdf8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 16px -8px rgba(19, 36, 59, .5); }
a.sv-button-primary:hover { background: var(--pine-hover); color: #fffdf8; }

/* ---------- Opening: the promise of the page, the one thing to know first, and the app's own Home screen as the contents ---------- */
.sv-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-row-gap: 2.75rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3.5rem;
}
.sv-open h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 3.25rem;
  font-size: clamp(3.25rem, 1.6rem + 6.4vw, 6.75rem);
  line-height: .95;
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 72;
}
.sv-lead { margin-top: 1.5rem; max-width: 32em; font-size: 1.3125rem; line-height: 1.55; }
.sv-first {
  margin-top: 2rem;
  max-width: 34em;
  padding: 1.25rem 1.4rem 1.35rem;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(19, 36, 59, .14);
}
.sv-first h2 { font: 600 1.1875rem/1.3 var(--sans); }
.sv-first p { margin-top: .45rem; }
.sv-checked { margin-top: 1.25rem; color: var(--ink-soft); font-size: 1.125rem; }

/* The contents look like the Home screen they describe: the same six buttons, in the app's order and colours. */
.sv-home {
  align-self: start;
  padding: 1.1rem 1.1rem 1.25rem;
  border-radius: 30px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(19, 36, 59, .1), 0 30px 60px -40px rgba(19, 36, 59, .45);
}
.sv-home h2 { margin: .2rem .35rem .25rem; font: 400 1.625rem/1.2 var(--serif); }
.sv-home > p { margin: 0 .35rem 1rem; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.45; }
.sv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: .7rem; }
.sv-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 7.25rem;
  padding: .8rem .85rem .9rem;
  border-radius: 18px;
  background: var(--tone);
  box-shadow: inset 0 0 0 1px rgba(19, 36, 59, .12);
  color: var(--ink);
  font: 600 1.125rem/1.2 var(--sans);
  text-decoration: none;
}
.sv-tile:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--tone-deep); }
.sv-tile-pic { display: block; width: 46px; height: 46px; margin: -.1rem 0 .55rem -.2rem; color: var(--tone-deep); }
.sv-tiles .sv-tile-row { grid-column: 1 / -1; }
.sv-tile-row .sv-tile { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 64px; }
.sv-tile-row .sv-tile-pic { width: 34px; height: 34px; margin: 0 .75rem 0 .1rem; }
.sv-more { margin: 1.1rem .35rem 0; }
.sv-more li { border-top: 1px solid var(--rule); }
.sv-more a { display: flex; align-items: center; min-height: 52px; padding: .35rem 0; color: var(--ink); font-size: 1.125rem; text-decoration: none; }
.sv-more a:hover { color: var(--pine); text-decoration: underline; }

/* ---------- One part of the app: its tile, what it is, what the studies found, and what they don't show ---------- */
.sv-part { max-width: var(--max); margin: 0 auto; padding: 3.5rem var(--gutter); }
.sv-part-inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.sv-part-head { padding: 1.4rem 1.4rem 1.6rem; border-radius: 28px; background: var(--tone); }
.sv-part-tile {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 252, 247, .55);
  box-shadow: inset 0 0 0 1px rgba(19, 36, 59, .12);
  color: var(--tone-deep);
}
.sv-part h2, .sv-band h2, .sv-method h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.25rem;
  font-size: clamp(2.25rem, 1.45rem + 3vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.sv-part-app { margin-top: .9rem; max-width: 34em; font-size: 1.25rem; line-height: 1.55; }
.sv-findings { margin-top: 1.5rem; }
.sv-findings > li { padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--rule); }
.sv-findings h3 { color: var(--tone-deep); font: 600 1.125rem/1.3 var(--sans); }
/* Butter's deep tone is 4.38:1 on the page, so its finding headings (18px) take a darker shade that reaches 5.7:1. */
.sv-tone-butter .sv-findings h3 { color: #6c5f24; }
.sv-finding { margin-top: .45rem; max-width: 30em; font-family: var(--serif); font-size: 1.375rem; line-height: 1.45; }
.sv-detail { margin-top: .6rem; max-width: 36em; color: var(--ink); }
.sv-from { margin-top: .6rem; max-width: 36em; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.5; }
/* A source link is short, so its tap area reaches past the words without moving them. */
.sv-from a { display: inline-block; margin: -.6rem -.35rem; padding: .6rem .35rem; }
.sv-back { margin-top: 1.5rem; font-size: 1.125rem; }
.sv-back a { display: inline-flex; align-items: center; min-height: 48px; }
.sv-keep {
  margin-top: 1.75rem;
  max-width: 36em;
  padding: 1.1rem 1.25rem 1.2rem;
  border-left: 4px solid var(--tone-deep);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 252, 247, .8);
}
.sv-keep h3 { font: 600 1.125rem/1.3 var(--sans); }
.sv-keep p { margin-top: .35rem; }
.sv-keep p + p { margin-top: .6rem; }
.sv-part-phone { display: none; }
.sv-phone {
  padding: 9px;
  border-radius: 44px;
  background: var(--bezel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 2px 4px rgba(19, 36, 59, .08), 0 34px 70px -34px rgba(19, 36, 59, .55);
}
.sv-phone img { width: 100%; border-radius: 35px; background: #f4efe6; }
.sv-part-phone figcaption { margin-top: 1rem; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.45; text-align: center; }

.sv-tone-sky { --tone: var(--sky); --tone-deep: var(--deep-sky); }
.sv-tone-sand { --tone: var(--sand); --tone-deep: var(--deep-sand); }
.sv-tone-sage { --tone: var(--sage); --tone-deep: var(--deep-sage); }
.sv-tone-lavender { --tone: var(--lavender); --tone-deep: var(--deep-lavender); }
.sv-tone-butter { --tone: var(--butter); --tone-deep: var(--deep-butter); }
.sv-tone-rose { --tone: var(--rose); --tone-deep: var(--deep-rose); }
.sv-tone-mist { --tone: var(--mist); --tone-deep: var(--deep-mist); }

/* ---------- Bands: the numbers, how the screens are built, and how this page was made ---------- */
.sv-band { max-width: var(--max); margin: 0 auto; padding: 4rem var(--gutter); }
.sv-band-head { max-width: 40em; margin-bottom: 2rem; }
.sv-band-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.25rem; line-height: 1.55; }
.sv-rule { border-top: 1px solid var(--rule); }

.sv-facts { border-top: 1px solid var(--rule); }
.sv-facts li { display: grid; grid-template-columns: minmax(0, 1fr); padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.sv-fact-figure { font: 400 2.75rem/1 var(--serif); letter-spacing: -.03em; font-variation-settings: "opsz" 72; }
.sv-fact-text { margin-top: .6rem; max-width: 34em; }
.sv-fact-text .sv-from { margin-top: .35rem; }

.sv-choices { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 0; border-top: 1px solid var(--rule); }
.sv-choices li { padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--rule); }
.sv-choices h3 { font: 400 1.625rem/1.2 var(--serif); }
.sv-choices .sv-detail { margin-top: .55rem; }

/* ---------- The research by topic, and Questions people ask: plain text, no tile colour ---------- */
.sv-topic-body, .sv-faq-list { max-width: 44em; }
.sv-topic-body h3 { margin-top: 2rem; color: var(--pine); font: 600 1.1875rem/1.3 var(--sans); }
.sv-topic-body h3:first-child { margin-top: 0; }
.sv-topic-body > p { margin-top: .75rem; }
.sv-topic-list { margin-top: .75rem; border-top: 1px solid var(--rule); }
.sv-topic-list li { padding: .9rem 0 1rem; border-bottom: 1px solid var(--rule); }
.sv-faq-list { border-top: 1px solid var(--rule); }
.sv-faq-item { padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.sv-faq-item h3 { font: 400 1.625rem/1.2 var(--serif); }
.sv-faq-item p { margin-top: .55rem; }

.sv-method { background: var(--pine); color: #f4efe4; }
.sv-method-inner { max-width: var(--max); margin: 0 auto; padding: 4.5rem var(--gutter); }
.sv-method h2 { color: #fffdf8; }
.sv-method .sv-band-head p { color: #e8e1d2; }
.sv-method-list { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 1.5rem; max-width: 60rem; }
.sv-method-list li { padding-top: 1.1rem; border-top: 1px solid rgba(255, 253, 248, .2); }
.sv-method-list h3 { color: var(--sun); font: 600 1.125rem/1.3 var(--sans); }
.sv-method-list p { margin-top: .35rem; }
.sv-method a { color: #fffdf8; font-weight: 600; }
.sv-method a:hover { color: var(--sun); }

/* ---------- Every source, numbered in the order the page first uses them ---------- */
.sv-sources { max-width: 50rem; border-top: 1px solid var(--rule); }
.sv-sources li { display: flex; padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--rule); font-size: 1.125rem; line-height: 1.5; }
.sv-source-n { flex: none; width: 2.6rem; color: var(--ink-soft); font: 400 1.25rem/1.35 var(--serif); }
.sv-source-text { min-width: 0; overflow-wrap: anywhere; }
.sv-source-text a { font-weight: 600; }
.sv-source-used { color: var(--ink-soft); }

/* ---------- Footer: the homepage's ---------- */
.sv-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-row-gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--gutter) 3.5rem;
  font-size: 1.125rem;
}
.sv-footer .sv-logo { height: 44px; }
.sv-footer-brand p { margin-top: .5rem; color: var(--ink-soft); }
.sv-footer-links, .sv-footer-social { display: flex; flex-wrap: wrap; margin: -.4rem 0 0 -1.25rem; }
.sv-footer-links a, .sv-footer-social a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; margin: .2rem 0 0 1.25rem; color: var(--ink); }
.sv-footer-social a { color: var(--ink-soft); }
.sv-footer-legal { color: var(--ink-soft); max-width: 46em; }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .sv-header .sv-header-cta { display: inline-flex; min-height: 48px; }
  .sv-tiles { grid-gap: .85rem; }
  .sv-facts li { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); grid-column-gap: 2rem; align-items: baseline; }
  .sv-fact-text { margin-top: 0; }
  .sv-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column-gap: 3rem; }
  .sv-method-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column-gap: 3rem; }
}

@media (min-width: 900px) {
  .sv-logo { height: 56px; }
  .sv-header-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .8rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
  .sv-header-link:hover { background: rgba(19, 36, 59, .06); color: var(--ink); }
  .sv-open { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-column-gap: 4rem; align-items: start; padding-top: 4rem; padding-bottom: 5rem; }
  .sv-part { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .sv-part-inner { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-column-gap: 4rem; align-items: start; }
  .sv-part-head, .sv-part-body { grid-column: 1; }
  .sv-part-head { padding: 2rem 2.25rem 2.25rem; }
  .sv-part-phone { display: block; grid-column: 2; grid-row: 1 / span 2; position: -webkit-sticky; position: sticky; top: 7rem; width: 100%; max-width: 19rem; justify-self: center; }
  .sv-finding { font-size: 1.5rem; }
  .sv-band { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .sv-method-inner { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  /* Two columns of sources; each one stays whole. */
  .sv-sources { max-width: none; -webkit-column-count: 2; column-count: 2; -webkit-column-gap: 3rem; column-gap: 3rem; border-top: 0; }
  .sv-sources li { -webkit-column-break-inside: avoid; break-inside: avoid; border-top: 1px solid var(--rule); border-bottom: 0; }
  .sv-footer {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "brand links" "brand social" "legal legal";
    grid-column-gap: 3rem;
    grid-row-gap: 1.25rem;
    align-items: start;
  }
  .sv-footer-brand { grid-area: brand; }
  .sv-footer-links { grid-area: links; }
  .sv-footer-social { grid-area: social; }
  .sv-footer-legal { grid-area: legal; margin-top: 1.5rem; }
}

@media (min-width: 1100px) {
  .sv-header { padding-left: 2.5rem; padding-right: 2.5rem; min-height: 84px; }
  .sv-logo { height: 64px; }
}

@media print {
  .sv-header, .sv-home, .sv-part-phone, .sv-footer-social { display: none !important; }
  .sv-method { background: none; color: var(--ink); }
  .sv-method h2, .sv-method a { color: var(--ink); }
  .sv-method-list h3 { color: var(--ink); }
}

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