/* Mr. Jay's Language Learning Tips — mobile-first signup page */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #1e5f4a;
  --accent-hover: #164a39;
  --accent-soft: #e8f2ee;
  --border: #e2ddd6;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
  --max: 42rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

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

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

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  padding: 1.25rem 1.25rem 0;
  max-width: var(--max);
  margin: 0 auto;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 100%;
}

.logo-text {
  max-width: 16rem;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero .tagline {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.hero .sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 40ch;
}

.cta-primary {
  display: inline-block;
  width: 100%;
  max-width: 22rem;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.cta-primary:hover,
.cta-primary:focus {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.cta-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.author-line {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--surface);
}

.faq summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq .answer {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.sample-teaser {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
}

.sample-teaser p {
  margin: 0 0 1rem;
}

.link-button {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}

.link-button:hover {
  border-color: var(--accent);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Sample issue page */
.sample-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.sample-article h1 {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

.sample-article .issue-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.sample-article h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
}

.sample-article p,
.sample-article li {
  margin: 0 0 0.85rem;
}

.sample-article ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.sample-article ol li {
  margin-bottom: 1rem;
}

.sample-article .signoff {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-style: italic;
  color: var(--muted);
}

.back-home {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

@media (min-width: 480px) {
  .cta-primary {
    width: auto;
    min-width: 16rem;
  }
}

/* Tip pages (SEO guides) */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tip-article .lede {
  font-size: 1.1rem;
}

.tip-article ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.inline-cta {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.75rem 0;
  text-align: center;
}

.inline-cta p {
  margin: 0 0 1rem;
}

.inline-cta .cta-primary {
  color: #fff;
}

.tip-list {
  list-style: none;
  padding: 0;
}

.tip-list li {
  margin: 0 0 1.25rem;
}

.tip-list .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-tips {
  line-height: 1.8;
}
