/* Shared by every page on www.humidorly.com: the brand type, colours, the nav and
   the footer. Pages add their own styles inline after this file.
   The fonts are self-hosted latin subsets (SIL OFL, licences in /fonts). */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
             src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
             src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
             src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
             src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap;
             src: url("/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --night: #0d0805;
  --walnut: #1c120c;
  --brass: #c9a063;
  --brass-soft: #e2c58f;
  --cream: #f3e9d8;
  --text: #e4d6c0;
  --ash: #bfae96;
  --muted: var(--ash);
  --line: rgba(201, 160, 99, 0.28);
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--body);
       font-size: 1.0625rem; line-height: 1.59; -webkit-font-smoothing: antialiased; }
a { color: var(--brass-soft); }

/* The type scale. Phone first; desktop from 641 px. */
h1, h2, h3 { font-family: var(--display); font-weight: 500; }
h1 { font-size: 2.75rem; line-height: 1.09; letter-spacing: -0.01em; }
h2 { font-size: 2.125rem; line-height: 1.12; }
h3 { font-size: 1.4375rem; line-height: 1.22; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--brass-soft); }
.lede { font-size: 1.1875rem; line-height: 1.53; }
.caption { font-size: 0.875rem; line-height: 1.43; }
@media (min-width: 641px) {
  body { font-size: 1.125rem; line-height: 1.67; }
  h1 { font-size: clamp(2.75rem, 1.2rem + 3.9vw, 4.5rem); line-height: 1.06; }
  h2 { font-size: clamp(2.125rem, 1.5rem + 1.6vw, 3rem); line-height: 1.08; }
  h3 { font-size: 1.625rem; line-height: 1.23; }
  .lede { font-size: 1.3125rem; line-height: 1.52; }
}

/* Eyebrows: the small capitals above headings. */
.eyebrow, .kicker { font-family: var(--mono); font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.18em;
                    text-transform: uppercase; color: var(--brass); margin: 0 0 1rem; }

.btn { display: inline-block; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.14em;
       text-transform: uppercase; text-decoration: none; padding: 1rem 1.7rem; border-radius: 2px;
       color: #1a0f08; background: linear-gradient(180deg, #d9b475, #b88a4b); }
.btn:hover { background: linear-gradient(180deg, #e8c78d, #c99a58); }

/* ---------- the nav: the same on every page ---------- */
.bar { position: relative; z-index: 5; display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem);
       padding: 0.9rem var(--gutter); border-bottom: 1px solid var(--line); }
.mark { margin-right: auto; font-family: var(--display); font-weight: 500; font-size: 1.7rem; letter-spacing: 0.04em;
        text-decoration: none; color: var(--brass-soft); }
.mark span { color: var(--brass); }
.nav { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav a, .menu a, .menu summary { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em;
                                 text-transform: uppercase; text-decoration: none; color: var(--ash); }
.nav a { padding: 0.75rem 0; }
.nav a:hover, .menu a:hover, .menu summary:hover { color: var(--cream); }
.pill { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
        text-decoration: none; color: var(--cream); border: 1px solid rgba(201, 160, 99, 0.55);
        padding: 0.7rem 1.1rem; border-radius: 999px; white-space: nowrap; }
.pill:hover { border-color: var(--brass); }

/* Phones: a menu made from <details>, so it needs no script. */
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 0.75rem 0.25rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " +"; }
.menu[open] summary::after { content: " \2212"; }
.menu nav { position: absolute; right: var(--gutter); left: var(--gutter); top: 100%; display: flex; flex-direction: column;
            background: var(--walnut); border: 1px solid var(--line); border-radius: 4px; padding: 0.4rem 1.2rem;
            box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5); }
.menu nav a { padding: 0.85rem 0; color: var(--cream); }
.menu nav a + a { border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .nav { display: none; }
  .menu { display: block; }
  .mark { font-size: 1.5rem; }
}

/* ---------- the footer: the same on every page ---------- */
.foot { border-top: 1px solid var(--line); padding: 2.2rem var(--gutter); color: var(--ash); }
.foot .inner { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem 3rem;
               justify-content: space-between; align-items: flex-start; }
.foot p { margin: 0 0 0.4rem; max-width: 34rem; font-size: 0.875rem; line-height: 1.43; color: var(--ash); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; max-width: 30rem; }
.foot nav a { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-decoration: none;
              color: var(--ash); padding: 0.5rem 0; }
.foot nav a:hover { color: var(--cream); }

/* ---------- secondary pages: guides, support, privacy, delete account ---------- */
.page main { max-width: 40rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) 1rem clamp(4rem, 9vw, 6rem); }
.page h1 { font-size: clamp(2.75rem, 1.6rem + 3vw, 3.75rem); margin: 0 0 1rem; }
.page h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem); margin: 2.6rem 0 0.8rem; padding-top: 1.6rem;
           border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.page h3 { font-size: 1.3rem; margin: 1.6rem 0 0.4rem; color: var(--brass-soft); }
.page p, .page li { color: var(--text); }
.page ul, .page ol { padding-left: 1.3rem; }
.page li { margin: 0.35rem 0; }
.page strong { color: var(--cream); font-weight: 600; }
.page .muted { color: var(--ash); }
.page .contact { font-family: var(--display); font-size: 1.6rem; margin: 0.4rem 0 0; }

@media print {
  body { background: #fff; color: #000; }
  .bar nav, .menu, .pill, .foot { display: none; }
  .page p, .page li, .page strong, h1, h2, h3, a { color: #000; }
}
