/* Point Grey Peppers */

@font-face {
  font-family: 'Gluten';
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/gluten-800.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/barlow-semi-condensed-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/barlow-semi-condensed-600.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/barlow-semi-condensed-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Covered By Your Grace';
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/covered-by-your-grace-400.woff2) format('woff2');
}

:root {
  --paper: #F7F1E6;
  --ink: #23201C;
  --ink-soft: #5A534B;
  --outline: #1A1714;
  --red: #B02A2A;
  --orange: #E0782A;
  --field: #CFC4B2;
  --focus: #2B5C8A;
  --scene-paper: #CBC9C4;
  --display: 'Gluten', 'Trebuchet MS', sans-serif;
  --body: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --hand: 'Covered By Your Grace', 'Comic Sans MS', cursive;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1.45;
}

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

a { color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Buttons: comic outline like the label lettering */
.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--outline);
  background: var(--orange);
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 0.7em 1.4em 0.75em;
  text-decoration: none;
  text-align: center;
  box-shadow: 3px 3px 0 var(--outline);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--outline); }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--outline); }
/* the three landing buttons take the label's heat-bar colours */
.button.mild { background: #F4CC32; }
.button.medium { background: #EE9A2E; }
.button.hot { background: #E2602A; }
.button.fire { background: #C8261C; color: #fff; }

/* ---------- Landing page: the bus-stop scene ---------- */
body.landing { background: var(--scene-paper); }

.scene { position: relative; }
.scene-spacer { display: none; }

/* Phones and portrait screens: painting on top, words and buttons below */
.scene-picture {
  background: linear-gradient(to bottom, #C4BFB9 0%, #C6C2AF 4%, #CCC7B6 12%, #D2CDC1 25%, #D7D2C9 40%, #D9D5CE 55%, #D8D4CD 70%, #D8D4CC 80%, #D7D2C7 86%, #D6D1C9 89.5%, #C9C4B8 91.77%, #5A524E 91.86%, #5A524E 92.13%, #C2BEA7 92.26%, #C5C2AC 95%, #C4C3AF 97.33%, #C7C5B8 98.45%, #CCCAC7 100%);
}
.scene-art { width: min(100%, calc(88vh * 0.6997)); height: auto; margin: 0 auto; aspect-ratio: 1259 / 1800; }
.scene-copy {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1rem;
  text-align: center;
}
.scene-copy .lede {
  margin: 0 0 0.6rem;
  text-wrap: balance;
  font-family: var(--hand);
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  line-height: 1.1;
  color: var(--red);
}
.scene-copy .where {
  margin: 0 0 1.4rem;
  font-family: var(--hand);
  font-size: clamp(1.35rem, 5.2vw, 1.75rem);
  line-height: 1.15;
}
.scene-nav { display: grid; gap: 0.9rem; width: max-content; margin: 0 auto; justify-items: stretch; }
.scene-nav .button { min-width: 14rem; }
.landing .site-footer { color: #4F4A44; }

/* Tablets and landscape phones: the wide scene, cropped around the painting */
@media (min-width: 601px) {
  .scene-picture { position: relative; height: min(88vh, calc(94vw / 0.6997)); overflow: hidden; }
  .scene-art {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: auto;
    max-width: none;
    margin: 0;
    aspect-ratio: 2 / 1;
    transform: translateX(-41.24%);   /* the painting's centre sits 41.24% across the scene image */
  }
}

/* Wide screens: one continuous scene, painting plus half its width again for the words */
@media (min-aspect-ratio: 21/20) and (min-width: 820px) and (min-height: 540px) {
  body.landing {
    --sh: max(100vh, 540px);
    --pw: calc(var(--sh) * 0.6997);
  }
  .scene {
    height: var(--sh);
    overflow: hidden;
    background: linear-gradient(to bottom, #C4BFB9 0%, #C6C2AF 4%, #CCC7B6 12%, #D2CDC1 25%, #D7D2C9 40%, #D9D5CE 55%, #D8D4CD 70%, #D8D4CC 80%, #D7D2C7 86%, #D6D1C9 89.5%, #C9C4B8 91.77%, #5A524E 91.86%, #5A524E 92.13%, #C2BEA7 92.26%, #C5C2AC 95%, #C4C3AF 97.33%, #C7C5B8 98.45%, #CCCAC7 100%);
  }
  @supports (height: 100svh) {
    body.landing { --sh: max(100svh, 540px); }
  }
  .scene-picture { position: absolute; inset: 0; height: auto; background: none; }
  .scene-art {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: auto;
    max-width: none;
    aspect-ratio: 2 / 1;
    transform: translateX(-50%);
  }
  .scene-grid {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: var(--pw) calc(var(--pw) / 2);
    justify-content: center;
  }
  .scene-spacer { display: block; }
  .scene-copy {
    align-self: center;
    max-width: none;
    margin: 0;
    padding: 0 0 calc(var(--sh) * 0.1) calc(var(--pw) * 0.04);
    text-align: left;
  }
  .scene-copy .lede { font-size: calc(var(--sh) * 0.044); margin-bottom: 0.45em; }
  .scene-copy .where { font-size: calc(var(--sh) * 0.031); margin-bottom: 1.2em; }
  .scene-nav { gap: calc(var(--sh) * 0.018); margin: 0; }
  .scene-nav .button { font-size: calc(var(--sh) * 0.025); min-width: 0; }
  body.landing { position: relative; }
  .landing .site-footer {
    position: absolute;
    top: calc(var(--sh) * 0.938);
    left: calc(50% + var(--pw) * 0.29);
    padding: 0;
    text-align: left;
    white-space: nowrap;
    font-size: max(13px, calc(var(--sh) * 0.0165));
    color: #3D3935;
  }
}

/* ---------- Inner pages ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1rem 1.25rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}
.brand img { width: 62px; height: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-weight: 700; }
.site-nav a { text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--orange); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--outline); }
@media (max-width: 480px) {
  .site-nav { gap: 0.2rem 0.9rem; font-size: 1.02rem; }
}

.page {
  flex: 1;
  width: min(100% - 2.5rem, 36rem);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}
.page-center { text-align: center; padding-top: 3rem; }
.page-center .crew { width: 170px; margin: 0 auto 0.5rem; }

.title {
  margin: 0.25rem 0 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 8vw, 2.75rem);
  line-height: 1.05;
}
.intro { margin: 0 0 1rem; font-size: 1.25rem; }
.page p { margin: 0 0 1rem; }
.pgp { margin-bottom: 1.75rem !important; }
.pgp strong { font-weight: 700; }

/* About */
.about { width: min(100% - 2.5rem, 38rem); }
.about p { font-size: 1.2rem; line-height: 1.6; margin: 0 0 1.15rem; }
.about .credit { margin-top: 1.75rem; color: var(--ink-soft); }
.about .signoff { font-family: var(--hand); font-size: 2rem; line-height: 1; margin-top: 0.5rem; }

/* Form */
.field { margin: 0 0 1.4rem; }
label { display: block; margin: 0 0 0.4rem; font-weight: 700; }
.hint { display: block; font-weight: 400; font-size: 1rem; color: var(--ink-soft); }

input[type="text"], textarea {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--field);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.4; }
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(43, 92, 138, 0.25); }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.errors {
  margin: 0 0 1.75rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 2px solid var(--red);
  border-radius: 12px;
}
.errors p { margin: 0; font-weight: 700; }
.errors ul { margin: 0.4rem 0 0; padding-left: 1.3rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

/* Products */
.product {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  width: min(100% - 2.5rem, 64rem);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}
.product-art { width: min(100%, 440px); }
.product-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(35, 32, 28, 0.12), 0 14px 34px rgba(35, 32, 28, 0.16);
}
.product-copy { max-width: 32rem; }
.product-copy .title { color: var(--orange); -webkit-text-stroke: 1px var(--outline); paint-order: stroke fill; }
.product-copy p { margin: 0 0 1rem; font-size: 1.2rem; }
.heat { margin: 1.5rem 0 0; }
.heat img { width: min(100%, 430px); height: auto; }

@media (min-width: 860px) {
  .product {
    grid-template-columns: auto minmax(0, 30rem);
    justify-content: center;
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .product-art { width: auto; }
  .product-art img { width: auto; height: clamp(440px, calc(100vh - 11rem), 780px); }
}

.site-footer {
  padding: 1.25rem 1rem 1.6rem;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
}
.site-footer span, .site-footer a { display: inline-block; }
.site-footer a { color: var(--ink); font-weight: 600; text-underline-offset: 0.15em; }
.site-footer a:hover { color: var(--red); }
@media (max-width: 480px) {
  .site-footer .footer-sep { display: none; }
  .site-footer a { display: block; margin-top: 0.2rem; }
}
