/* Palm House Gems: the site header (all pages) and the content pages
   (About PHG, About Emeralds, Care, FAQ). Values come from tokens.css.
   Look: The Row (one text size, centred column, much white space); T, 2026-11-11.
   No motion. No inline styles or scripts: the security policy blocks them. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

/* Header: two menus and the wordmark, like The Row. */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 2rem;
  padding-block: 2.5rem;
}
.site-header .wordmark { margin: 0; }
.site-header .wordmark a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.75rem; }
.site-nav.r { justify-content: flex-end; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--color-ink-soft);
  text-decoration: none;
  font-size: var(--size-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-ink); }

/* Phones and small tablets: one menu button at the top left (T, 2026-11-11).
   Built on <details>, so it works with no script. */
.mnav { display: none; }
@media (max-width: 53.75rem) {
  /* Narrow side columns and gaps, so the header fits a 320 px screen. The menu button stays 48 px wide (it reaches into the page margin). */
  .site-header { position: relative; grid-template-columns: 2.25rem 1fr 2.25rem; column-gap: 0.5rem; padding-block: 1.25rem; }
  .site-nav { display: none; }
  .site-header .wordmark { grid-column: 2; justify-self: center; }
  .mnav { display: block; grid-column: 1; grid-row: 1; }
  .mnav summary {
    list-style: none;
    display: flex;
    align-items: center;
    width: var(--tap);
    height: var(--tap);
    margin-left: -0.75rem;
    padding-left: 0.75rem;
    cursor: pointer;
  }
  .mnav summary::-webkit-details-marker { display: none; }
  /* Two thin lines; a cross when open. */
  .burger { position: relative; display: block; width: 1.25rem; height: 0.4375rem; }
  .burger::before, .burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-ink);
  }
  .burger::before { top: 0; }
  .burger::after { bottom: 0; }
  .mnav[open] .burger::before { top: 50%; transform: rotate(45deg); }
  .mnav[open] .burger::after { bottom: auto; top: 50%; transform: rotate(-45deg); }
  /* Words indented past the page margin (T, 2026-11-11). */
  .mnav-panel {
    position: absolute;
    left: 0;
    right: 0;
    padding-inline: 1.25rem;
    top: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    padding-block: 0.5rem 1.5rem;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-rule);
  }
  .mnav-panel a {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--color-ink-soft);
    text-decoration: none;
    font-size: var(--size-label);
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .mnav-panel a[aria-current="page"] { color: var(--color-ink); }
}

/* Content pages: one size, centred, 600 px column. */
.text-main {
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
  padding-block: 8.5rem 10rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.text-main p { margin: 0 0 1.1em; }
.text-main p:last-child { margin-bottom: 0; }
.pt {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.7;
}
.text-main .lead { margin: 2rem 0 0; }

/* Image under the title (About Emeralds). */
.fig { margin: 2.5rem 0 2.5rem; }
.fig img { display: block; width: 100%; height: auto; }
.fig figcaption { margin-top: 0.625rem; font-size: 0.6875rem; line-height: 1.5; letter-spacing: 0.02em; color: var(--color-ink-soft); }
.fig figcaption a { color: var(--color-ink-soft); }
.text-main .fig + .lead { margin-top: 0; }

/* Sections that open and close. Several can be open at once. */
.secs { margin-top: 3.5rem; }
.sec summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0.5rem;
  min-height: var(--tap);
}
.sec summary::-webkit-details-marker { display: none; }
.sec summary h2 {
  margin: 0;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
}
.sec summary:hover { color: var(--color-ink-soft); }
.sec-body { padding-bottom: 2rem; }
.t { display: block; font-weight: 500; }

/* Care: one block of tips. */
.tips { list-style: none; margin: 3rem 0 0; padding: 0; }
.tips li { margin: 0 0 0.875rem; }
.tips .t { display: inline; }
.closing { margin-top: 3rem !important; }

/* FAQ: like The Row FAQ. Title left, numbered questions, all answers open. */
.faq-main { max-width: 65rem; text-align: left; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); column-gap: 3.5rem; }
.fq { margin: 0 0 2.25rem; }
.fq h2 {
  margin: 0 0 0.625rem;
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.27em;
}
.fq p { max-width: 64ch; }
@media (max-width: 47.5rem) {
  .text-main { padding-block: 4.5rem 6.5rem; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq .pt { margin-bottom: 2.5rem; }
}

/* Footer on the content pages: wordmark, languages, privacy, copyright. */
.text-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem 3.5rem;
  border-top: 1px solid var(--color-rule);
  font-size: var(--size-label);
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
}
.text-footer .wm { color: var(--color-ink); letter-spacing: var(--tracking-wordmark); text-transform: uppercase; font-size: 0.8125rem; }
.text-footer nav { display: flex; flex-wrap: wrap; }
.text-footer nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 0.625rem; color: var(--color-ink-soft); text-decoration: none; }
.text-footer nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.35em; }
.text-footer .end { display: flex; flex-wrap: wrap; gap: 0 1.5rem; align-items: center; }
.text-footer .end a { color: var(--color-ink-soft); }
@media (max-width: 47.5rem) { .text-footer { justify-content: center; text-align: center; } }
