/* base.css - the plain furniture every page uses: text, buttons, bands, cards, footer. */

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

html { scroll-behavior: smooth; overflow-x: clip; }  /* the phone menu parks off to the right when closed */

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* A small capital label above a heading, with an amber rule. */
.eyebrow {
  font-family: var(--label);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sun-ink);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--sun); flex: none; }
.on-dark .eyebrow { color: var(--sun); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--sun);
  color: #2B1E00;
  font-family: var(--label);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--sun-light); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232, 163, 58, .40); }
.btn.ghost { background: transparent; border-color: currentColor; color: var(--white); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.btn.dark { background: var(--navy); color: var(--white); }
.btn.dark:hover { background: var(--navy-mid); box-shadow: 0 10px 26px rgba(27, 42, 74, .30); }
.btn.small { padding: 11px 20px; font-size: 12.5px; }

/* Bands */
.band { padding: clamp(46px, 5.6vw, 80px) 0; }
.band.dark { background: var(--navy); color: var(--white); }
.band.deep { background: var(--navy-deep); color: var(--white); }
.band.soft { background: var(--sky-soft); }
.band.paper { background: var(--cream-2); }
.band.dark p, .band.deep p { color: rgba(255, 255, 255, .86); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.on-dark .lede, .band.dark .lede, .band.deep .lede { color: rgba(255, 255, 255, .84); }

/* A card on cream */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* Footer */
.foot { background: var(--navy-deep); color: rgba(255, 255, 255, .8); padding: 54px 0 24px; }
.foot h4 { font-family: var(--label); font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); margin: 0 0 16px; }
.foot a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.foot-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.foot-mark img { width: 54px; height: 54px; }
.foot-mark b { font-family: var(--display); font-size: 1.4rem; color: var(--white); display: block; line-height: 1.1; }
.foot-mark span { font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sun); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot-base { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.made { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.made .heart { color: var(--sun); }

/* The Flovo credit is a link out to another site, so it is coloured and underlined
   rather than looking like the sentence around it. */
.made-by a {
  color: var(--sun);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-thickness .2s ease;
}
.made-by a:hover, .made-by a:focus-visible { color: var(--sun-light); text-decoration-thickness: 2px; }

/* Anything that slides in as it reaches the screen.
   It is only ever hidden on a page that has said "my javascript is running" (the html
   element gets class="js" in the head). If a script is cached, late or blocked, nothing
   is hidden and the page simply shows as normal rather than leaving a blank band. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
