/* ============================================================
   CENTS Traits Lab – Responsive Master Stylesheet (Copper Theme)
   ============================================================ */

/* Base layout */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111;
  background: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.55;
  font-size: 1rem;
}

/* Color variables */
:root {
  --copper: #b46b43;
  --copper-light: #d88f5b;
  --copper-dark: #7a442a;
  --text-muted: #555;
  --border-color: rgba(0,0,0,0.15);
}

/* Page container */
#impressum {
  padding: 4vw;
  max-width: 900px;
  margin: 0 auto;
}

#impressum h2 { margin-top: 35px; }


/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p, ul, li {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1em;
}

/* ============================================================
   Traits Atlas – Grid Layout for Index Page
   ============================================================ */

/* The grid itself */
#impressum .traits-grid {
  display: grid !important;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0.5rem 0 2rem;
}

/* Make anchors behave as block-level grid items */
#impressum .trait-card {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

/* Thumbnail images */
#impressum .trait-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Caption / meta line below each image */
#impressum .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 6px;
}


/* --- Badge styles from main site --- */
.badge {
  font-size:.7rem; padding:.15rem .45rem; border:1px solid rgba(0,0,0,.12);
  border-radius:999px; opacity:.8;
}
#impressum .badge {
  font-size:.7rem; padding:.15rem .45rem; border:1px solid rgba(0,0,0,.12);
  border-radius:999px; opacity:.8;
}

/* Category badge variants (subtle, legible) */
.badge { 
  font-size:.7rem; padding:.15rem .45rem; border:1px solid rgba(0,0,0,.12);
  border-radius:999px; opacity:.9; background:transparent;
}

/* Patina (existing) */
.badge--patina { border-color: rgba(16, 122, 87, .25); color: rgb(16,122,87); }

/* Optional other categories, if you use them */
.badge--wear     { border-color: rgba(120, 69, 46, .25);  color: rgb(120,69,46); }
.badge--finish   { border-color: rgba(118, 118, 118, .25); color: rgb(90,90,90); }
.badge--texture  { border-color: rgba(66, 86, 166, .25);  color: rgb(66,86,166); }
.badge--alter    { border-color: rgba(153, 40, 40, .25);  color: rgb(153,40,40); }
.badge--residue  { border-color: rgba(145, 114, 0, .25);  color: rgb(145,114,0); }
.badge--motif    { border-color: rgba(100, 100, 140, .25); color: rgb(84,84,120); }


/* Header + crumbs */
.traits-top {
  margin-bottom: 2rem;
}
.crumb {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.crumb:hover {
  color: var(--copper-dark);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Responsive Pills Navigation
   ------------------------------------------------------------ */
.traits-pills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.pill {
  flex: 0 0 auto;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, #faf8f6 0%, #f1e8e1 100%);
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.pill:hover {
  background: linear-gradient(180deg, var(--copper-light) 0%, var(--copper) 100%);
  color: #fff;
  border-color: var(--copper-dark);
}
.pill.active {
  background: linear-gradient(180deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  border-color: var(--copper-dark);
}

/* ------------------------------------------------------------
   Traits Atlas Layouts
   ------------------------------------------------------------ */

/* Unified responsive atlas-pair layout */
.atlas-pair {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}
@media (max-width: 1024px) {
  .atlas-pair {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  .atlas-pair {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Unified responsive atlas-grid-3 */
.atlas-grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-items: center;
}
@media (max-width: 768px) {
  .atlas-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
@media (max-width: 480px) {
  .atlas-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Figures + images */
.atlas-figure {
  text-align: center;
  max-width: 100%;
}
.atlas-figure img,
.atlas-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.atlas-subline {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.4rem;
  text-align: center;
  word-break: break-word;
}
.atlas-full-center {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* make the centered "full" example similar in size to each figure in the pair */
.atlas-full-center .atlas-figure {
  flex: 0 0 50%;      /* behaves like one of the two columns above */
  max-width: 420px;   /* tweak this value until it visually matches */
  margin: 0 auto;
}

/* Keep all key Verdigris examples visually the same size */
.atlas-pair,
.atlas-full-center {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Force same width for all three hero examples */
.atlas-pair .atlas-figure,
.atlas-full-center .atlas-figure {
  flex: 0 0 360px;    /* same fixed width column */
  max-width: 360px;
  margin: 0 auto;
}

/* Make sure images don't overshoot their figure */
.atlas-pair .atlas-img,
.atlas-full-center .atlas-img {
  width: 100%;
  height: auto;
  display: block;
}


/* ------------------------------------------------------------
   Footer – Responsive + Elegant
   ------------------------------------------------------------ */
footer {
  width: 100%;
  background: #fff;
  padding: 15px 20px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}
footer #menu-footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
footer a {
  color: #111;
  text-decoration: none;
  font-weight: 400;
}
footer a:hover {
  text-decoration: underline;
}

/* Desktop: fixed footer */
@media (min-width: 1025px) {
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
  }
}

/* Tablets + phones: static footer */
@media (max-width: 1024px) {
  footer {
    position: static;
    box-shadow: none;
    padding: 1.5rem 0 2rem;
  }
}

/* ------------------------------------------------------------
   Small Device Optimizations
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
    padding-bottom: 3rem;
  }
  #impressum {
    padding: 5vw 4vw 25vw;
  }
  .traits-top h1 {
    font-size: 1.4rem;
  }
  .pill {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
}
