/*
 * camelretirement.com, the public Camel Retirement site.
 *
 * Colours are copied from the Camel design preview tokens,
 * apps/camel/src/presentation/tokens.ts (Refined Sand/Sky), and the
 * contrast pairs measured in docs/design/FOUNDATION_TOKENS_2026-09-25.md.
 * No external fonts: the preview uses Noto Sans and Noto Serif, so the
 * stacks below use them when installed and fall back to system faces.
 */
:root {
  --sand: #faf2e6; /* palette.sand, page canvas */
  --paper: #fffaf4; /* colors.surface, raised surface */
  --dune: #ead9c3; /* palette.dune, subtle surface */
  --ink: #2e3631; /* colors.ink (graphite), 11.2:1 on sand */
  --reading-ink: #1a1f1c; /* colors.readingInk, long-form text */
  --muted: #3e5246; /* colors.muted (stone), 7.56:1 on sand */
  --accent: #98452f; /* colors.accent, warm text links, AA on sand and paper */
  --button: #556b4a; /* colors.button (olive), white text 5.85:1 */
  --button-pressed: #3e5246; /* colors.buttonPressed (stone) */
  --on-button: #ffffff; /* colors.onAccent */
  --border: #7a6d5c; /* colors.border */
  --divider: #d8c9b6; /* colors.divider */
  --focus: #2e3631; /* colors.focus (graphite) */
  --focus-gap: #faf2e6; /* colors.focusGap (sand) */
  --font-body:
    "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Noto Serif", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--reading-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-gap);
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header and navigation */
.site-header {
  border-bottom: 1px solid var(--divider);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  gap: 8px;
}

.site-name img {
  display: block;
  flex: none;
  width: 167px;
  height: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--dune);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Content */
main.wrap {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1,
h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  margin: 0 0 16px;
  font-size: 2rem;
}

h2 {
  margin: 40px 0 8px;
  font-size: 1.375rem;
}

p,
ul {
  margin: 0 0 16px;
}

.lead {
  color: var(--ink);
  font-size: 1.25rem;
}

.muted {
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 32px 0 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 12px;
}

.product img {
  flex: none;
  width: 56px;
  height: 56px;
}

/* App screens with sample data, beside About sections */
.about-section {
  display: flow-root;
}

.shot {
  float: right;
  width: 9rem;
  height: auto;
  margin: 40px 0 12px 16px;
  border: 1px solid var(--divider);
  border-radius: 12px;
}

@media (min-width: 40rem) {
  .shot {
    width: 12rem;
  }
}

.product h2 {
  margin-top: 0;
}

/* A touchable action, not a bare link */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--button);
  color: var(--on-button);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--button-pressed);
}

.contact-card {
  margin: 24px 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 12px;
}

.contact-card h2 {
  margin-top: 0;
}

address {
  font-style: normal;
}

.email {
  overflow-wrap: break-word;
}

.effective {
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0 0 8px -10px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer .maker {
  margin: 0 0 8px -10px;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.75rem;
  }

  .product {
    flex-direction: column;
  }
}

@media (forced-colors: active) {
  .button {
    border: 2px solid ButtonText;
  }
}
