/* ==========================================================================
   DESIGN.md Implementation — Personal Desk Notes Hub
   ========================================================================== */

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --ink: #22201C;
  --ink-muted: #6B6459;
  --border: #DDD8CC;
  --accent: #3C5B4E;
  --accent-hover: #2E463C;
  
  --font-serif: "Source Serif 4", Georgia, Cambria, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Container: Single Column, max-width 640px
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 640px;
  padding: 40px 20px 80px;
}

@media (min-width: 640px) {
  .container {
    padding: 64px 24px 100px;
  }
}

/* --------------------------------------------------------------------------
   Header / Author Byline
   -------------------------------------------------------------------------- */
.site-header {
  margin-bottom: 32px;
}

.site-meta {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--border);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  margin-bottom: 44px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 32px;
  }
}

.hero-subtitle {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Affiliate Disclosure (Transparent & Prominent)
   -------------------------------------------------------------------------- */
.disclosure {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
  background-color: rgba(221, 216, 204, 0.25);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 40px;
}

.disclosure-title {
  font-weight: 500;
  color: var(--ink);
  display: inline;
}

/* --------------------------------------------------------------------------
   Product List & Hairline Dividers
   -------------------------------------------------------------------------- */
.product-list {
  display: flex;
  flex-direction: column;
}

.product-item {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

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

/* Media / Photo */
.product-media {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--surface);
  margin-bottom: 20px;
  aspect-ratio: 4 / 3;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info */
.product-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.product-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.product-review {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 65ch;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .product-review {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   CTA Button: Consistent single accent, subtle color hover
   -------------------------------------------------------------------------- */
.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent);
  color: #FAF9F6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
  border: none;
}

.product-cta:hover,
.product-cta:focus-visible {
  background-color: var(--accent-hover);
}

.product-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-cta .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.product-cta:hover .arrow {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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