/* Still Strong website: one stylesheet for the homepage, support, legal and not-found pages. */
:root {
  --ivory: #FBF7F2; --white: #FFFFFF; --ink: #3B1F33; --ink-2: #5E4354; --ink-3: #74556A;
  --plum: #7A2E5C; --blush: #F0DCE3; --rule: #E4C6D1; --night: #2A1524;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px; --gutter: 20px;
  /* Lines a full-bleed column's text up with the centred .wrap column. */
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--plum); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--ivory); }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); text-wrap: balance; }
h1 { margin: 0 0 18px; font-size: clamp(40px, 6.2vw, 66px); line-height: 1.03; }
h2 { margin: 0 0 16px; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.08; }
h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; }
h1 em, h2 em { color: var(--plum); }
p { margin: 0 0 14px; }
.kicker { display: block; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--plum); }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 2px;
  background: var(--ink); color: var(--ivory); font-size: 16px; font-weight: 700; letter-spacing: .02em; text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--plum); }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: var(--blush); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(251, 247, 242, .94); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header-row { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-size: 24px; line-height: 1; text-decoration: none; }
.lockup img { display: block; }
.site-nav { display: none; gap: 26px; margin-left: auto; }
.site-nav a, .site-menu nav a { color: var(--ink-2); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.site-nav a:hover, .site-menu nav a:hover { color: var(--plum); }
.site-header .btn { margin-left: auto; }
.site-menu { position: relative; }
.site-menu summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span, .site-menu summary span::before, .site-menu summary span::after { content: ''; display: block; width: 20px; height: 2px; background: var(--ink); }
.site-menu summary span { position: relative; }
.site-menu summary span::before { position: absolute; top: -6px; }
.site-menu summary span::after { position: absolute; top: 6px; }
.site-menu nav { position: absolute; right: 0; top: 54px; display: grid; min-width: 230px; padding: 8px 0; background: var(--white);
  border: 1px solid var(--rule); box-shadow: 0 16px 40px rgba(59, 31, 51, .14); }
.site-menu nav a { padding: 13px 22px; }
@media (max-width: 419px) { .site-header .btn { display: none; } .site-menu { margin-left: auto; } }
@media (min-width: 900px) { .site-nav { display: flex; } .site-menu { display: none; } .site-header .btn { margin-left: 10px; } }

/* Sections */
.section { padding: 76px 0; border-top: 1px solid var(--rule); scroll-margin-top: 68px; }
.section-white { background: var(--white); }
.section-head { max-width: 660px; margin-bottom: 40px; }
@media (min-width: 900px) { .section { padding: 108px 0; } }
.reveal { transition: opacity .8s ease, transform .8s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } .js .reveal:not(.in) { opacity: 1; transform: none; } }

/* Photos and phones */
.photo { display: block; overflow: hidden; background: var(--blush); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-frame { display: block; overflow: hidden; border: 7px solid var(--night); border-radius: 28px; background: var(--white);
  box-shadow: 0 22px 44px rgba(59, 31, 51, .18); }
.phone-frame img { display: block; width: 100%; height: auto; }

/* Hero */
.hero { display: grid; }
.hero-copy { padding: 44px var(--gutter) 40px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 12px; }
.trust { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero-photo { aspect-ratio: 4 / 5; }
.hero-photo img { object-position: 50% 16%; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts div { padding: 16px 10px; border-right: 1px solid var(--rule); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.facts div:first-child { padding-left: var(--gutter); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; margin-bottom: 2px; font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.2; color: var(--ink); }
@media (min-width: 700px) {
  .hero { grid-template-columns: 1.08fr .92fr; min-height: min(780px, calc(100vh - 68px)); }
  .hero-copy { align-self: center; padding: 72px 56px 72px var(--edge); }
  .hero-photo { aspect-ratio: auto; height: 100%; }
  .facts { border-bottom: 0; }
  .facts div { padding: 26px 32px; font-size: 15px; }
  .facts div:first-child { padding-left: var(--edge); }
  .facts b { font-size: 28px; }
}

/* Every decade */
.decades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 14px; margin: 0; padding: 0; list-style: none; }
.decade { display: block; color: var(--ink); text-decoration: none; }
.decade .photo { aspect-ratio: 4 / 5; margin-bottom: 12px; }
.decade .photo img { transition: transform .6s ease; }
.decade:hover .photo img { transform: scale(1.03); }
.decade b { display: block; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.decade span { font-size: 15px; color: var(--ink-2); }
@media (min-width: 700px) { .decades { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* Two columns */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 700px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.method-photo { aspect-ratio: 4 / 5; }
.principles { margin: 10px 0 0; padding: 0; list-style: none; }
.principles li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 24px 0; border-top: 1px solid var(--rule); }
.principles .n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--plum); }
.principles p { margin: 0; color: var(--ink-2); }

/* Workouts */
.sessions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; margin: 0; padding: 0; list-style: none; }
.sessions .photo { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.sessions p { margin: 0; font-size: 15px; color: var(--ink-2); }
.equipment { max-width: 660px; margin: 34px 0 0; color: var(--ink-2); }
@media (min-width: 700px) { .sessions { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* Meals: the phone column is sized so it ends level with the kitchen photo. */
.meal-photos { display: grid; grid-template-columns: 1fr .578fr; gap: 14px; }
.meal-photos .recipe { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.meal-photos .kitchen { aspect-ratio: 4 / 5; }
.meal-photos .phone-frame { align-self: start; }

/* The app */
.app-screens { display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px); margin: 8px 0 56px; }
.app-screens .phone-frame { width: min(30%, 230px); }
.app-screens .phone-frame:nth-child(2) { margin-top: -22px; }
.features { display: grid; gap: 0 44px; margin: 0; padding: 0; list-style: none; }
.features li { padding: 20px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.features b { display: block; margin-bottom: 2px; font-size: 17px; color: var(--ink); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Plans */
.plans { display: grid; margin: 0 0 20px; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--rule); }
.plan { padding: 30px 28px; border-bottom: 1px solid var(--rule); }
.plan:last-child { border-bottom: 0; }
.plan.recommended { outline: 2px solid var(--ink); outline-offset: -2px; }
.plan .badge { display: block; min-height: 20px; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); }
.plan h3 { font-size: 19px; }
.plan p { margin: 0; color: var(--ink-2); }
.plan .price { display: block; margin: 8px 0 2px; font-family: var(--serif); font-size: 46px; line-height: 1.1; color: var(--ink); }
.plans-note { margin: 0 0 28px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(3, 1fr); } .plan { border-bottom: 0; border-right: 1px solid var(--rule); } .plan:last-child { border-right: 0; } }

/* FAQ */
.faq { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; padding: 21px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--plum); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 660px; margin: 0 0 22px; color: var(--ink-2); }

/* Final call */
.final { display: grid; background: var(--ink); color: var(--ivory); }
.final h2 { color: var(--ivory); }
.final .kicker { color: var(--blush); }
.final-copy { align-self: center; padding: 72px var(--gutter); }
.final-photo { aspect-ratio: 3 / 4; }
.final-photo img { object-position: 50% 14%; }
@media (min-width: 700px) {
  .final { grid-template-columns: 1fr 1fr; }
  .final-copy { padding: 100px 72px 100px var(--edge); }
  .final-photo { aspect-ratio: auto; min-height: 600px; }
}

/* Footer */
.site-footer { padding: 60px 0 calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.footer-grid { display: grid; gap: 34px; }
.footer-grid nav { display: grid; align-content: start; }
.footer-grid nav a { display: inline-flex; align-items: center; min-height: 38px; color: var(--ink-2); text-decoration: none; }
.footer-grid nav a:hover { color: var(--plum); }
.footer-title { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.footer-brand p { margin: 14px 0 0; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* Text pages: support, legal and not found */
.page { padding: 60px 0 96px; }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(38px, 5vw, 54px); }
.prose h2 { margin: 42px 0 10px; font-family: var(--sans); font-size: 20px; font-weight: 700; }
.prose p, .prose li { color: var(--ink-2); }
.prose .meta { font-size: 14px; color: var(--ink-3); }
.contact-card { margin: 26px 0 8px; padding: 26px 28px; background: var(--white); border: 1px solid var(--rule); }
.contact-card p { margin: 6px 0 0; }
.contact-card a { font-family: var(--serif); font-size: 26px; text-decoration: none; }
.cancel-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 2px; background: var(--ink);
  color: var(--ivory); font-weight: 700; text-decoration: none; }
.cancel-link:hover { background: var(--plum); }
.not-found-links { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 26px; }
