/* ————————————————————————————————————————————————
   Cozy in Cuenca — public site styles
   Palette: gold #d9a259 · coral #ff6e61 · peach #f8caa5
            mint #a8e6ce · pink #ffadad
   ———————————————————————————————————————————————— */

:root {
  --gold: #d9a259;
  --coral: #ff6e61;
  --peach: #f8caa5;
  --mint: #a8e6ce;
  --pink: #ffadad;

  /* darkened companions, readable on cream */
  --gold-deep: #8a5a17;
  --coral-deep: #bc3a2b;
  --mint-deep: #2f7d5c;
  --pink-deep: #b25064;

  /* tints for fills */
  --gold-soft: #f6e7cd;
  --coral-soft: #ffe2de;
  --peach-soft: #fdeede;
  --mint-soft: #ddf3ea;
  --pink-soft: #ffe4e4;

  --cream: #fdf6ec;
  --paper: #fffdf8;
  --ink: #46342a;
  --ink-soft: #7d6a5c;
  --line: #eaddc9;

  --shadow: 0 6px 24px rgba(122, 82, 43, 0.09), 0 2px 6px rgba(122, 82, 43, 0.06);
  --shadow-lift: 0 14px 34px rgba(122, 82, 43, 0.14), 0 4px 10px rgba(122, 82, 43, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Nunito", "Avenir", "Segoe UI", sans-serif;
  --measure: 44rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--coral-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ——— header ——— */

.site-header {
  padding: 1.1rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { display: block; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover { background: var(--peach-soft); color: var(--ink); }

.site-nav a.active { background: var(--ink); color: var(--cream); }

/* ——— hero ——— */

.hero {
  text-align: center;
  padding: 2.5rem 0 0;
}

.hero .eyebrow {
  display: inline-block;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  max-width: 20ch;
  margin: 0 auto 0.4em;
}

.hero h1 em {
  font-style: italic;
  color: var(--coral);
}

.hero p {
  max-width: 42ch;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-skyline {
  margin-top: 1.5rem;
  line-height: 0;
}

.hero-skyline img { width: min(56rem, 100%); }

/* ——— wave divider ——— */

.wave {
  line-height: 0;
  margin: -1px 0;
}

.wave svg { display: block; width: 100%; height: 34px; }

/* ——— home section cards ——— */

.sections {
  padding: 3rem 0 1rem;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.3rem;
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
}

.section-card.gold::before { background: var(--gold); }
.section-card.coral::before { background: var(--coral); }
.section-card.mint::before { background: var(--mint); }

.section-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.section-card .icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 0.4rem;
}

.section-card.gold .icon { background: var(--gold-soft); color: var(--gold-deep); }
.section-card.coral .icon { background: var(--coral-soft); color: var(--coral-deep); }
.section-card.mint .icon { background: var(--mint-soft); color: var(--mint-deep); }

.section-card h3 { margin: 0; font-size: 1.35rem; }

.section-card .tagline { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

.section-card .count {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 800;
  font-size: 0.88rem;
}

.section-card.gold .count { color: var(--gold-deep); }
.section-card.coral .count { color: var(--coral-deep); }
.section-card.mint .count { color: var(--mint-deep); }

/* ——— recent ——— */

.recent { padding: 2.5rem 0 3.5rem; }

.recent h2 { font-size: 1.7rem; }

.recent-sub { color: var(--ink-soft); margin: -0.4rem 0 1.4rem; }

/* ——— entry cards (listing + recent) ——— */

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.2rem;
}

.entry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border-top: 5px solid var(--peach);
}

.entry-card.gold { border-top-color: var(--gold); }
.entry-card.coral { border-top-color: var(--coral); }
.entry-card.mint { border-top-color: var(--mint); }

.entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.entry-card h3 { margin: 0; font-size: 1.22rem; }

.entry-card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.pill {
  display: inline-block;
  padding: 0.14rem 0.65rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
}

.pill.area { background: var(--mint-soft); color: var(--mint-deep); }
.pill.cat { background: var(--peach-soft); color: var(--gold-deep); }
.pill.tag { background: var(--pink-soft); color: var(--pink-deep); }

.price { color: var(--gold-deep); font-weight: 800; letter-spacing: 0.05em; }

/* ——— listing pages ——— */

.page-head {
  text-align: center;
  padding: 2.2rem 0 1.6rem;
}

.page-head h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 0.2em; }

.page-head .tagline {
  color: var(--ink-soft);
  font-size: 1.12rem;
  margin: 0 auto;
  max-width: 46ch;
}

.page-head .flourish {
  margin-top: 1rem;
  line-height: 0;
}

.listing { padding-bottom: 4rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.6rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }

.chip {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover { border-color: var(--gold); color: var(--gold-deep); }

.chip.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.search {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  min-width: 15rem;
}

.search:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.group-title {
  font-size: 1.45rem;
  margin: 2.2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.group-title::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

/* ——— read page ——— */

.article-wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.crumb {
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 3rem);
  margin-top: 1rem;
  border-top: 7px solid var(--peach);
}

.article-card.gold { border-top-color: var(--gold); }
.article-card.coral { border-top-color: var(--coral); }
.article-card.mint { border-top-color: var(--mint); }

.article-card h1.title { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin-bottom: 0.35em; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.3rem;
  border-bottom: 2px dashed var(--line);
}

.article-body { font-size: 1.05rem; }

.article-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.4em; }

.article-body blockquote {
  margin: 1.4em 0;
  padding: 0.8em 1.2em;
  background: var(--peach-soft);
  border-left: 5px solid var(--gold);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}

.article-body blockquote p { margin: 0; }

.article-body code {
  background: var(--gold-soft);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}

.article-body pre {
  background: #443528;
  color: #f8ecd9;
  padding: 1em 1.2em;
  border-radius: 12px;
  overflow-x: auto;
}

.article-body pre code { background: none; padding: 0; }

.article-body hr {
  border: none;
  text-align: center;
  margin: 2em 0;
}

.article-body hr::after {
  content: "❀ ❀ ❀";
  color: var(--pink);
  letter-spacing: 0.8em;
  font-size: 0.9rem;
}

.article-body img { border-radius: 14px; box-shadow: var(--shadow); }

.article-body a { font-weight: 700; }

.article-body ul li::marker { color: var(--coral); }
.article-body ol li::marker { color: var(--gold-deep); font-weight: 800; }

.article-link-out {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 800;
}

/* ——— states ——— */

.state {
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 1rem;
  font-size: 1.05rem;
}

.state.error {
  background: var(--pink-soft);
  border-radius: var(--radius);
  color: var(--pink-deep);
  font-weight: 700;
}

.state .big { font-size: 2.2rem; display: block; margin-bottom: 0.4rem; }

/* ——— buttons ——— */

.btn {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 110, 97, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 110, 97, 0.45); color: #fff; }

/* ——— footer ——— */

.site-footer {
  margin-top: 2rem;
  background: #443528;
  color: #f3e6d2;
  padding: 2.6rem 0 2.2rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer p { margin: 0.15rem 0; }

.site-footer .love { font-family: var(--font-display); font-size: 1.15rem; }

.site-footer a { color: var(--peach); }

.site-footer .admin-link {
  font-size: 0.85rem;
  color: #bfa88e;
  text-decoration: none;
}

.site-footer .admin-link:hover { color: var(--peach); }

/* ——— responsive ——— */

@media (max-width: 640px) {
  .site-header .wrap { justify-content: center; text-align: center; }
  .hero { padding-top: 1.6rem; }
  .toolbar { justify-content: stretch; }
  .search { flex: 1; min-width: 0; }
}
