/* ==================================================================
   Fernway Studio - shared stylesheet
   One light theme, one accent (fern green), 10px radius everywhere.
   ================================================================== */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1b1d1f;
  --muted: #5b6067;
  --faint: #8a8f96;
  --border: #e3e4e1;
  --accent: #256d51;
  --accent-ink: #1b5a42;
  --accent-tint: #eaf2ee;
  --radius: 10px;
  --wrap: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--ink); }

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 550; }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 72px; }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 17ch;
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 30px;
}

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

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 550;
  font-size: 0.95rem;
  border: 1px solid var(--accent);
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-quiet:hover { background: var(--surface); color: var(--ink); border-color: var(--faint); }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--border); }

.section h2 {
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.section > .wrap > p.lede {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 36px;
}

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cover {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

/* Replace these gradient covers with real product screenshots when
   available: drop the image in assets/img/ and swap the div for an
   <img>. See README.md, "Adding product screenshots". */
.cover-landlord {
  background: linear-gradient(145deg, #23443a 0%, #2f6d54 70%, #3d8266 100%);
  color: #f2f6f3;
}
.cover-aquarium {
  background: linear-gradient(145deg, #1d3a45 0%, #29586a 70%, #357286 100%);
  color: #eef5f7;
}
.cover-muted {
  background: linear-gradient(145deg, #e9eae6 0%, #dddfd9 100%);
  color: #6a6f6a;
}

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card-body h3 { margin: 0; font-size: 1.1rem; letter-spacing: -0.01em; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price { font-weight: 650; font-size: 1rem; }
.price small { color: var(--faint); font-weight: 400; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 550;
  background: var(--accent-tint);
  color: var(--accent-ink);
}
.badge-neutral { background: #ededeb; color: var(--muted); }

/* ---------- Product rows (products page) ---------- */

.product-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 40px 0;
  align-items: start;
}
.product-row + .product-row { border-top: 1px solid var(--border); }

.product-row .cover {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.product-row h3 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -0.015em; }
.product-row .row-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.product-row p { color: var(--muted); margin: 0 0 12px; max-width: 60ch; }

.feature-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.feature-list li { padding: 4px 0 4px 22px; position: relative; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Principles / about ---------- */

.principles {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.principles li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.principles li strong { font-weight: 600; letter-spacing: -0.01em; }
.principles li span { color: var(--muted); }

/* ---------- Legal / prose pages ---------- */

.page-head { padding: 64px 0 8px; }
.page-head h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.page-head .updated { color: var(--faint); font-size: 0.9rem; margin: 0; }
.page-head p.lede { color: var(--muted); max-width: 58ch; margin: 8px 0 0; }

.prose { max-width: 68ch; padding: 24px 0 72px; }
.prose h2 { font-size: 1.2rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #3c4046; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

/* ---------- Contact ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
  margin: 8px 0 24px;
}
.contact-card .label { font-size: 0.85rem; color: var(--faint); margin: 0 0 4px; }
.contact-card .email { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .principles li { grid-template-columns: 1fr; gap: 4px; }
  .site-nav { gap: 18px; }
  .site-header .wrap { height: 60px; gap: 16px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand { font-size: 0.95rem; gap: 8px; }
  .brand-mark { width: 22px; height: 22px; font-size: 0.7rem; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.9rem; }
}
