/*
Theme Name: Prettylaws
Theme URI: https://cclkt.com
Author: Prettylaws Studio
Description: Lightweight custom theme for cclkt.com — terracotta & cream brand, Cormorant Garamond headings, four content pillars (Handmade Jewellery / Wall Art & Decor / Nail Art / Studio Journal). Ported from the original static site design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: prettylaws
*/

/* ============================================================
   Brand palette — ported from static site assets/style.css
   ============================================================ */
:root {
  --paper: #FBF8F4;
  --surface: #FFFFFF;
  --ink: #221E1B;
  --ink-soft: #6E655E;
  --ink-faint: #A9A29A;
  --line: #E7DFD6;
  --accent: #A9604A;
  --accent-dark: #87503D;
  --accent-soft: #F5E8E2;
  --gold: #B08D57;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.15em; }

.lede { font-size: 1.12rem; color: var(--ink-soft); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9em;
  font-weight: 500;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; font-size: 0.94rem; flex-wrap: wrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .current-menu-item > a,
.nav .current_page_item > a { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ---------- disclosure strip ---------- */
.disclosure-note {
  background: var(--accent-soft);
  border-bottom: 1px solid #EBD8CF;
  font-size: 0.83rem;
  color: #7A5344;
  text-align: center;
  padding: 9px 28px;
  line-height: 1.5;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--soft { background: var(--accent-soft); color: var(--accent-dark); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 68px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

/* ---------- media frames ---------- */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.55) 0 12px, rgba(255,255,255,0) 12px 24px),
    linear-gradient(155deg, #F0E2DA 0%, #E8E2D6 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-caption { font-size: 0.82rem; color: var(--ink-soft); text-align: center; margin-top: 10px; font-style: italic; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--landscape { aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }

/* ---------- grids & cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card--link { transition: transform 0.18s ease, border-color 0.18s ease; }
.card--link:hover { transform: translateY(-3px); border-color: #D8CCBF; }

.pillar { padding: 0; overflow: hidden; }
.pillar .media { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.pillar-body { padding: 26px 28px 30px; }
.pillar-body ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; }
.pillar-body li { margin-bottom: 6px; }

/* ---------- post cards (WordPress listings) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: #D8CCBF; }
.post-card .post-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(155deg, #F0E2DA 0%, #E8E2D6 100%);
}
.post-card .post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6em;
  font-weight: 500;
}
.post-card__title { margin: 0 0 0.5em; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--accent-dark); text-decoration: none; }
.post-card__excerpt { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- pagination ---------- */
.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 56px;
  font-size: 0.95rem;
}
.pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  text-align: center;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- article ---------- */
.article-head { padding: 64px 0 40px; max-width: 760px; }
.article-head .meta {
  font-size: 0.84rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-body, .entry-content { max-width: 720px; padding-bottom: 40px; }
.article-body h2, .entry-content h2 { margin-top: 2.2em; }
.article-body h3, .entry-content h3 { margin-top: 1.8em; }
.article-body ul, .article-body ol, .entry-content ul, .entry-content ol { padding-left: 22px; }
.article-body li, .entry-content li { margin-bottom: 0.55em; }
.article-body blockquote, .entry-content blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink-soft);
  font-style: italic;
}
.article-body figure, .entry-content figure { margin: 2.2em 0; }
.article-body figcaption, .entry-content figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--accent-soft); }

/* affiliate pick box (kept from static design) */
.pick {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 2em 0;
}
.pick h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7em;
  font-weight: 500;
}
.pick p:last-child { margin-bottom: 0; }

.article-footer-note {
  max-width: 720px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.post-nav { max-width: 720px; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0 64px; font-size: 0.92rem; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; }
.field label { display: block; font-size: 0.86rem; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid #E4CFC5; outline-offset: 1px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding: 64px 0 80px; }
.legal h2 { margin-top: 2em; font-size: 1.5rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 0.6em; }

/* ---------- footer ---------- */
.site-footer {
  background: #1E1A17;
  color: #C9C1B8;
  padding: 60px 0 34px;
  font-size: 0.9rem;
  margin-top: 0;
}
.site-footer a { color: #E4DCD3; }
.site-footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9E948A;
  margin-bottom: 1em;
  font-weight: 500;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid #332C27;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: #FBF8F4;
  margin-bottom: 12px;
}
.footer-bottom { padding-top: 26px; font-size: 0.82rem; color: #8B827A; }
.footer-disclosure {
  background: #262019;
  border: 1px solid #3A312A;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 34px;
  font-size: 0.84rem;
  color: #B5ACA3;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .post-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 60px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 64px; }
  .nav { gap: 16px; font-size: 0.88rem; }
  .nav ul { gap: 16px; }
}
