/* ============================================================
   FryeMail.me — style.css
   Clean, professional, light-mode
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg:         #F8F7F4;
  --bg-alt:     #F1EFE9;
  --surface:    #FFFFFF;
  --border:     #DDD9D0;
  --border-lt:  #E8E5DE;
  --text:       #1A1A1A;
  --text-mid:   #3D3D3D;
  --text-muted: #767676;
  --accent:     #1E3A5F;
  --accent-lt:  #EEF2F7;
  --accent-link:#1A5276;
  --warn:       #7D4E00;

  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:    4px;
  --radius-md: 8px;
  --max-w:     780px;
  --max-w-wide:1080px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }

p { color: var(--text-mid); }
p + p { margin-top: 1rem; }

a {
  color: var(--accent-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { color: var(--text); font-weight: 600; }
code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.875em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  color: var(--text-mid);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--wide { max-width: var(--max-w-wide); }

section { padding-block: 2.5rem; }
section + section { border-top: 1px solid var(--border-lt); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-links .nav-btn {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-links .nav-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 3.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-headline { margin-bottom: 1rem; }

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}
.btn--primary:hover { background: #162D4A; border-color: #162D4A; color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-lt); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border);
}

.card {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
}

.card h3 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0;
}
.card p { font-size: 0.88rem; line-height: 1.65; color: var(--text-muted); }

/* ---------- Callout ---------- */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.callout-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.callout h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.callout p { font-size: 0.9rem; color: var(--text-muted); }

.callout-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* ---------- Section heading ---------- */
.section-title { margin-bottom: 1rem; }
.section-intro { max-width: 58ch; margin-bottom: 0; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem 3rem;
  margin-top: 2.5rem;
}

.benefit h3 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.benefit p { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Full-bleed table section ---------- */
.section-table { padding-block: 4rem; }
.section-table + section { border-top: 1px solid var(--border-lt); }

.table-full {
  width: calc(100% - 4rem);
  overflow-x: auto;           /* fallback for very narrow screens only */
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-block: 1.5rem;
  margin-inline: 2rem;
}

.table-full table {
  width: 100%;
  min-width: 100%;
  table-layout: auto;
}

/* ---------- Table ---------- -->
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

thead th {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
thead th + th { border-left: 1px solid var(--border); }

tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.5;
}
tbody td + td { border-left: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-alt); }
tbody td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }

.yes     { color: #1A6640; font-weight: 600; }
.partial { color: var(--warn); }
.no      { color: #8B1A1A; }

/* ---------- Criteria ---------- */
.criteria-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.criteria-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
}

.criteria-list li::before {
  content: '—';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ---------- Resource links ---------- */
.resource-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.resource-list li a {
  display: block;
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.resource-list li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Tips ---------- */
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 1px; margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--border); }

.tip {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
}

.tip strong { display: block; font-size: 0.95rem; color: var(--text); margin-bottom: 0.3rem; }
.tip p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ---------- Honorable mentions ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.pill {
  font-size: 0.82rem;
  padding: 0.3rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Note box ---------- */
.note {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-block: 2rem;
}

/* ---------- Prose (learnmore body) ---------- */
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.4rem; font-family: var(--font-body); font-weight: 600; }
.prose p  { margin-top: 1rem; }
.prose ul { margin-top: 0.75rem; padding-left: 1.25rem; color: var(--text-mid); font-size: 0.95rem; }
.prose ul li { margin-bottom: 0.3rem; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding-block: 4rem 3rem;
  border-bottom: 1px solid var(--border);
}
.page-header p { margin-top: 0.75rem; max-width: 58ch; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 2rem;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-powered {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.footer-powered a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-powered a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  section { padding-block: 2rem; }
  .hero   { padding-block: 2.5rem 2rem; }
  .callout-pair { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .nav-links { gap: 1.25rem; }
}
