/* MirrorMe catalogue demo — shared styles. System fonts only, no external resources. */

:root {
  --ink: #2f2a26;
  --ink-soft: #5b534b;
  --paper: #faf7f2;
  --card: #ffffff;
  --accent: #8a6d4b;
  --accent-dark: #6d5539;
  --glass: #d9ecf2;
  --line: #e4ddd2;
  --danger: #a33a2a;
  --ok: #2e6b3f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, .nav, .button, .brand, .spec, .price, .demo-banner, .form-status, label {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Demo banner */
.demo-banner {
  background: #fdf0d7; color: #6a4e12;
  border-bottom: 1px solid #ecd9a8;
  text-align: center; font-size: .9rem; padding: .45rem 1rem;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.25rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.brand-mark { width: 1.6rem; height: 1.6rem; color: var(--accent); }

.nav { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: inline-block; padding: .45rem .8rem; border-radius: .5rem;
  color: var(--ink-soft); text-decoration: none; font-weight: 600;
}
.nav a:hover, .nav a:focus-visible { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, #f2ebe0, var(--paper)); border-bottom: 1px solid var(--line); }
.hero-row {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 3rem; padding-bottom: 3rem; flex-wrap: wrap;
}
.hero-copy { flex: 1 1 20rem; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 .75rem; line-height: 1.15; }
.hero-art { flex: 0 1 15rem; max-width: 100%; height: auto; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Buttons */
.button {
  display: inline-block; padding: .6rem 1.2rem; border-radius: .6rem;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; border: 2px solid var(--accent); cursor: pointer; font-size: 1rem;
}
.button:hover, .button:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-ghost { background: transparent; color: var(--accent-dark); }
.button-ghost:hover, .button-ghost:focus-visible { background: var(--accent); color: #fff; }

/* Sections, cards, grids */
.section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section h2 { font-size: 1.5rem; margin-top: 0; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 42rem; }

.grid { display: grid; gap: 1.25rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: .9rem;
  padding: 1.25rem;
}
.card h3 { margin-top: 0; }

.tips { max-width: 46rem; padding-left: 1.2rem; }
.tips li { margin-bottom: .6rem; }

/* Products */
.product { display: flex; flex-direction: column; }
.product-art { width: 100%; height: auto; max-height: 11rem; background: var(--paper); border-radius: .6rem; padding: .5rem; }
.product h2 { font-size: 1.2rem; margin: .8rem 0 .2rem; }
.spec { color: var(--ink-soft); font-size: .88rem; margin: 0 0 .5rem; }
.price { margin-top: auto; font-size: 1.15rem; font-weight: 700; }
.price-label {
  display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-soft);
}
.note { color: var(--ink-soft); font-size: .92rem; }

/* Contact form */
.contact-form { max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1rem; }
.field label { font-weight: 600; }
.field input, .field textarea {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--line);
  border-radius: .5rem; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.field input.invalid, .field textarea.invalid { border-color: var(--danger); }

.form-status { min-height: 1.4rem; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--danger); }

.noscript-note {
  background: #fdeaea; border: 1px solid #efc4c4; color: #7c2d21;
  padding: .7rem .9rem; border-radius: .6rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem; border-top: 1px solid var(--line);
  background: var(--card); color: var(--ink-soft); font-size: .92rem;
}
.site-footer .wrap { padding-top: 1.2rem; padding-bottom: 1.4rem; }
.footer-links a { color: var(--accent-dark); }

/* Responsive */
@media (max-width: 52rem) {
  .grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 36rem) {
  .grid.three { grid-template-columns: 1fr; }
  .hero-row { padding-top: 2rem; padding-bottom: 2rem; }
  .header-row { justify-content: center; }
}
