/*
 * Shared stylesheet for the Foolish Hermit, LLC website.
 * Palette: warm parchment, ink-dark text, and a deep-red accent,
 * intentionally distinct from arcaneclock.com's dark/gold/neon look.
 */
:root {
  --bg-page: #f6f1e7;
  --bg-card: #fbf8f1;
  --border: #e3d8c3;
  --border-strong: #cdbd9f;
  --text-primary: #2a2420;
  --text-secondary: #534a42;
  --text-muted: #8a7f73;
  --accent: #8a2f2a;
  --accent-hover: #6e2420;
  --accent-soft: rgba(138, 47, 42, 0.07);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --max-width: 760px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 6px 20px -10px rgba(42, 36, 32, 0.22);
}

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

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

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding: 0 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
}

/* Header */
header.site-header {
  padding: 4.5rem 0 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-icon-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-icon-link:hover {
  transform: scale(1.05);
}

.brand-icon-link:hover .brand-icon {
  filter: drop-shadow(0 6px 14px rgba(42, 36, 32, 0.20));
}

.brand-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 3px 8px rgba(42, 36, 32, 0.12));
  transition: filter 0.2s ease;
}

h1.brand-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

h1.brand-title a {
  color: inherit;
  text-decoration: none;
}

.brand-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
}

/* Sections */
main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

/* Product card */
.product-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.product-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.product-description {
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fbf8f1;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fbf8f1;
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(138, 47, 42, 0.13);
}

/* About and contact */
.about-card {
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card strong {
  color: var(--text-primary);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Privacy policy */
.policy {
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-top: 1rem;
}

.policy h3:first-of-type {
  margin-top: 0;
}

.policy ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.policy-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

@media (max-width: 600px) {
  header.site-header {
    padding: 3rem 0 2rem;
  }

  .brand-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  h1.brand-title {
    font-size: 1.85rem;
  }

  .card {
    padding: 1.5rem;
  }

  .product-card {
    flex-direction: column;
  }

  .product-icon {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
  }

  .brand-icon-link:hover {
    transform: none;
  }
}
