/* ==========================================================================
   THEME: every colour, font and size used on the site.
   Rebrand by editing this file only. Values come from reference/design.md
   and measurements of reference/screenshots/.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Outfit:wght@300..700&display=swap');

:root {
  /* ---- Colours ---- */
  --red: #BF1D1F;
  --red-dark: #9C1719;          /* hover state of red buttons */
  --red-bright: #D12C38;        /* "Follow" social icons */
  --black: #000000;
  --ink: #181415;
  --ink-hover: #3A3234;         /* hover state of near-black buttons */
  --white: #FFFFFF;
  --grey-bg: #F4F4F4;
  --grey-border: #EAEAEA;
  --text: #344054;
  --text-dark: #1D2939;
  --text-mid: #4F4F4F;
  --text-strong: #333333;
  --text-muted: #757575;
  --header-border: #98A2B3;
  --placeholder-bg: #BDBDBD;    /* grey boxes that stand in for portraits */
  --placeholder-text: #333333;
  --dot: #D9D9D9;
  --dot-active: #42383A;
  --arrow-bg: #FFFFFF;
  --arrow-icon: #3E3E3E;
  --muted-text-2: #485467;      /* breadcrumbs and byline */
  --link-red: #FF0000;          /* "Constitution" */
  --caption-border: #6C5A5F;
  --link-blue: #3598DB;         /* "Click here" */
  --input-border: #D0D5DD;
  --input-button-bg: #E9ECF0;
  --avatar-bg: #F7F7F7;
  --avatar-icon: #E1E1E1;
  --embed-border: #DBDBDB;
  --embed-link: #3897F0;
  --embed-muted: #C9C8CD;
  --embed-fb-link: #385898;
  --embed-fb-bar: #F5F6F7;

  /* ---- Fonts ---- */
  --font-body: "Open Sans", sans-serif;
  --font-display: "Anton", sans-serif;
  --font-embed: Arial, sans-serif;

  --fw-light: 300;
  --fw-normal: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heading: 750;
  --fw-heavy: 800;

  /* ---- Type scale ----
     Headings scale with the window like the real site, and equal the
     design.md values (37.36 / 30.4 / 28.7px) at 1024px wide. */
  --fs-h2: min(1.375rem + 1.5vw, 2.5rem);
  --fs-h3: min(1.325rem + 0.9vw, 2rem);
  --fs-h4: min(1.3125rem + 0.75vw, 1.875rem);
  --fs-campaign-title: var(--fs-h3);
  --fs-body: 1.1rem;            /* 17.6px */
  --fs-link-large: 1.5625rem;   /* "See all…" links */
  --fs-footer-link: 1rem;
  --fs-date: 0.935rem;
  --fs-small: 0.8rem;           /* footer credits */
  --fs-embed: 0.875rem;
  --fs-embed-title: 1.125rem;
  --fs-embed-small: 0.75rem;
  --fs-nav: 1rem;
  --fs-breadcrumb: 1rem;
  --fs-byline: 0.88rem;
  --fs-placeholder: 1.25rem;

  --lh-body: 1.5;
  --lh-byline: 1.68;
  --lh-heading: 1.125;
  --lh-excerpt: 2.125rem;       /* roomy Pānui excerpt lines */
  --ls-button: 0.086em;
  --ls-sort: 0.1em;
  --ls-read-more: 0.07em;

  /* ---- Spacing scale ---- */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* ---- Page ---- */
  --container: 100%;            /* overridden at wider breakpoints below */
  --container-narrow: 100%;     /* welcome text */
  --gutter: 15px;
  --radius: 4px;
  --line: 1px;
  --outline: 3px;
  --transition: 0.2s ease;
  --shadow-button: 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-embed: 0 1px 6px rgba(0, 0, 0, 0.15);

  /* ---- Logo ----
     The PNGs (3011 × 1215) have transparent padding; these crop it.
     If you swap in a logo without padding: artwork ratio = its own w / h,
     scale 100%, all offsets 0%. */
  --logo-width: 190px;
  --logo-width-footer: 200px;
  --logo-ratio: 2492 / 697;
  --logo-scale: 120.83%;
  --logo-x-white-red: -5.25%;
  --logo-y-white-red: -17.37%;
  --logo-x-default: -8.62%;     /* logo-white and logo-full-colour */
  --logo-y-default: -21.32%;

  /* ---- Header ---- */
  --header-height: 74px;
  --nav-pad: 25px;
  --dropdown-width: 14rem;
  --hamburger-width: 26px;
  --hamburger-bar: 2px;
  --hamburger-gap: 6px;
  --menu-toggle-size: 44px;
  --header-pad-right: var(--space-lg);
  --chevron: 8px;

  /* ---- Homepage sections ---- */
  --hero-ratio: 7 / 9;          /* homepage hero on phones: crops the sides */
  --hero-position: center top;
  --hero-collage-ratio: 1920 / 1005;
  --welcome-pad-top: 64px;
  --welcome-to-buttons: 147px;
  --button-pad: 40px;
  --button-gap: 16px;
  --buttons-pad-bottom: 72px;
  --button-tax-pad: 13px 33px;
  --button-tax-height: 53px;
  --button-action-pad: 6px 16px;

  --carousel-pad-top: 100px;
  --carousel-pad-bottom: 122px;
  --carousel-heading-gap: 59px;
  --carousel-link-offset: 65px;
  --panui-pad-top: 183px;
  --panui-pad-bottom: 62px;
  --panui-link-gap: 35px;

  --cell-width: 90%;            /* share of the window per carousel card */
  --cell-pad: 4px;
  --cell-pad-bottom: 24px;
  --card-pad: 20px;
  --card-image-ratio: 1.2121;
  --history-position: center 35%;
  --card-title-gap: 8px;
  --card-title-descender: 0.12em; /* room for g, y, p below the last line */
  --card-policy-pad-bottom: 28px;
  --card-more-gap: 29px;
  --card-lines-title: 2;
  --card-lines-text: 4;
  --calendar-icon: 14px;
  --calendar-gap: 8px;
  --arrow-size: 53px;
  --arrow-icon-size: 34px;
  --arrow-edge: 16px;
  --arrow-offset: -5px;
  --arrow-disabled: 0.3;
  --dot-size: 14px;
  --dot-gap: 10px;
  --dots-offset: 44px;
  --controls-height: 58px;
  --campaign-zoom: 1.03;
  --link-arrow: 10px;
  --link-arrow-gap: 15px;

  --tax-pad: 32px 0 120px;
  --tax-image-ratio: 4320 / 2232;
  --tax-text-pad: 60px 39px 0;
  --tax-title-gap: 24px;
  --tax-text-align: center;

  --campaign-pad-top: 64px;
  --campaign-heading-gap: 31px;
  --campaign-image-ratio: 1026 / 768;
  --campaign-image-position: 40% center;   /* keeps all three faces in frame */
  --campaign-image-inset: 0%;
  --campaign-body-pad: 24px;
  --campaign-link-gap: 33px;

  --story-heading-gap: 38px;
  --story-width: 725px;
  --story-gap: 35px;
  --embed-ig-height: 506px;
  --embed-fb-avatar: 52px;
  --embed-ig-avatar: 40px;
  --embed-ig-icon: 50px;
  --embed-pad: 16px;
  --embed-fb-gap: 30px;
  --embed-bar-height: 14px;
  --embed-bar-short: 60px;
  --embed-bar-medium: 100px;
  --embed-bar-long: 224px;
  --embed-caption-gap: 34px;
  --follow-pad-top: 56px;
  --follow-heading-gap: 26px;
  --follow-icon: 51px;
  --follow-icon-gap: 32px;
  --follow-pad-bottom: 20px;

  /* ---- Policy overview ---- */
  --section-pad-top: 96px;
  --list-indent: 40px;
  --search-gap: 48px;           /* above the search box */
  --search-width: 743px;
  --search-height: 40px;
  --search-button: 46px;
  --search-icon: 18px;
  --search-pad: 14px;
  --sort-gap: 25px;
  --sort-button-pad: 8px;
  --sort-pad-bottom: 4px;
  --count-gap: 16px;
  --grid-columns: 1;
  --grid-gap: 25px;
  --grid-pad-top: 0px;
  --grid-pad-bottom: 70px;
  --listing-text-gap: 44px;
  --page-min-height: 50vh;

  /* ---- Text pages (About, Get Involved) ---- */
  --page-pad-top: 64px;
  --page-section-pad: 32px;
  --founder-size: 100%;
  --founders-pad-top: 2px;
  --history-width: 502px;
  --history-ratio: 500 / 330;
  --history-gap-top: 58px;
  --history-caption-pad: 5px 1px 5px 30px;
  --history-gap-bottom: 42px;

  /* ---- Shop (shop.html and product.html only) ---- */
  --shop-font: "sofia-pro", "Outfit", sans-serif;   /* Sofia Pro is a paid font */
  --shop-red: #C22026;
  --shop-red-dark: #9E1A1F;
  --shop-navy: #1E213F;         /* welcome heading */
  --shop-text: #212529;
  --shop-heading: #58585A;      /* Store / category headings */
  --shop-muted: #666666;
  --shop-grey: #888888;
  --shop-sku: #999999;
  --shop-border: #DDDDDD;
  --shop-footer-grey: #AAAAAA;
  --shop-footer-rule: #666666;
  --shop-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);

  --shop-fw-light-heading: 400;
  --shop-ls: 0.018em;           /* Outfit is slightly narrower than Sofia Pro */
  --shop-fs: 1rem;
  --shop-lh: 1.5;
  --shop-lh-tight: 1.2;
  --shop-lh-title: 1.2;
  --shop-lh-legend: 2;
  --shop-fs-hero: 2rem;
  --shop-fs-hero-button: 1.25rem;
  --shop-fs-welcome: 1.8rem;
  --shop-fs-heading: 1.8rem;
  --shop-fs-card: 1rem;
  --shop-fs-card-price: 1rem;
  --shop-fs-title: 2rem;
  --shop-fs-price: 1.8rem;
  --shop-fs-subheading: 1.2rem;
  --shop-fs-size: 0.85rem;
  --shop-fs-order: 0.9rem;
  --shop-fs-pill: 1.1rem;
  --shop-fs-back: 0.875rem;
  --shop-fs-nav: 1rem;
  --shop-fs-footer-heading: 1.16rem;
  --shop-fs-footer: 1rem;
  --shop-ls-order: 2.4px;

  --shop-header-height: 140px;
  --shop-logo-width: 170px;
  --shop-logo-top: 51px;
  --shop-icon-row-top: 56px;
  --shop-icon-box: 32px;
  --shop-icon: 31px;
  --shop-icon-gap: 20px;
  --shop-icon-stroke: 2;
  --shop-back-top: 14px;
  --shop-nav-top: 153px;
  --shop-nav-ls: 0;
  --shop-nav-height: 40px;
  --shop-nav-gap: 30px;
  --shop-nav-bar: 3px;
  --shop-nav-bar-inset: 8px;
  --shop-hero-offset: 0px;      /* part of the banner tucked under the header */

  --shop-hero-height: 500px;
  --shop-hero-position: center;
  --shop-hero-text-top: 131px;
  --shop-hero-text-left: 32px;
  --shop-hero-text-width: calc(100% - 64px);
  --shop-hero-align: center;
  --shop-hero-gap: 32px;
  --shop-button-width: 160px;
  --shop-button-height: 48px;
  --shop-button-radius: 8px;
  --shop-welcome-pad: 64px 0 35px;

  --shop-columns: 2;
  --shop-grid-gap: 14px;
  --shop-row-gap: 48px;

  --shop-card-title-gap: 23px;
  --shop-card-title-min: 48px;
  --shop-card-price-gap: 6px;
  --shop-grid-pad-bottom: 63px;
  --shop-page-pad-top: 35px;
  --shop-heading-gap: 25px;
  --shop-count-gap: 16px;
  --shop-pill-pad: 5px 16px;
  --shop-pill-radius: 4px;

  --shop-crumb-gap: 32px;
  --shop-product-columns: 1;
  --shop-product-width: 100%;
  --shop-product-gap: 60px;
  --shop-gallery-ratio: 1.105;
  --shop-thumbs-gap-top: 15px;
  --shop-thumbs-height: 120px;
  --shop-thumb-slot: 33.333%;
  --shop-thumb-inset: 4%;
  --shop-thumb-pad: 10%;
  --shop-price-gap: 5px;
  --shop-sku-gap: 20px;
  --shop-option-gap: 16px;
  --shop-swatch: 43px;
  --shop-swatch-border: 2px;
  --shop-size-height: 36px;
  --shop-size-pad: 0 9px;
  --shop-size-gap: 11px;
  --shop-size-row-gap: 18px;
  --shop-qty-gap: 30px;
  --shop-qty-width: 154px;
  --shop-qty-height: 42px;
  --shop-order-gap: 24px;
  --shop-order-width: 100%;
  --shop-details-gap: 80px;
  --shop-details-section-gap: 32px;
  --shop-details-heading-gap: 6px;
  --shop-related-gap: 80px;
  --shop-related-heading-gap: 8px;
  --shop-related-pad-bottom: 157px;
  --shop-disabled: 0.35;

  --shop-footer-pad: 65px 0 24px;
  --shop-footer-columns: 33.6% 28.7% 19.5% 1fr;
  --shop-footer-logo-top: 35px;
  --shop-footer-logo: 200px;
  --shop-footer-logo-gap: 66px;
  --shop-footer-heading-gap: 10px;
  --shop-footer-block-gap: 43px;
  --shop-footer-line-gap: 10px;
  --shop-footer-contact-gap: 20px;

  /* ---- Tax calculator ---- */
  --calc-title-pad: 88px 0 84px;
  --calc-input-width: 540px;
  --calc-input-height: 40px;
  --calc-input-gap: 16px;
  --calc-gap: 48px;
  --calc-heading-gap: 8px;
  --calc-panel-pad: 16px 15px;
  --calc-row-gap: 16px;
  --calc-row-columns: 1fr;
  --calc-arrow: "";
  --calc-dark-gap: 24px;
  --calc-boxes-columns: 1fr;
  --calc-box-gap: 16px;
  --calc-box-min: 84px;
  --calc-box-pad: 24px;
  --calc-share-columns: 1fr;
  --calc-share-pad: 24px;
  --calc-share-gap: 24px;
  --calc-share-align: center;
  --calc-form-gap: 16px 10px;
  --calc-button-pad: 12px;
  --calc-pad-bottom: 96px;

  /* ---- Petition ---- */
  --petition-columns: 1fr;
  --petition-list-columns: 1fr;
  --petition-gap: 32px;
  --petition-bar: 24px;

  /* ---- Policy page ---- */
  --breadcrumb-pad-top: 76px;
  --breadcrumb-gap: 40px;
  --breadcrumb-slash: 8px;
  --policy-title-gap: 48px;
  --policy-pad-bottom: 64px;
  --avatar: 48px;
  --avatar-icon-size: 24px;
  --share-gap-top: 43px;
  --share-size: var(--fs-body);
  --share-icon: 1.5em;

  /* ---- Footer ---- */
  --nav-current-bar: 5px;
  --footer-pad: 24px;
  --footer-pad-side: 8px;
  --footer-icon: 26px;
  --footer-icon-gap: 13px;
  --footer-nav-gap: 21px;
  --footer-block-gap: 31px;
  --footer-list-indent: 26px;
  --footer-legal-indent: 16px;
  --footer-logo-gap: 39px;
}

/* ---- Large phones and up: show the whole homepage hero ---- */
@media (min-width: 576px) {
  :root { --hero-ratio: 1733 / 907; }   /* hero.png's own shape, so no cropping */
}

/* ---- Tablet and up ---- */
@media (min-width: 768px) {
  :root {
    --container: 720px;
    --container-narrow: 510px;
    --button-gap: 30px;
    --cell-width: 30%;
    --grid-columns: 2;
    --petition-columns: 1fr 1fr;
    --petition-list-columns: repeat(3, minmax(0, 1fr));
    --calc-row-columns: 7fr 1fr 4fr;
    --calc-arrow: "➡\FE0E";
    --calc-boxes-columns: repeat(3, 1fr);
    --calc-box-gap: 30px;
    --calc-box-min: 176px;
    --calc-share-columns: 1fr 1fr;
    --calc-share-pad: 72px 24px;
    --calc-share-gap: 40px;
    --calc-share-align: left;
    --shop-header-height: 247px;
    --shop-logo-width: 347px;
    --shop-logo-top: 79px;
    --shop-icon-row-top: 162px;
    --shop-hero-height: 473px;
    --shop-hero-offset: -27px;
    --shop-hero-text-top: 104px;
    --shop-hero-text-width: 564px;
    --shop-columns: 4;
    --shop-grid-gap: 27px;
    --shop-product-width: 331px;
    --shop-thumb-slot: 25%;
    --shop-thumb-inset: 3.25%;
    --fs-campaign-title: min(1.3rem + 0.72vw, 1.875rem);
    --panui-pad-top: 194px;
    --founder-size: 400px;
    --campaign-image-inset: 12.5%;   /* tall card: shorter photo, so no face is cut off */
    --tax-pad: 38px 0 54px;
    --tax-text-pad: 0 39px;
    --tax-title-gap: 48px;
    --tax-text-align: left;
    --follow-pad-top: 102px;
    --follow-pad-bottom: 73px;
    --footer-pad-side: 0px;
    --footer-block-gap: 55px;
    --footer-logo-gap: 61px;
  }
}

/* ---- Desktop ---- */
@media (min-width: 992px) {
  :root {
    --container: 960px;
    --container-narrow: 690px;
    --header-height: 99px;
    --fs-campaign-title: var(--fs-h3);
    --campaign-image-inset: 0%;
    --cell-width: 25%;
    --cell-pad: 20px;
    --cell-pad-bottom: 40px;
    --carousel-heading-gap: 75px;
    --tax-pad: 32px 0;
    --footer-logo-gap: 63px;
    --panui-pad-bottom: 90px;
    --arrow-edge: 7.5px;
    --shop-header-height: 205px;
    --shop-logo-width: 214px;
    --shop-logo-top: 58px;
    --shop-icon-row-top: 72px;
    --shop-hero-height: 635px;
    --shop-hero-offset: -5px;
    --shop-lh-title: 1.3;
    --shop-hero-text-top: 126px;
    --shop-hero-text-left: max(15px, (100% - 1110px) / 2);
    --shop-hero-text-width: 480px;
    --shop-hero-align: left;
    --shop-hero-gap: 48px;
    --shop-fs-hero: 3rem;
    --shop-fs-welcome: 2.2rem;
    --shop-fs-heading: 2.2rem;
    --shop-fs-card: 1.2rem;
    --shop-fs-card-price: 1.1rem;
    --shop-card-title-min: 46px;
    --shop-fs-title: 2.3rem;
    --shop-grid-gap: 42px;
    --shop-product-columns: 2;
    --shop-product-width: 100%;
    --shop-order-width: 224px;
    --shop-details-gap: 32px;
    --shop-fs-footer: 0.9rem;
    --shop-footer-line-gap: 3px;
    --shop-footer-logo: 220px;
    --shop-footer-pad: 32px 0 24px;
    --grid-columns: 3;
    --grid-gap: 30px;
    --grid-pad-top: 16px;
    --share-size: var(--fs-byline);
    --policy-pad-bottom: 107px;
  }
}

@media (min-width: 1200px) {
  :root {
    --container: 1140px;
    --container-narrow: 825px;
  }
}
