/* ==========================================================================
   Office of the Administrative Law Judge — American Samoa Government
   Static landing page. No JavaScript, no external resources.
   Palette drawn from the flag of American Samoa: deep navy, white,
   restrained red, muted gold.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */

:root {
  color-scheme: light;

  --navy:        #0f2242;
  --navy-deep:   #0a1730;
  --red:         #9e1f2b;
  --gold:        #b8912f;
  --gold-soft:   #d8bd72;

  --ink:         #16202f;
  --ink-muted:   #46536a;
  --paper:       #ffffff;
  --paper-alt:   #f2f5f9;
  --line:        #cdd6e2;

  --on-navy:      #ffffff;
  --on-navy-soft: #cfd9ea;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", Times, serif;

  --measure: 62rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 3px;
}

/* Dark mode intentionally disabled 2026-08-11 (Chris): the site renders the
   light palette for all visitors, matching the approved design preview. */

/* --- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }

p { margin: 0 0 0.75rem; }

a { color: var(--red); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Thin tricolour rule used above and below the page body. */
.rule {
  height: 4px;
  background: linear-gradient(
    to right,
    var(--red) 0 33.333%,
    var(--gold) 33.333% 66.666%,
    var(--navy-deep) 66.666% 100%
  );
}

/* --- Masthead ----------------------------------------------------------- */

.masthead {
  background: var(--navy);
  color: var(--on-navy);
  border-top: 6px solid var(--navy-deep);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  padding-block: clamp(1.5rem, 5vw, 2.75rem);
}

.emblem {
  flex: 0 0 auto;
  display: block;
  width: clamp(64px, 16vw, 96px);
  height: auto;
}

.masthead__gov {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
}

.masthead__title {
  margin: 0;
  font-size: clamp(1.35rem, 1rem + 2.6vw, 2.5rem);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

/* --- Section nav -------------------------------------------------------- */

.subnav {
  background: var(--navy-deep);
}

.subnav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-block: 0.55rem;
}

.subnav a {
  color: var(--on-navy-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
}

.subnav a:hover,
.subnav a:focus-visible {
  color: var(--on-navy);
  text-decoration: underline;
}

/* --- Main --------------------------------------------------------------- */

main {
  padding-block: clamp(2rem, 6vw, 3.5rem);
}

.lede {
  max-width: 46rem;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1rem + 0.9vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}

.section__heading {
  margin: 0 0 1.25rem;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.section__heading::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--red);
}

/* --- Hours (prominent block) -------------------------------------------- */

.hours {
  margin: 0 0 clamp(2rem, 6vw, 3rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  text-align: center;
}

.hours__heading {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: var(--ink-muted);
}

.hours__days {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.375rem);
  color: var(--ink);
}

.hours__time {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.2rem + 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hours__zone {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* --- Contact cards ------------------------------------------------------ */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

.card {
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}

.card__title {
  margin: 0 0 0.6rem;
  font-size: 1.0625rem;
  color: var(--ink);
}

.card__body {
  margin: 0;
  font-style: normal;
  line-height: 1.65;
  color: var(--ink);
}

.deflist {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: baseline;
}

.deflist dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.deflist dd { margin: 0; }

.tel {
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  background: var(--navy);
  color: var(--on-navy-soft);
}

.footer .rule { margin-top: 0; }

.footer__inner {
  padding-block: 1.5rem 1.75rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* --- Narrow screens ----------------------------------------------------- */

@media (max-width: 30rem) {
  .masthead__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }
  .masthead__title { font-size: 1.4rem; }
}

/* --- Motion / contrast preferences -------------------------------------- */

@media (prefers-contrast: more) {
  :root { --line: #55627a; --ink-muted: #2b3547; }
  .card { border-width: 2px; }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  :root {
    --ink: #000;
    --ink-muted: #222;
    --paper: #fff;
    --paper-alt: #fff;
    --line: #666;
    --on-navy: #000;
    --on-navy-soft: #222;
  }

  body { font-size: 11.5pt; line-height: 1.45; background: #fff; color: #000; }

  @page { margin: 18mm; }

  .masthead,
  .footer {
    background: #fff !important;
    color: #000 !important;
    border-top: none;
  }

  .subnav { display: none; }

  .emblem { width: 68px; }

  .rule {
    background: none;
    border-top: 1.5pt solid #000;
    height: 0;
  }

  .wrap { max-width: none; padding-inline: 0; }

  main { padding-block: 1rem 0; }

  .hours,
  .card {
    border: 1pt solid #000;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .hours { border-left-width: 3pt; }

  .cards { grid-template-columns: repeat(3, 1fr); }

  a { color: #000; text-decoration: none; }

  .footer { margin-top: 1.5rem; }
}
