:root {
  --color-bg: #17171a;
  --color-surface: #212126;
  --color-surface-alt: #2a2a30;
  --color-text: #eceae7;
  --color-muted: #9d9aa3;
  --color-border: #38383f;
  --color-accent: #e2542e;
  --color-accent-hover: #f27a52;
  --max-width: 1000px;
  --sidebar-width: 220px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

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

/* Sidebar navigation */

.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

.site-brand {
  display: block;
  text-decoration: none;
}

.site-brand-mark {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.5rem;
}

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

/* Page layout */

.page-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content */

main {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
}

main h1 {
  margin-top: 0;
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero-image {
  width: 100%;
  margin: 0 0 2rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

/* Product list */

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}

.product-card:hover {
  border-color: var(--color-accent);
}

.product-card-image {
  position: relative;
}

.product-card-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.badge-coming-soon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
}

.product-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.product-card-body p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  flex: 1;
}

.product-card-cta {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: bold;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.product-links .button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
}

.modal-close:hover {
  color: var(--color-text);
}

.modal h2 {
  margin-top: 0;
}

.modal-link-section {
  margin-top: 1.25rem;
}

.modal-link-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin: 0 0 0.6rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.coming-soon-note {
  color: var(--color-muted);
  font-style: italic;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 1.25rem;
}

/* Blog list */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  display: block;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 6px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--color-accent);
}

.blog-card-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--color-text);
}

.blog-card-date {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
}

.blog-card-cta {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: bold;
}

.blog-empty {
  color: var(--color-muted);
}

/* Blog post article */

.blog-post-date {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: -0.5rem 0 1.5rem;
}

.blog-post-body p {
  margin: 0 0 1.25rem;
}

.blog-post-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.4rem;
}

.blog-post-body a {
  color: var(--color-accent);
}

.blog-post-body blockquote {
  border-left: 3px solid var(--color-border);
  margin: 1.5rem 0;
  padding-left: 1rem;
  color: var(--color-muted);
}

/* Share buttons */

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.share-label {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: bold;
}

.share-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font: inherit;
  cursor: pointer;
}

.share-button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* FAQ */

.faq {
  margin-top: 2.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: bold;
}

.faq-item p {
  color: var(--color-muted);
  margin: 0.75rem 0 0;
}

.faq-item li {
  color: var(--color-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  text-align: center;
  padding: 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer-contact {
  margin: 0 0 0.5rem;
}

/* Responsive */

@media (max-width: 700px) {
  .site-sidebar {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.1rem;
  }

  .page-content {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 1.9rem;
  }
}
