/* East of the Sun Yarns — Handspun Yarns, Lincolnshire UK */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --earth: #5C4033;
  --cream: #FAF3E0;
  --warm-brown: #8B6914;
  --clay: #A0522D;
  --oat: #E8DCC8;
  --charcoal: #2C2C2C;
  --moss: #6B7B3A;
  --linen: #F5F0E8;
  --bark: #3D2B1F;
  --wheat: #C4A96A;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.75;
  font-weight: 300;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--earth);
}

h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 0.5em; }
h2 { font-size: 2rem; margin-bottom: 0.4em; }
h3 { font-size: 1.35rem; margin-bottom: 0.3em; }

a { color: var(--clay); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--moss); }

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

/* Navigation */
.site-nav {
  background: var(--earth);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

.brand-icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; margin-right: 6px; }


.nav-links { display: flex; list-style: none; gap: 1.8rem; }

.nav-links a {
  color: var(--oat);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.4px;
}

.nav-links a:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* Hero */
.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 43, 31, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 2rem;
  max-width: 680px;
}

.hero-content h1 { color: #fff; font-size: 3.2rem; }
.hero-content p { font-size: 1.15rem; opacity: 0.92; margin-top: 0.4em; }

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--wheat);
  color: var(--bark);
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.btn:hover { background: var(--clay); color: #fff; }

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Section intro */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-intro p { font-size: 1.05rem; color: #666; }

/* Woven divider */
.woven-divider {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--warm-brown), var(--warm-brown) 8px, var(--oat) 8px, var(--oat) 16px);
  margin: 0;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.card:hover { transform: translateY(-3px); }

.card img { width: 100%; height: 220px; object-fit: cover; display: block; }

.card-body { padding: 1.4rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { color: #666; font-size: 0.95rem; }

/* Page header */
.page-header {
  background: var(--linen);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--oat);
}

.page-header h1 { margin-bottom: 0.3em; }
.page-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Content body */
.content-body { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.content-body p { margin-bottom: 1.4em; font-size: 1.05rem; }
.content-body h2 { margin-top: 2.5rem; }
.content-body h3 { margin-top: 1.8rem; }
.content-body img { width: 100%; border-radius: 4px; margin: 1.5rem 0; display: block; }
.content-body ul, .content-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.content-body li { margin-bottom: 0.5rem; }

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.two-col img { width: 100%; border-radius: 4px; display: block; }

/* Yarn listing cards for index */
.yarn-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.yarn-card {
  background: var(--linen);
  border: 1px solid var(--oat);
  border-radius: 6px;
  overflow: hidden;
}

.yarn-card img { width: 100%; height: 200px; object-fit: cover; display: block; }

.yarn-card-body { padding: 1.2rem; }
.yarn-card-body h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.yarn-card-body p { font-size: 0.9rem; color: #666; }

.yarn-tag {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--oat);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  color: var(--earth);
  font-weight: 600;
}

/* Colour palette strip */
.colour-strip {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  height: 100px;
  margin-top: 2rem;
}

.colour-swatch {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.6rem;
  transition: flex 0.3s;
  cursor: default;
}

.colour-swatch:hover { flex: 1.4; }

.colour-swatch span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* Fibre info cards */
.fibre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.fibre-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: 6px;
  border-left: 4px solid var(--warm-brown);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.fibre-card h3 { color: var(--earth); }
.fibre-card p { font-size: 0.95rem; color: #555; }

/* About page specifics */
.about-feature {
  background: var(--linen);
  border-radius: 6px;
  overflow: hidden;
  margin: 2rem 0;
}

.about-feature img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.about-feature-body { padding: 2rem; }

/* Footer */
.site-footer {
  background: var(--bark);
  color: var(--oat);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: var(--oat); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.88rem; color: rgba(255,255,255,0.6); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--earth);
    padding: 1rem 2rem 1.2rem;
    gap: 0.8rem;
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .hero { min-height: 340px; height: 55vh; }
  .hero-content h1 { font-size: 2.2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .yarn-showcase { grid-template-columns: 1fr 1fr; }
  .container, .container-narrow { padding: 2.5rem 1.5rem; }
  .colour-strip { height: 70px; }
  .colour-swatch span { font-size: 0.55rem; }
}

@media (max-width: 480px) {
  .yarn-showcase { grid-template-columns: 1fr; }
  .site-nav { padding: 0 1.2rem; }
}
