/* FreeTimeRead — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root {
  --bg: #efe6d1;
  --surface: #f8f3e6;
  --card: #fbf7ec;
  --border: #ddd0ac;
  --text: #21281f;
  --muted: #5c5b47;
  --accent: #21301f;
  --accent-dark: #0f1a0e;
  --accent-soft: #e7f0af;
  --highlight: #dcf25a;
  --radius: 16px;
  --max-width: 1080px;
  --shadow: 0 1px 2px rgba(15, 26, 14, 0.05), 0 10px 28px rgba(15, 26, 14, 0.07);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--accent);
  color: var(--highlight) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent-dark); }

/* Hero */
.hero {
  background: var(--highlight);
  padding: 88px 0 76px;
}

.hero .wrap { max-width: var(--max-width); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(15, 26, 14, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  color: var(--accent-dark);
  max-width: 14ch;
}

.hero p.lead {
  color: var(--accent);
  font-size: 1.15rem;
  max-width: 480px;
  margin: 0 0 30px;
}

.hero .btn {
  background: var(--accent-dark);
  color: var(--highlight);
}

.hero .btn:hover { background: #000; }

/* Section headings */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 72px 0 28px;
  gap: 16px;
}

.section-head h2 {
  font-size: 1.9rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  margin: 4px 0 0;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--accent-soft);
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.3;
}

.product-card .desc {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0 0 18px;
  flex: 1;
}

.product-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--highlight);
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--accent-dark); }

.btn-small {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--card);
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Product detail page */
.product-hero {
  padding: 48px 0 8px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
}

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
}

.product-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.brand-row img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.brand-row span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.product-info h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.buy-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
}

.buy-box .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.buy-box .price-row .price {
  font-size: 1.7rem;
  font-family: var(--font-serif);
}

.buy-box .btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 1.02rem;
}

.buy-box .note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list .check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.long-desc {
  padding: 8px 0 56px;
  max-width: 720px;
}

.long-desc h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
}

.long-desc p {
  color: var(--text);
  margin: 0 0 14px;
}

/* Responsive header */
@media (max-width: 640px) {
  .site-header .wrap { height: 68px; padding: 0 16px; }
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; font-size: 0.9rem; }
  .main-nav { gap: 0; }
  .main-nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 0.82rem; white-space: nowrap; }
  .hero { padding: 56px 0; }
}

/* Contact */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 80px;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin: 0 0 14px;
}

.contact-card p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 26px;
}

.contact-card .btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark); }

.disclosure {
  font-size: 0.8rem;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
}
