/* =============================================================
   Placecrafts — design system
   Visual language: 2026 warm-minimalism, editorial, memory-driven
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..500&display=swap');

:root {
  /* Colors — warm, earthy, 2026 trend-aligned */
  --bg:             #faf7f1;
  --bg-raised:     #ffffff;
  --bg-subtle:     #f2ede3;
  --ink:           #2a241f;
  --ink-soft:      #6b635c;
  --ink-muted:     #9a938b;
  --line:          #e8e1d4;
  --accent:        #b65b3e;   /* terracotta */
  --accent-soft:   #dca88f;
  --accent-ink:    #7a3924;   /* deeper terracotta for hover */

  /* Typography */
  --serif:  'Fraunces', 'Georgia', serif;
  --sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
            'Helvetica Neue', Arial, sans-serif;

  /* Rhythm */
  --max-w:     68rem;
  --prose-w:   40rem;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 16px/1.7 var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--accent); text-decoration-color: var(--accent-soft); }

::selection { background: var(--accent-soft); color: var(--ink); }

/* =============================================================
   Navigation (entity/default pages — landing has its own)
   ============================================================= */
body:not(.landing) > nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

nav .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  transition: opacity .2s var(--ease);
}
nav .brand:hover { opacity: 0.75; }

/* Shared wordmark (text-based logo for both landing and entity pages) */
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  font-variation-settings: 'opsz' 48;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 0.24em;
}
.wordmark__dot {
  color: var(--accent);
  margin-left: -0.1em;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  body:not(.landing) nav { padding: 1rem; }
}

.lang-switch {
  list-style: none;
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  font-size: .8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-switch li a {
  display: inline-block;
  padding: .35rem .6rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-switch li a:hover { background: var(--bg-subtle); color: var(--ink); }

/* =============================================================
   Page container
   ============================================================= */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* =============================================================
   Entity page
   ============================================================= */
.entity-page { padding-top: 1.5rem; }

.entity-header {
  text-align: center;
  max-width: var(--prose-w);
  margin: 0 auto 4rem;
  padding: 2.5rem 0 3rem;
}

.entity-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.entity-header .lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.entity-header .lead:empty { display: none; }
.entity-header .lead p { margin: 0.5rem 0; }
.entity-header .lead p:first-child { margin-top: 0; }
.entity-header .lead p:last-child  { margin-bottom: 0; }

/* =============================================================
   Design grid — primary conversion surface
   ============================================================= */
.design-grid { margin-bottom: 5rem; }

.design-grid:has(.grid:empty) { display: none; }

.design-grid > h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--ink);
  margin: 0 0 2rem;
  position: relative;
}
.design-grid > h2::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent-soft);
  margin: 1rem auto 0;
}

.design-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.5rem 1.5rem;
}

.design-card { display: flex; flex-direction: column; }

.design-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--ease);
}
.design-card__link:hover { transform: translateY(-2px); }

.design-card__link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(42, 36, 31, 0.04),
    0 8px 24px rgba(42, 36, 31, 0.06);
  transition: box-shadow .3s var(--ease), filter .3s var(--ease);
}
.design-card__link:hover img {
  box-shadow:
    0 2px 4px rgba(42, 36, 31, 0.06),
    0 16px 40px rgba(42, 36, 31, 0.1);
}

.design-card h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  margin: 1rem 0 .25rem;
  color: var(--ink);
}

.design-card .price {
  font-size: .85rem;
  margin: 0;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.design-card__buy { margin-top: .5rem; }
.design-card__buy:empty { display: none; }

/* =============================================================
   Editorial body (AI-generated prose)
   ============================================================= */
.entity-body {
  max-width: var(--prose-w);
  margin: 0 auto 5rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

.entity-body p {
  margin: 0 0 1.5rem;
}

.entity-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 3.5rem 0 1.25rem;
  color: var(--ink);
}

.entity-body h2::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.entity-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 2.5rem 0 .75rem;
  color: var(--ink);
}

.entity-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--accent-ink);
  margin: 2.5rem 0;
  padding: 0 1.5rem;
  border-left: 2px solid var(--accent-soft);
}

.entity-body a { color: var(--accent-ink); }

/* =============================================================
   FAQ — native <details> accordion, FAQPage-schema compatible
   ============================================================= */
.entity-faq {
  max-width: 44rem;
  margin: 4rem auto 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.entity-faq h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 2rem;
  text-align: center;
  text-wrap: balance;
}
.entity-faq h2::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent-soft);
  margin: 1.25rem auto 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--line);
  interpolate-size: allow-keywords;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

/* Hide native disclosure marker */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: var(--ink);
  letter-spacing: -0.008em;
  line-height: 1.4;
  transition: color .2s var(--ease);
  user-select: none;
}
.faq-question:hover { color: var(--accent-ink); }
.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.faq-question span {
  flex: 1;
  padding-top: 0.15rem;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.35rem;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 1.5rem;
  max-width: 56ch;
}
.faq-answer p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .entity-faq { padding-top: 2.5rem; margin: 3rem auto; }
  .faq-question { padding: 1.1rem 0; font-size: 1rem; }
}

/* =============================================================
   Style variants (Tier 2 links) — chips row
   ============================================================= */
.style-variants {
  max-width: var(--prose-w);
  margin: 0 auto 4rem;
  text-align: center;
}

.style-variants h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.style-variants ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}

.style-variants a {
  display: inline-block;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-raised);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.style-variants a:hover { border-color: var(--accent-soft); background: var(--bg-subtle); }

/* =============================================================
   Related entities — compact pills
   ============================================================= */
.related {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.related h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
}

.related-list li a {
  display: inline-block;
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--bg-subtle);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.related-list li a:hover { color: var(--ink); background: var(--line); }

/* Hide entirely if empty */
.related:has(ul:empty) { display: none; }

/* =============================================================
   Footer
   ============================================================= */
/* =============================================================
   Site-wide commerce footer (used on landing, entity, country)
   ============================================================= */
.footer {
  margin-top: 3rem;
  background: var(--ink);
  color: var(--bg);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(232, 225, 212, 0.12);
}
@media (min-width: 820px) {
  .footer-cols { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  margin: 0 0 1rem;
  opacity: 0.7;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  color: var(--bg);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  opacity: 0.85;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.footer-col a:hover { opacity: 1; color: var(--accent-soft); }

.footer-col p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--bg);
  opacity: 0.75;
  margin: 0 0 1rem;
  line-height: 1.55;
}

.newsletter {
  display: flex;
  background: rgba(250, 247, 241, 0.08);
  border: 1px solid rgba(232, 225, 212, 0.18);
  border-radius: 999px;
  overflow: hidden;
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  transition: border-color .2s var(--ease);
}
.newsletter:focus-within { border-color: var(--accent-soft); }
.newsletter input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}
.newsletter input::placeholder { color: rgba(250, 247, 241, 0.5); }
.newsletter button {
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.newsletter button:hover { background: var(--accent-ink); }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}
.footer-bottom p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--bg);
  opacity: 0.6;
  letter-spacing: 0.06em;
}

.payment-methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.payment-methods li {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.7;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(232, 225, 212, 0.22);
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =============================================================
   Mobile refinements
   ============================================================= */
@media (max-width: 640px) {
  nav { padding: 1rem; }
  main { padding: 1rem 1rem 3rem; }

  .entity-header { padding: 1.5rem 0 2rem; margin-bottom: 3rem; }
  .entity-header h1 { font-size: 2rem; }

  .design-grid .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .design-card h3 { font-size: .88rem; }

  .entity-body { font-size: 1rem; line-height: 1.7; }
  .entity-body h2 { font-size: 1.35rem; margin-top: 2.5rem; }
  .entity-body blockquote { font-size: 1.1rem; padding: 0 1rem; }
}

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .design-card__link:hover { transform: none; }
}
