/* Blue Cedar Apps LLC — company website
   Plain CSS, no framework. Light theme by default, dark theme automatic. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #FAFAF7;
  --card: #F1F0EA;
  --line: #E2E0D8;
  --text: #0B0B0B;
  --text-2: #5F5F5A;
  --accent: #1E4D3A;
  --button-bg: #0B0B0B;
  --button-text: #FFFFFF;

  --radius-card: 16px;
  --tap: 44px;
  --page: 720px;
  --gutter: 20px;

  --font-title: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0C0C;
    --card: #181818;
    --line: #2E2E2E;
    --text: #F4F3EE;
    --text-2: #A3A29C;
    --accent: #8CC4A6;
    --button-bg: #F4F3EE;
    --button-text: #0C0C0C;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

main {
  flex: 1;
  padding: 48px 0 72px;
}

/* ---------- Text ---------- */

h1,
h2,
.wordmark {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 20px;
  text-wrap: balance;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 28px 0 6px;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 34em;
  margin-bottom: 28px;
}

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

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

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

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

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

/* A link that stands alone on its line gets a full-size tap area. */
.tap {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 1.3rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  font-size: 0.95rem;
  color: var(--text-2);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  opacity: 0.86;
}

/* ---------- Sections and cards ---------- */

.section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.card > :last-child {
  margin-bottom: 0;
}

.card + .card {
  margin-top: 16px;
}

.notice {
  margin: 0 0 32px;
  font-size: 0.95rem;
  color: var(--text-2);
}

.notice strong {
  color: var(--text);
}

.email {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.site-footer address {
  font-style: normal;
  margin-bottom: 4px;
}

.site-footer .company {
  color: var(--text);
  font-weight: 600;
}

.site-footer a {
  color: var(--text-2);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  margin: 8px -10px 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  main {
    padding: 80px 0 96px;
  }
}
