/* ===== Retro Design System — Typography-First Print ===== */
:root {
  --paper: #faf8f2;
  --ink: #111;
  --red: #c0392b;
  --text-secondary: #333;
  --text-meta: #666;
  --text-faint: #999;
  --rule-light: #d5cfc0;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Helvetica, Arial, sans-serif;
  --container: 1100px;
}

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

body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { opacity: 0.7; }

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

/* ===== Nav Bar ===== */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 36px;
  border-bottom: 1px solid var(--rule-light);
  font-family: var(--sans);
}

.site-nav-name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 1px;
}

.site-nav-links { display: flex; gap: 18px; }
.site-nav-links a {
  font-size: 12px;
  color: #777;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.site-nav-links a:hover,
.site-nav-links a.active { color: var(--ink); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
}

/* ===== Masthead ===== */
.masthead { padding: 56px 36px 36px; }

.masthead-overline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.masthead-title {
  font-size: 44px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 2px;
  line-height: 1.05;
}

.masthead-rule { width: 40px; height: 3px; background: var(--red); margin-top: 16px; }

.masthead-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 640px;
}

.masthead-ctas { margin-top: 20px; display: flex; gap: 20px; font-family: var(--sans); }

.cta-red {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
}
.cta-red:hover { opacity: 0.7; }

.cta-grey {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-meta);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
.cta-grey:hover { color: var(--ink); }

/* ===== Sections ===== */
.section { padding: 36px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.section-num {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 3px;
  white-space: nowrap;
}

.section-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.3px;
}

.section-head-line { flex: 1; border-top: 1px solid var(--rule-light); }

/* ===== Rules ===== */
.rule { border-top: 1px solid var(--rule-light); margin: 0 36px; }
.rule-ink { border-top: 1px solid var(--ink); margin: 0 36px; }
.rule-double { border-top: 3px double var(--ink); margin: 0 36px; }

/* ===== Product List (Homepage) ===== */
.product-list { border-top: 1px solid var(--ink); padding-top: 14px; }

.product-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dotted var(--rule-light);
}
.product-item:last-child { border-bottom: none; }

.product-item-img {
  width: 80px;
  height: 80px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e0dcd0;
}

.product-item-text { flex: 1; }

.product-item-name { font-size: 18px; font-weight: 700; color: var(--ink); }

.product-item-tags {
  font-family: var(--sans);
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.link-red {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
}

.link-black {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}

/* ===== About Prose ===== */
.about-prose { font-size: 16px; color: #444; line-height: 1.9; }
.about-prose p { margin-bottom: 10px; }
.about-prose strong { color: var(--ink); }

/* ===== Contact Block (Homepage) ===== */
.contact-block { font-size: 15px; color: #444; line-height: 2.2; }

.contact-label {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-value { color: var(--text-secondary); }
.contact-value a { color: var(--red); text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 14px 0 24px;
}

.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}

.footer-links {
  margin-top: 6px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.footer-links a {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-faint);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }

/* ===== Page Header (subpages) ===== */
.page-header { padding: 40px 0 24px; }

.page-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 1px;
}

.breadcrumb {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-meta); }
.breadcrumb span { color: var(--text-faint); }

/* ===== Products Page ===== */
.products-layout { padding: 0 0 48px; }

.products-content { display: flex; gap: 32px; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }

.product-count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid #e0dcd0;
  border-radius: 4px;
  overflow: hidden;
}

.product-card-image { height: 280px; overflow: hidden; background: #f0ede6; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }

.product-card-body { padding: 16px; }

.product-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

/* ===== Sidebar ===== */
.sidebar { width: 200px; flex-shrink: 0; }

.sidebar-widget { margin-bottom: 20px; }

.sidebar-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}

.search-form { display: flex; }
.search-form input {
  flex: 1;
  border: 1px solid var(--rule-light);
  border-right: none;
  border-radius: 2px 0 0 2px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--sans);
  background: #fff;
  outline: none;
}
.search-form input:focus { border-color: var(--red); }
.search-form button {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 0 2px 2px 0;
  padding: 8px 12px;
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.search-form button:hover { opacity: 0.8; }

.sidebar-product-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 2px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s;
}
.sidebar-product-item:hover { background: #f0ede6; }
.sidebar-product-item img {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  font-family: var(--sans);
}

.pagination a,
.pagination span {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.pagination a { color: var(--text-secondary); }
.pagination a:hover { color: var(--ink); }

.pagination .current {
  color: var(--red);
  font-weight: 700;
}

.pagination .disabled { color: #ccc; pointer-events: none; }

/* ===== News Page ===== */
.news-layout { padding: 0 0 48px; }

.news-content { display: flex; gap: 32px; }

.news-list { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.news-item { padding-bottom: 20px; border-bottom: 1px solid var(--rule-light); }

.news-date {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-meta);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.news-item-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}
.news-item-title a { color: inherit; text-decoration: none; }
.news-item-title a:hover { color: var(--red); }

.news-excerpt {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.read-more {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}

/* ===== About Page ===== */
.about-layout { padding: 0 0 64px; }

.about-intro { margin-bottom: 48px; }
.about-intro p { font-size: 18px; color: #444; line-height: 1.9; margin-bottom: 10px; }

.about-story { padding: 36px 0; border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); margin-bottom: 48px; }
.about-story p { font-size: 18px; color: #444; line-height: 1.9; margin-bottom: 10px; }
.about-story strong { color: var(--ink); }

.about-process { text-align: left; }
.about-process-title { font-size: 28px; font-weight: 900; color: var(--ink); margin-bottom: 20px; }

.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-item { text-align: center; }
.process-item-num {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--red);
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.process-item h4 { font-size: 16px; font-weight: 700; color: var(--ink); }

/* ===== Contact Page ===== */
.contact-layout { padding: 0 0 64px; }

.contact-content { display: flex; gap: 32px; }

.contact-form-wrap { flex: 1; }

.form-card { max-width: 560px; }
.form-card h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.form-group .required { color: var(--red); }

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--rule-light);
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: var(--serif);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { height: 140px; resize: vertical; }

.btn-submit {
  padding: 10px 28px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
}
.btn-submit:hover { opacity: 0.85; }

.form-message { display: none; margin-bottom: 16px; padding: 10px 14px; font-family: var(--sans); font-size: 13px; line-height: 1.5; border-radius: 2px; }

.form-message--success { display: block; background: #1a1a1a; color: #e0e0e0; }
.form-message--error { display: block; background: transparent; color: var(--red); border: 1px solid var(--red); }

.contact-info-sidebar { width: 240px; flex-shrink: 0; }

.contact-info-card { font-size: 14px; }

.contact-detail { margin-bottom: 14px; color: var(--text-secondary); line-height: 1.8; }
.contact-detail strong {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* ===== Older Posts Link ===== */
.older-posts { text-align: center; margin-top: 12px; }

.older-posts-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
  padding: 8px 16px;
  border: 1px solid var(--rule-light);
  text-decoration: none;
}
.older-posts-link:hover { border-color: var(--ink); }

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  z-index: 50;
}
.scroll-top:hover { opacity: 0.8; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .products-content,
  .news-content,
  .contact-content { flex-direction: column; }
  .sidebar,
  .contact-info-sidebar { width: 100%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .masthead { padding: 40px 20px 28px; }
  .masthead-title { font-size: 28px; }
  .section { padding: 28px 20px; }
  .rule,
  .rule-ink,
  .rule-double { margin: 0 20px; }
  .site-nav { padding: 10px 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 8px 20px;
    gap: 0;
    border-bottom: 1px solid var(--rule-light);
  }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--rule-light); font-size: 14px; }
  .main-nav a:last-child { border-bottom: none; }
  .mobile-toggle { display: block; }
}
