/*
Theme Name: Heatpost
Theme URI: https://heatpost.co.uk
Author: Input IT Ltd
Description: Heatpost shipping warmers. Phase 1: coming-soon page with trade waitlist. Will grow into the shop theme.
Version: 0.1.0
Requires PHP: 8.1
License: Proprietary
Text Domain: heatpost
*/

:root {
  --frost: #e9eff3;        /* page background: cold */
  --ice: #b8c7d3;          /* rules, grid */
  --paper: #ffffff;        /* the label */
  --ink: #1f2d3a;          /* text */
  --ink-2: #4a5b6a;        /* secondary text */
  --stripe: #e2431e;       /* the red stripe on the pack; CTA */
  --stripe-dark: #b9330f;
  --amber: #f2a93b;        /* the plateau */
  --amber-soft: rgba(242, 169, 59, .22);
  --focus: #1f2d3a;
  --radius: 6px;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-optical-sizing: auto;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }

/* ---- header: reads like the top of a courier label ---- */
.hp-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0 0;
}
.hp-brand { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; text-decoration: none; }
.hp-brand small { font-weight: 500; color: var(--ink-2); margin-left: .35rem; font-size: .9rem; }
.hp-season { color: var(--ink-2); font-size: .95rem; }

/* ---- hero ---- */
.hp-hero { padding: 2.5rem 0 1rem; }
.hp-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.02; letter-spacing: -.03em; font-weight: 800;
  margin: 0 0 1rem; max-width: 22ch;
}
.hp-hero p.lead { font-size: 1.2rem; max-width: var(--measure); margin: 0; color: var(--ink-2); }

/* ---- the label: white panel with the curve ---- */
.hp-label {
  background: var(--paper);
  border: 1px solid var(--ice);
  border-radius: var(--radius);
  margin: 2rem 0 0;
  padding: 1.25rem 1.25rem 1rem;
  position: relative;
}
.hp-label::before {           /* the pack's red stripe, top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: var(--stripe); border-radius: var(--radius) var(--radius) 0 0;
}
.hp-label-head { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: baseline; margin: .25rem 0 1rem; }
.hp-label-head h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.hp-label-head p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.hp-chart { display: block; width: 100%; height: auto; }
.hp-chart .grid { stroke: var(--ice); stroke-width: 1; }
.hp-chart .axis { stroke: var(--ink-2); stroke-width: 1; }
.hp-chart .tick { fill: var(--ink-2); font-size: 12px; }
.hp-chart .band { fill: var(--amber-soft); }
.hp-chart .curve { fill: none; stroke: var(--stripe); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hp-chart .note { fill: var(--ink); font-size: 13px; font-weight: 600; }
.hp-chart .note-sub { fill: var(--ink-2); font-size: 12px; font-weight: 400; }
.hp-chart .marker { fill: var(--paper); stroke: var(--stripe); stroke-width: 2; }
.hp-chart .ref { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 4; }

@media (prefers-reduced-motion: no-preference) {
  .hp-chart .curve { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: hp-draw 2.2s cubic-bezier(.4,0,.2,1) .3s forwards; }
  .hp-chart .after-draw { opacity: 0; animation: hp-fade .5s ease 2.3s forwards; }
  @keyframes hp-draw { to { stroke-dashoffset: 0; } }
  @keyframes hp-fade { to { opacity: 1; } }
}

.hp-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2rem; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--ice); }
.hp-figures div { min-width: 0; }
.hp-figures strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.hp-figures span { color: var(--ink-2); font-size: .95rem; }
.hp-label-foot { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-2); max-width: 60ch; }

/* ---- the promise: three plain statements ---- */
.hp-promise { padding: 2.5rem 0 1rem; }
.hp-promise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.5rem; }
.hp-promise h3 { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.hp-promise p { margin: 0; color: var(--ink-2); }

/* ---- who it's for ---- */
.hp-for { padding: 1.5rem 0 0; max-width: var(--measure); }
.hp-for h2 { font-size: 1.35rem; margin: 0 0 .5rem; letter-spacing: -.02em; }
.hp-for p { margin: 0; color: var(--ink-2); }

/* ---- forms ---- */
.hp-forms { display: grid; grid-template-columns: 3fr 2fr; gap: 1.5rem; padding: 2.5rem 0 3rem; align-items: start; }
.hp-form {
  background: var(--paper); border: 1px solid var(--ice); border-radius: var(--radius); padding: 1.25rem;
}
.hp-form h2 { margin: 0 0 .25rem; font-size: 1.3rem; letter-spacing: -.02em; }
.hp-form > p { margin: 0 0 1rem; color: var(--ink-2); }
.hp-form label { display: block; font-weight: 600; font-size: .95rem; margin: .9rem 0 .3rem; }
.hp-form input, .hp-form select {
  width: 100%; font: inherit; color: var(--ink); background: var(--frost);
  border: 1px solid var(--ice); border-radius: 4px; padding: .6rem .7rem;
}
.hp-form input:focus, .hp-form select:focus { background: var(--paper); border-color: var(--ink-2); }
.hp-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.hp-form button {
  margin-top: 1.1rem; font: inherit; font-weight: 700; color: #fff; background: var(--stripe);
  border: 0; border-radius: 4px; padding: .75rem 1.2rem; cursor: pointer;
}
.hp-form button:hover { background: var(--stripe-dark); }
.hp-form .fine { margin: .75rem 0 0; font-size: .85rem; color: var(--ink-2); }
.hp-hp { position: absolute; left: -9999px; }

.hp-notice { margin: 1.5rem 0 0; padding: .9rem 1rem; border-radius: 4px; border: 1px solid var(--ice); background: var(--paper); }
.hp-notice.ok { border-left: 6px solid var(--amber); }
.hp-notice.err { border-left: 6px solid var(--stripe); }

/* ---- footer ---- */
.hp-foot { border-top: 1px solid var(--ice); padding: 1.5rem 0 2.5rem; color: var(--ink-2); font-size: .9rem; }
.hp-foot p { margin: .25rem 0; }

@media (max-width: 720px) {
  .hp-figures, .hp-promise ul, .hp-forms, .hp-form .row { grid-template-columns: 1fr; }
  /* At phone width the in-chart annotations are unreadable; the figures below carry the numbers. */
  .hp-chart .after-draw { display: none; }
  .hp-chart .tick { font-size: 20px; }
  .hp-label { padding: 1rem .75rem .75rem; }
  .hp-top { flex-direction: column; gap: .25rem; }
  .hp-hero { padding-top: 1.75rem; }
}
