/* JFF Publications — minimal Apple-style */

:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --border: #d2d2d7;
  --surface: #fbfbfd;
  --link: #1d1d1f;
  --link-hover: #86868b;
  --max-text: 720px;
  --max-wide: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 160ms ease;
}

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

/* Layout */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

main {
  min-height: calc(100vh - 240px);
}

.container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: var(--max-text);
}

/* Hero */

.hero {
  padding: 120px 24px 96px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--text);
}

.hero p.lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 400;
}

/* Sections */

section.block {
  padding: 96px 24px;
  border-top: 1px solid var(--border);
}

section.block h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 48px;
  color: var(--text);
}

/* Product cards */

.products {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.product-card h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 12px;
}

.product-card p {
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.5;
}

.product-card .meta {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Article (support, privacy) */

.article {
  padding: 80px 24px 96px;
}

.article h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
}

.article .updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 56px;
}

.article h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 48px 0 16px;
}

.article p,
.article ul {
  margin: 0 0 16px;
  color: var(--text);
}

.article ul {
  padding-left: 22px;
}

.article ul li {
  margin-bottom: 8px;
}

.article a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.article a:hover {
  text-decoration-color: var(--text);
}

/* FAQ */

.faq {
  margin-top: 48px;
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-secondary);
  transition: transform 200ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 12px 0 0;
  color: var(--text-secondary);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 80px;
  color: var(--text-secondary);
  font-size: 13px;
}

.site-footer .inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

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

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