/* ==========================================================================
 * Moodlogue — information pages (Shipping, Returns, Privacy Policy, Terms &
 * Conditions, Before You Overthink, Our Story and Contact Us): an editorial layout on
 * white under the shared site header. Loaded after styles.css,
 * site-header.css and inter.css, on those pages (body.info-page) and on Track
 * Order, which uses only the title face (see the end of this file).
 *
 * Type: titles and section headings in Anton (self-hosted, SIL Open Font
 * License 1.1 — assets/fonts/anton/), everything else in Inter (inter.css).
 * ========================================================================== */

/* latin-ext */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/anton/anton-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/anton/anton-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --info-display: "Anton", "Arial Narrow", sans-serif;
}

html:has(> body.info-page),
body.info-page {
  --policy-page-surface: #ffffff;
  background: #ffffff;
}

.info-page .policy-page {
  min-height: 0;
  padding: calc(var(--site-header-h) + clamp(56px, 8vw, 120px)) var(--margin) clamp(88px, 11vw, 160px);
  color: #111111;
  font-family: var(--font-inter);
}

/* A wide shell for the title; the reading column inside it stays narrow. */
.info-page .policy-shell {
  width: min(100%, 1120px);
}

.info-page .policy-copy {
  max-width: none;
}

.info-page .policy-copy > :not(h1) {
  max-width: 680px;
}

/* The title: tall condensed capitals in black, as wide as the shell allows.
 * Sized against the screen so the longest word on any page (CONDITIONS) still
 * fits a 320px phone. */
.info-page .policy-copy h1 {
  max-width: none;
  /* Anton's capitals (C, O, P, R, B …) sit about 0.034em inside their box:
   * pull the title back so its ink lines up with the text below. */
  margin: 0 0 0 -0.034em;
  color: #111111;
  font-family: var(--info-display);
  font-size: clamp(48px, 20vw, 168px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Our Story's title is a two-line sentence (its longest word, EXPLANATION.,
 * sets the size). */
.info-page .policy-copy h1.story-headline {
  margin-left: -0.02em;
  font-size: clamp(40px, 16.5vw, 128px);
  line-height: 0.92;
}

/* Titles whose first letter sits closer to its edge (T, S): only the first
 * line moves back less; any later line keeps the full pull. */
.info-page .policy-copy h1.title-starts-t {
  text-indent: 0.024em;
}

.info-page .policy-copy h1.title-starts-s {
  text-indent: 0.0135em;
}

/* The short line under the title: light grey Inter, quieter than the title
 * and larger than the text. */
.info-page .policy-copy .policy-subtitle {
  margin: clamp(14px, 1.6vw, 24px) 0 0;
  color: #6b6b6b;
  font-family: var(--font-inter);
  font-size: clamp(18px, 0.6vw + 15px, 24px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Space between the title block and the page's text. */
.info-page .policy-copy h1 + p:not(.policy-subtitle),
.info-page .policy-copy .policy-subtitle + * {
  margin-top: clamp(44px, 6vw, 88px);
}

/* Section headings: the title's condensed capitals at a much smaller size. */
.info-page .policy-copy h2 {
  margin: 0 0 14px;
  color: #111111;
  font-family: var(--info-display);
  font-size: clamp(22px, 0.8vw + 18px, 30px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.info-page .policy-copy p,
.info-page .policy-copy ul {
  color: #111111;
  font-size: 17px;
  line-height: 1.7;
}

.info-page .policy-copy p {
  margin: 0 0 18px;
}

.info-page .policy-copy ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.info-page .policy-copy li + li {
  margin-top: 4px;
}

.info-page .policy-copy hr {
  margin: clamp(36px, 5vw, 56px) 0;
  background: rgb(0 0 0 / 10%);
}

.info-page .policy-copy .text-link {
  border-bottom-color: #111111;
  color: #111111;
}

/* Keeps words together, e.g. the FAQ's "@ moodlogue.official". */
.info-page .nowrap {
  white-space: nowrap;
}

/* Our Story: the founder's portrait without a frame. */
.info-page .founder-portrait img {
  border: 0;
}

/* Contact Us: the two ways to reach us as a plain list, a hairline (the
 * dividers' grey) above each and the divider below closing it; each a black
 * icon in a thin neutral circle like the homepage footer's, a small label and
 * the address. Side by side on wider screens, stacked on phones
 * (styles.css). */
.info-page .contact-actions {
  gap: 0 clamp(24px, 4vw, 48px);
  margin: clamp(36px, 5vw, 56px) 0 0;
}

.info-page .contact-action {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid rgb(0 0 0 / 10%);
  background: transparent;
  color: #111111;
}

.info-page .contact-action:hover {
  background: transparent;
  transform: none;
}

.info-page .contact-icon {
  width: 48px;
  height: 48px;
  border-color: rgb(0 0 0 / 28%);
  color: #111111;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.info-page .contact-icon svg {
  stroke-width: 1.5;
}

.info-page .contact-action:hover .contact-icon {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.info-page .contact-action strong {
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.info-page .contact-action span span {
  margin-top: 2px;
  color: #111111;
  font-size: 16px;
  line-height: 1.5;
}

/* The narrowest phones: a slightly smaller circle and address so the email
 * stays on one line. */
@media (max-width: 359px) {
  .info-page .contact-action {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .info-page .contact-icon {
    width: 44px;
    height: 44px;
  }

  .info-page .contact-action span span {
    font-size: 15px;
  }
}

@media (max-width: 680px) {
  .info-page .policy-page {
    padding-bottom: 88px;
  }

  .info-page .policy-copy p,
  .info-page .policy-copy ul {
    font-size: 16px;
  }
}

/* Track Order (a working form, otherwise unchanged): a white page, the form
 * card in a faint neutral off-white, and its title in the same condensed
 * capitals. */
html:has(#track-title),
body:has(#track-title) {
  --policy-page-surface: #ffffff;
  background: #ffffff;
}

.checkout-card:has(> #track-title) {
  background: #f8f7f6;
}

/* Everything on the card but its title (Anton, below) and icons in Inter. */
.checkout-card:has(> #track-title),
.checkout-card:has(> #track-title) :not(#track-title, .material-symbols-outlined) {
  font-family: var(--font-inter);
}

/* The intro on one line wherever the card is wide enough. */
.checkout-card:has(> #track-title) .track-order-intro {
  max-width: none;
}

/* The order-result boxes (status, shipment, payment): white on the card,
 * keeping their grey border. */
.checkout-card:has(> #track-title) .order-details .status-callout,
.checkout-card:has(> #track-title) .order-details .order-meta-grid {
  background: #ffffff;
}

/* The result's white buttons (Track package, Return, Exchange…) were set off
 * by the pink; on white they need an outline. */
.checkout-card:has(> #track-title) .order-details .primary-cta {
  border-color: var(--primary);
}

#track-title {
  font-family: var(--info-display);
  font-size: clamp(34px, 4vw + 18px, 48px);
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
