/* h4d35x0 long-form page surface (About, Privacy, Disclaimer, Shipping, Returns).

   Tokens come from h4d35x0-core.css and are not redefined here.

   Two registers, per content/site-direction.md: the chrome is the machine
   (uppercase, letterspaced, applied with text-transform so screen readers do
   not spell it out), the body is author-controlled legal copy and is left in
   sentence case.

   Contrast, measured against --h4-bg: --h4-fg 16.83:1, --h4-accent 13.49:1,
   --h4-warn 10.54:1. Every piece of text that carries meaning uses one of
   those three, so body copy and chrome both clear WCAG AA. --h4-dim measures
   3.71:1 and --h4-line 1.41:1, so neither is used for text here; --h4-line is
   kept for rules and the decorative path separator only.

   No JavaScript, no web fonts, no third-party requests. */

.h4-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 96rem;
  margin: 0 auto;
  padding: 0 1.6rem 4rem;
}

/* ---- path strip: the machine register ---- */
.h4-page__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 1.6rem 0 1.2rem;
  border-bottom: 1px solid var(--h4-line);
}

.h4-page__path {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.8rem;
  margin: 0;
  font-family: var(--h4-mono);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--h4-fg);
}

.h4-page__host {
  letter-spacing: 0.06em;
  color: var(--h4-fg);
}

.h4-page__sep { color: var(--h4-line); }

.h4-page__title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--h4-accent);
}

.h4-page__status {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.15rem;
  color: var(--h4-warn);
  white-space: nowrap;
}

/* ---- reading column ---- */
.h4-page__body {
  flex: 1 1 auto;
  padding: 3.2rem 0 0;
}

.h4-page__empty {
  max-width: 70ch;
  margin: 0;
  color: var(--h4-fg);
}

/* ---- rich text: the output of {{ page.content }} ----
   Author-controlled HTML, so every element the Shopify editor can emit is
   given a house style rather than inheriting a browser default. */
.h4-rt {
  max-width: 70ch;
  font-size: 1.6rem;
  line-height: 1.85;
  color: var(--h4-fg);
  overflow-wrap: break-word;
}

.h4-rt > :first-child { margin-top: 0; }
.h4-rt > :last-child { margin-bottom: 0; }

.h4-rt p {
  margin: 0 0 1.8rem;
}

/* the opening paragraph carries a little more weight */
.h4-rt > p:first-child {
  font-size: 1.75rem;
  line-height: 1.7;
}

/* headings. Content headings start at h2, because the path strip is the h1.
   An h1 inside the body is styled as an h2 so a page can never show two. */
.h4-rt h1,
.h4-rt h2,
.h4-rt h3,
.h4-rt h4,
.h4-rt h5,
.h4-rt h6 {
  font-family: var(--h4-mono);
  font-weight: 700;
  color: var(--h4-fg);
  text-wrap: balance;
}

.h4-rt h1,
.h4-rt h2 {
  margin: 4rem 0 1.6rem;
  padding: 1.8rem 0 0;
  border-top: 1px solid var(--h4-line);
  font-size: 2rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.h4-rt h3 {
  margin: 3.2rem 0 1.2rem;
  font-size: 1.7rem;
  line-height: 1.4;
}

.h4-rt h4,
.h4-rt h5,
.h4-rt h6 {
  margin: 2.6rem 0 1rem;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--h4-accent);
}

/* lists. Semantics are kept (no list-style: none), so VoiceOver still
   announces the list; the marker is recoloured and, where the browser
   supports a string marker, replaced with a prompt chevron. */
.h4-rt ul,
.h4-rt ol {
  margin: 0 0 1.8rem;
  padding-left: 2.6rem;
}

.h4-rt ul { list-style: square; }
.h4-rt ol { list-style: decimal; }

@supports (list-style-type: '> ') {
  .h4-rt ul { list-style-type: '> '; }
}

.h4-rt li {
  margin: 0 0 0.8rem;
  padding-left: 0.4rem;
}

.h4-rt li::marker {
  color: var(--h4-accent);
  font-variant-numeric: tabular-nums;
}

.h4-rt li > ul,
.h4-rt li > ol {
  margin: 0.8rem 0 0;
}

.h4-rt li:last-child { margin-bottom: 0; }

/* inline */
.h4-rt strong,
.h4-rt b {
  font-weight: 700;
  color: var(--h4-fg);
}

.h4-rt em,
.h4-rt i {
  font-style: italic;
  color: var(--h4-fg);
}

.h4-rt a {
  color: var(--h4-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.h4-rt a:hover {
  background: var(--h4-accent-soft);
  text-decoration-thickness: 2px;
}

.h4-rt a:focus-visible {
  background: var(--h4-accent-soft);
  text-decoration: none;
}

.h4-rt code,
.h4-rt kbd,
.h4-rt samp {
  padding: 0.1em 0.4em;
  border: 1px solid var(--h4-line);
  background: var(--h4-accent-soft);
  font-family: var(--h4-mono);
  font-size: 0.95em;
}

.h4-rt pre {
  margin: 0 0 1.8rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--h4-line);
  overflow-x: auto;
  font-size: 1.4rem;
  line-height: 1.6;
}

.h4-rt pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
}

.h4-rt blockquote {
  margin: 2.4rem 0;
  padding: 0 0 0 1.8rem;
  border-left: 2px solid var(--h4-accent);
  color: var(--h4-fg);
}

.h4-rt hr {
  margin: 3.2rem 0;
  border: 0;
  border-top: 1px solid var(--h4-line);
}

.h4-rt img,
.h4-rt video {
  display: block;
  max-width: 100%;
  height: auto;
}

.h4-rt table {
  width: 100%;
  margin: 0 0 1.8rem;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.h4-rt th,
.h4-rt td {
  padding: 0.8rem 1.2rem 0.8rem 0;
  border-bottom: 1px solid var(--h4-line);
  text-align: left;
  vertical-align: top;
}

.h4-rt th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  color: var(--h4-accent);
}

/* ---- back to the node index ---- */
.h4-page__foot {
  margin: 4.8rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--h4-line);
}

.h4-page__back {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.15rem;
  color: var(--h4-fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.h4-page__back::before {
  content: '<';
  color: var(--h4-accent);
}

.h4-page__back:hover,
.h4-page__back:focus-visible {
  border-bottom-color: var(--h4-accent);
}

/* Motion is opt-in: nothing transitions unless the visitor allows it. */
@media (prefers-reduced-motion: no-preference) {
  .h4-rt a,
  .h4-page__back {
    transition: background-color 120ms linear, border-color 120ms linear;
  }
}

@media screen and (max-width: 749px) {
  .h4-page { padding-bottom: 3.2rem; }
  .h4-page__bar { gap: 0.4rem 1.2rem; }
  .h4-page__path { font-size: 1.2rem; }
  .h4-page__title { letter-spacing: 0.12em; }
  .h4-page__body { padding-top: 2.4rem; }
  .h4-rt { font-size: 1.5rem; line-height: 1.8; }
  .h4-rt > p:first-child { font-size: 1.6rem; }
  .h4-rt h1,
  .h4-rt h2 { font-size: 1.8rem; }
}

/* Policy pages get printed and filed. Print colours are literal here on
   purpose; the palette tokens themselves are left untouched. */
@media print {
  .h4-page {
    min-height: 0;
    max-width: none;
    padding: 0;
    background: #ffffff;
    color: #000000;
  }
  .h4-page__path,
  .h4-page__host,
  .h4-page__title,
  .h4-rt,
  .h4-rt h1,
  .h4-rt h2,
  .h4-rt h3,
  .h4-rt h4,
  .h4-rt h5,
  .h4-rt h6,
  .h4-rt a { color: #000000; }
  .h4-page__status,
  .h4-page__foot { display: none; }
  .h4-rt { max-width: none; font-size: 11pt; line-height: 1.5; }
  .h4-rt a::after { content: ' (' attr(href) ')'; font-size: 0.9em; }
}
