/* ==========================================================================
   Francesco Zonca Studio — shared stylesheet
   Japandi minimal: rice-paper palette, soft ink, hairline structure.
   ========================================================================== */

:root {
  --bg: #f5f1ea;         /* rice paper */
  --bg-soft: #ece5d8;    /* slightly deeper paper, for hovers/panels */
  --ink: #2b2822;        /* soft ink, not pure black */
  --stone: #8c8577;      /* muted stone, for secondary text/labels */
  --line: rgba(43, 40, 34, 0.16);      /* hairline rule */
  --line-soft: rgba(43, 40, 34, 0.08); /* faint hairline */
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  opacity: 0;
  animation: fade-in 0.9s ease forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; opacity: 1; }
}

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

/* underline that grows from the left, not a default browser underline */
.link-quiet {
  position: relative;
  padding-bottom: 2px;
}
.link-quiet::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.link-quiet:hover::after {
  transform: scaleX(1);
}

/* ---------- typography roles ---------- */

.serif {
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
}

h1 {
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.eyebrow,
.label {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- header / hairline motif ---------- */
/* the recurring "horizon line" that ties every page together */

.site-header {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
}

.site-header h1 {
  margin-bottom: 1.4rem;
}

.hr-line {
  width: 40px;
  height: 1px;
  background: var(--line);
  margin: 0 auto;
  border: none;
}

/* ---------- nav / filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem 1.6rem;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  max-width: 720px;
}

.filters button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  position: relative;
  padding-bottom: 3px;
}

.filters button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.filters button:hover,
.filters button.active {
  color: var(--ink);
}
.filters button:hover::after,
.filters button.active::after {
  transform: scaleX(1);
}

/* ---------- grid + cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3.5rem 2.5rem;
  padding: 0 3rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
  justify-content: center;
}

.product {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.product a {
  display: block;
}

.product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
  transition: opacity 0.6s ease;
}

.product:hover img {
  opacity: 0.75;
}

.product .caption {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}

.product p.title {
  margin: 0;
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.product .brand {
  display: block;
  margin-top: 0.35rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- footer ---------- */

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.footer {
  text-align: center;
  margin-top: auto;
  padding: 3rem 1.5rem 3rem;
}

.footer a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.footer .copyright {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 0.9rem;
  color: var(--stone);
  opacity: 0.75;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1.5rem 1.5rem;
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 1.5rem;
  }
  .site-header { padding: 2.5rem 1.25rem 2rem; }
}

/* ==========================================================================
   Product detail pages (/products/*.html)
   ========================================================================== */

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem 2rem;
}

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

.product-column img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}

.space-column img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}

.focus-left { object-position: left; }
.focus-right { object-position: right; }

.product-text {
  text-align: left;
}

.product-title {
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

.product-lede {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  line-height: 1.9;
  color: var(--ink);
  margin: 0;
}

.product-meta {
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-soft);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  line-height: 1.9;
  color: var(--stone);
}

.product-meta span,
.product-meta div {
  display: block;
}

.product-meta .dims {
  margin-top: 1rem;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.product-inquiry {
  margin-top: 3rem;
}

.product-inquiry a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.product-footer {
  text-align: center;
  margin: 4rem 0 5vh;
}

.product-footer a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.product-footer .copyright {
  font-size: 0.62rem;
  font-weight: 300;
  margin-top: 0.9rem;
  color: var(--stone);
  opacity: 0.75;
}

@media (max-width: 800px) {
  .product-layout {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 1.5rem;
    gap: 2.5rem;
  }
}
