/* Knots by Joanne — warm cream / brown / terracotta, matching Joanne's business card */
:root {
  --cream: #faf5ec;
  --paper: #fffdf8;
  --ink: #4a3220;
  --brown: #6b4a2f;
  --terra: #b56545;
  --terra-dark: #96503a;
  --line: #e3d5bf;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--terra);
  padding: 18px 0 12px;
  text-align: center;
}
.brand { text-decoration: none; color: var(--ink); display: inline-block; }
.brand-name {
  font-size: 2.6rem; font-weight: bold; letter-spacing: 0.01em;
  display: inline-flex; align-items: baseline;
}
.knot-o { height: 0.68em; width: auto; margin: 0 0.02em; align-self: center; }
.brand-by { display: block; font-size: 1.25rem; color: var(--brown); margin-top: 2px; }
.tagline {
  margin: 6px 0 10px; color: var(--terra);
  font-style: italic; font-size: 1.05rem; letter-spacing: 0.06em;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.main-nav a {
  color: var(--brown); text-decoration: none; font-size: 1rem;
  padding: 4px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--terra); }
.main-nav a.active { color: var(--terra); border-bottom-color: var(--terra); font-weight: bold; }

/* Content */
main { padding: 28px 18px 10px; }
.page-title { font-size: 1.9rem; color: var(--brown); margin: 0 0 8px; }
.page-blurb { margin: 0 0 10px; max-width: 46em; }
.intro h2 { color: var(--brown); font-size: 1.7rem; margin-top: 0; }
.intro p { max-width: 46em; }

/* Cards */
.grid {
  display: grid; gap: 22px; margin: 22px 0 30px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(74, 50, 32, 0.08);
}
.card img { width: 100%; height: 320px; object-fit: contain; background: #f7efe0; display: block; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.price { margin: 0; font-weight: bold; color: var(--terra); font-size: 1.05rem; }
.desc { margin: 0; font-size: 0.95rem; flex: 1; }
.buy-btn {
  margin-top: 10px; align-self: flex-start;
  background: var(--terra); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 6px; font-size: 0.98rem;
}
.buy-btn:hover { background: #96503a; }

/* Home tiles */
.tiles {
  display: grid; gap: 18px; margin: 24px 0 30px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.tile {
  position: relative; display: block; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); text-decoration: none;
}
.tile img { width: 100%; height: 200px; object-fit: contain; background: #f7efe0; display: block; }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(74, 50, 32, 0.82); color: var(--cream);
  padding: 8px 10px; font-size: 1rem; text-align: center;
}
.tile:hover span { background: var(--terra); }

/* Contact */
.contact {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 22px; margin-bottom: 30px;
}
.contact h2 { color: var(--brown); margin-top: 0; }
.contact a { color: var(--terra); }
.small { font-size: 0.88rem; color: var(--brown); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--paper);
  text-align: center; padding: 20px 0 26px; margin-top: 10px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--terra); }

@media (max-width: 560px) {
  .brand-name { font-size: 2.1rem; }
  .card img { height: 340px; }
}
