/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #faf7f2;
  --surface:     #f2ece0;
  --border:      #e0d8c8;
  --text:        #3a3228;
  --text-muted:  #8a7f72;
  --accent:      #7a6248;
  --accent-hover:#5e4a34;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* ── Hamburger button ───────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  height: 48px;
  width: auto;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

/* ── Language switcher ──────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 0.4rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.lang-switcher a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
}

.lang-switcher a.active {
  color: var(--accent);
}

.lang-switcher a:hover {
  color: var(--accent);
}

/* ── Main ───────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.testimonial-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.testimonial-link:hover {
  color: var(--accent-hover);
}

/* ── Craft grid ─────────────────────────────────────────── */
.crafts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.craft-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.craft-card a:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.craft-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--border);
}

.craft-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.craft-info {
  padding: 1rem 1.1rem 1.2rem;
}

.craft-info h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  height: calc(1rem * 1.4 * 2);
  margin-bottom: 0.35rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.craft-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  height: calc(0.875rem * 1.5 * 3);
  margin-bottom: 0.75rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.read-more {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

/* ── Craft detail page ──────────────────────────────────── */
.craft-detail h1 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.craft-detail .subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.craft-detail .cover-image-placeholder {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  background: var(--border);
  border-radius: 10px;
  margin-bottom: 2.5rem;
}

.craft-detail .cover-image {
  width: 100%;
  max-width: 760px;
  max-height: 520px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 2.5rem;
  display: block;
}

.craft-detail section {
  max-width: 680px;
  margin-bottom: 2rem;
}

.craft-detail section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.craft-detail section p,
.craft-detail section ul {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
}

.craft-detail section ul {
  padding-left: 1.2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

/* ── About / Contact ────────────────────────────────────── */
.page-content {
  max-width: 680px;
}

.page-content h1 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-content p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.75rem 2rem;
  }

  .lang-switcher {
    flex-direction: row;
    margin-left: 0;
    padding: 0.75rem 2rem;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
