/* site.css — Shared styles for all CraftCMS pages */

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --text: #333333;
  --heading: #111111;
  --accent: #ca9b52;
  --border: #e8e2d8;
  --content-max: 1140px;
}

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

body {
  color: var(--text);
  background: var(--bg);
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

/* Container */
.container {
  width: min(var(--content-max), 100% - 48px);
  margin: 0 auto;
}

/* Site header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  color: var(--heading);
  font-family: "Dancing Script", cursive;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.main-nav a {
  color: #222;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.main-nav a.active {
  color: var(--accent);
}

/* Page sub-header (shared by posts, knitstitch, etc.) */
.page-subheader,
.page-title-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 42px 0;
  margin-bottom: 38px;
  text-align: center;
}

.page-subheader h2,
.page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 400;
  color: var(--heading);
  letter-spacing: 0.5px;
}

/* Content wrappers */
.content-wrap {
  width: 100%;
  padding: 0 24px;
  margin: 0 auto;
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #f2eee8;
  padding: 22px 0;
  margin-top: auto;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.footer-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-socials a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: #333;
  color: #fff;
  border-color: #333;
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--heading);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-content {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

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

.card-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--heading);
}

.meta {
  margin-top: auto;
  font-size: 12px;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

/* Tag / category links */
.tag-text {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
}

.tag-text a {
  color: var(--accent);
}

/* Chips / badges */
.chip,
.card-type-chip,
.card-design-source-chip {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Panel (sidebar) */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
}

.panel-title {
  margin: 0 0 12px;
  color: var(--heading);
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.panel-intro {
  font-size: 14px;
  line-height: 1.7;
}

.panel-sections {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.panel-section {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.panel-section-title {
  margin: 0 0 8px;
  color: var(--heading);
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 400;
}

.panel-text {
  font-size: 14px;
  line-height: 1.7;
}

.panel-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Filter list (taxonomy) */
.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.filter-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--heading);
  font-size: 14px;
  line-height: 1.5;
}

.filter-row input {
  margin: 0;
  accent-color: var(--accent);
}

.filter-label {
  color: var(--heading);
}

.count {
  color: #8a8a8a;
}

/* Responsive */
@media (max-width: 740px) {
  .container {
    width: min(var(--content-max), 100% - 28px);
  }

  .content-wrap {
    padding: 0 14px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
