/*
 * The website the app stores require next to the Rentle apps, set after the Rentle brand sheet.
 * The wordmark is Cormorant Garamond in the brand orange. Titles and text use the free faces that
 * stand in for the sheet's licensed ones: Nunito Sans for Avenir Next, Libre Baskerville for ITC New
 * Baskerville. All three are served from here under the SIL Open Font License (see assets/fonts), so
 * a visit reaches no third party.
 */

@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/nunito-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/nunito-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/nunito-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/libre-baskerville-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url('fonts/libre-baskerville-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/libre-baskerville-latin-700-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --canvas: #fdfaf9;
  --ink: #1c1a17;
  --text: #262220;
  /* 5.6:1 on the canvas; the app's lighter grey reaches only 3.7:1 here. */
  --muted: #6e645a;
  --brand: #c75107;
  /* The brand orange is 4.4:1 on the canvas, just short of what small text needs; links use this
     deeper tint of it (5.2:1). */
  --brand-strong: #b34906;
  --rule: #eee4df;
  --mark: #f8e3d6;

  --wordmark: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --heading: 'Nunito Sans', 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  --reading: 'Libre Baskerville', Baskerville, Georgia, serif;

  --measure: 36rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--reading);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  font-family: var(--heading);
  background: var(--ink);
  color: var(--canvas);
  padding: 0.5rem 0.9rem;
}
.skip-link:focus {
  top: 1rem;
}

/* ---- Page frame ------------------------------------------------------------------------------ */

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  padding-block: 1.75rem 0;
}
.site-header a {
  font-family: var(--wordmark);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--brand);
  text-decoration: none;
}

main {
  padding-block: 3rem 4rem;
}

.site-footer {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--heading);
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
/* The gap spaces these; the rule for lists in running text does not apply here. */
.site-footer nav li + li {
  margin-top: 0;
}
.site-footer p {
  margin: 0;
}

/* ---- Type ------------------------------------------------------------------------------------ */

/* Titles are set in capitals in the heading face, as the brand sheet shows them. */
h1,
h2,
h3 {
  font-family: var(--heading);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
}
h1 {
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  margin: 0 0 1.5rem;
}
h2 {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 2.75rem 0 0.75rem;
}
h3 {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin: 1.75rem 0 0.4rem;
}

p,
ul,
ol {
  margin: 0 0 1.1rem;
}
li + li {
  margin-top: 0.35rem;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}
.muted {
  color: var(--muted);
}

.notice {
  font-family: var(--heading);
  font-size: 0.9rem;
  line-height: 1.55;
  border-left: 3px solid var(--brand);
  background: #fff;
  padding: 0.85rem 1rem;
  margin: 0 0 2rem;
}

/* ---- Landing --------------------------------------------------------------------------------- */

/* The one large thing on the site: the name, the way the brand sheet sets it. */
.hero {
  padding-block: clamp(2rem, 8vh, 5rem) 3rem;
}
.hero .wordmark {
  font-family: var(--wordmark);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--brand);
  font-size: clamp(4.5rem, 3rem + 9vw, 8.5rem);
  line-height: 0.9;
  margin: 0 0 1.75rem;
}
.hero .tagline {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.pillars {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillars h2 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}
.pillars p {
  margin: 0;
}

.availability {
  padding-block: 2.5rem 0;
  font-family: var(--heading);
}
.availability p {
  margin: 0;
}

.steps li::marker {
  font-family: var(--heading);
  font-weight: 700;
  color: var(--brand-strong);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.store-badges li + li {
  margin-top: 0;
}
/* Both badges at the same height; the Google badges are trimmed to their visible area. */
.store-badges img {
  display: block;
  width: auto;
  height: 48px;
}
