/* ==========================================================
   POLARI — DESIGN SYSTEM v1.0
   gopolari.com · Session 3 · Editorial / cultural-magazine
   Hello Elementor theme · injected via Customizer → Additional CSS
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* -------------------------------------------------------------
   1. TOKENS — colour, type, spacing
   ------------------------------------------------------------- */
:root {
  /* Surfaces */
  --polari-ink:        #14110F;  /* near-black, body text */
  --polari-ink-soft:   #2A2622;  /* secondary text */
  --polari-ivory:      #F5F1E8;  /* page background */
  --polari-cream:      #EFE6D2;  /* card surface */
  --polari-stone:      #C8C2B4;  /* borders */
  --polari-stone-soft: #E5E0D5;  /* subtle dividers */
  --polari-white:      #FFFFFF;

  /* Accents — used sparingly */
  --polari-wine:       #6B1F3A;  /* primary accent · links · CTAs */
  --polari-wine-dark:  #4D1029;  /* hover */
  --polari-violet:     #2D1B69;  /* nightlife section accent */
  --polari-amber:      #D4A52A;  /* badges · Polari Pick */

  /* Type families */
  --polari-serif: 'Fraunces', 'GT Sectra', 'Tiempos', Georgia, serif;
  --polari-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type scale */
  --t-display:  clamp(2.5rem, 1.5rem + 3vw, 4rem);     /* hero */
  --t-h1:       clamp(2rem, 1.4rem + 2vw, 3.25rem);
  --t-h2:       clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --t-h3:       clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --t-h4:       1.125rem;
  --t-body:     1.0625rem;  /* 17px */
  --t-small:    0.875rem;   /* 14px */
  --t-eyebrow:  0.6875rem;  /* 11px */

  /* Spacing */
  --space-section:  clamp(3.5rem, 2rem + 4vw, 6rem);
  --space-block:    clamp(2rem, 1.2rem + 2vw, 3.5rem);
  --space-unit:     1.5rem;
  --container-max:  1240px;
  --prose-max:      680px;
}

/* -------------------------------------------------------------
   2. RESET / GLOBAL BASE
   ------------------------------------------------------------- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body,
body.elementor-default {
  background: var(--polari-ivory);
  color: var(--polari-ink);
  font-family: var(--polari-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv11';
}
::selection { background: var(--polari-wine); color: var(--polari-ivory); }

/* -------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.entry-title, .page-title {
  font-family: var(--polari-serif);
  font-weight: 500;
  color: var(--polari-ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
h1, .entry-title { font-size: var(--t-h1); font-weight: 500; }
h2 { font-size: var(--t-h2); margin-top: 2.5rem; }
h3 { font-size: var(--t-h3); margin-top: 2rem; }
h4 { font-family: var(--polari-sans); font-size: var(--t-h4); font-weight: 600; letter-spacing: -0.005em; margin-top: 1.75rem; }
h5 { font-family: var(--polari-sans); font-size: var(--t-small); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--polari-ink-soft); }
h6 { font-family: var(--polari-sans); font-size: var(--t-eyebrow); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--polari-ink-soft); }

p { margin: 0 0 1.25rem; max-width: var(--prose-max); }
.entry-content > p:first-of-type::first-letter {
  font-family: var(--polari-serif);
  font-size: 3.5em;
  line-height: 0.85;
  float: left;
  padding: 0.1em 0.18em 0 0;
  font-weight: 500;
  color: var(--polari-wine);
}
/* Suppress drop-cap on CPT archive lists & small posts */
.archive .entry-content > p:first-of-type::first-letter,
.post-type-archive .entry-content > p:first-of-type::first-letter { all: unset; }

blockquote {
  font-family: var(--polari-serif);
  font-style: italic;
  font-size: var(--t-h3);
  line-height: 1.35;
  border-left: 2px solid var(--polari-wine);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0;
  color: var(--polari-ink-soft);
  max-width: var(--prose-max);
}

a {
  color: var(--polari-wine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
a:hover { color: var(--polari-wine-dark); text-decoration-thickness: 2px; }

/* Eyebrow / category label utility */
.eyebrow,
.cat-links a,
.tax-venue_type a,
.post-categories a {
  font-family: var(--polari-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--polari-ink-soft);
  text-decoration: none;
}

/* -------------------------------------------------------------
   4. LAYOUT — header, footer, container
   ------------------------------------------------------------- */
.site-header.dynamic-header {
  background: var(--polari-ivory);
  border-bottom: 1px solid var(--polari-stone-soft);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-title {
  font-family: var(--polari-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.site-title a {
  color: var(--polari-ink);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.04em;
}
.site-title a:hover { color: var(--polari-wine); }
.site-description {
  display: none;     /* hide default tagline in header — too long */
}
.site-header nav a,
.site-header .menu a {
  font-family: var(--polari-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--polari-ink);
  text-decoration: none;
  padding: 0.5rem 0;
  margin: 0 0.9rem;
}
.site-header nav a:hover { color: var(--polari-wine); }

.site-footer {
  background: var(--polari-ink);
  color: var(--polari-ivory);
  padding: var(--space-section) 1.5rem 2rem;
  margin-top: var(--space-section);
}
.site-footer a { color: var(--polari-ivory); text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--polari-amber); text-decoration: underline; }
.site-footer h4 {
  color: var(--polari-ivory);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* Hello Elementor main content container */
.site-main,
main.site-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-block) 1.5rem;
}
.singular .entry-content,
.single .entry-content {
  max-width: var(--prose-max);
  margin: 0 auto;
}
.entry-header { max-width: var(--prose-max); margin: 0 auto 2rem; }

/* -------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------- */
.wp-block-button__link,
.button,
button:not(.elementor-button),
input[type="submit"] {
  background: var(--polari-ink);
  color: var(--polari-ivory) !important;
  font-family: var(--polari-sans);
  font-size: var(--t-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--polari-ink);
  border-radius: 0;
  text-decoration: none !important;
  display: inline-block;
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
}
.wp-block-button__link:hover,
.button:hover,
button:not(.elementor-button):hover,
input[type="submit"]:hover {
  background: var(--polari-wine);
  border-color: var(--polari-wine);
  color: var(--polari-ivory) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--polari-ink) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--polari-ink);
  color: var(--polari-ivory) !important;
}

/* -------------------------------------------------------------
   6. CPT ARCHIVES — venues, cities, stories, guides
   The 119 Sydney venues land here. This is the design system's
   most important visible moment until Pro homepage ships.
   ------------------------------------------------------------- */
.post-type-archive .site-main,
.archive .site-main {
  max-width: var(--container-max);
}
.post-type-archive .page-title,
.archive .page-title,
.post-type-archive-venue h1,
.post-type-archive-city h1 {
  font-size: var(--t-display);
  text-align: left;
  margin: 1rem 0 0.5rem;
}
.post-type-archive .archive-description,
.archive .archive-description {
  font-family: var(--polari-sans);
  font-size: var(--t-body);
  color: var(--polari-ink-soft);
  max-width: var(--prose-max);
  margin-bottom: var(--space-block);
}

/* Convert default archive list to a grid */
.post-type-archive main.site-main,
.archive main.site-main {
  display: block;
}
.post-type-archive main.site-main > article,
.archive main.site-main > article {
  background: var(--polari-cream);
  border: 1px solid var(--polari-stone-soft);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
  transition: transform .2s ease, border-color .2s ease;
}
.post-type-archive main.site-main > article:hover,
.archive main.site-main > article:hover {
  border-color: var(--polari-wine);
  transform: translateY(-2px);
}
.post-type-archive main.site-main > article .entry-title,
.archive main.site-main > article .entry-title {
  font-size: var(--t-h3);
  margin: 0 0 0.5rem;
}
.post-type-archive main.site-main > article .entry-title a,
.archive main.site-main > article .entry-title a {
  color: var(--polari-ink);
  text-decoration: none;
}
.post-type-archive main.site-main > article .entry-title a:hover,
.archive main.site-main > article .entry-title a:hover {
  color: var(--polari-wine);
}

/* When archives become true grids (Pro Loop Grid will give us this) */
.polari-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.polari-grid > * { margin: 0; }

/* -------------------------------------------------------------
   7. SINGLE CPT PAGES — venue / city / story
   ------------------------------------------------------------- */
.single-venue .entry-title,
.single-city .entry-title,
.single-story .entry-title {
  font-size: var(--t-display);
  margin-bottom: 0.5rem;
}
.single-venue .entry-meta,
.single-city .entry-meta,
.single-story .entry-meta {
  font-family: var(--polari-sans);
  font-size: var(--t-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--polari-ink-soft);
  margin-bottom: 2rem;
}

/* Pull dates / categories into eyebrow style */
.entry-meta a,
.posted-on,
.byline { color: var(--polari-ink-soft); text-decoration: none; }
.entry-meta a:hover { color: var(--polari-wine); }

/* -------------------------------------------------------------
   8. BADGES — Polari Pick + tag chips
   ------------------------------------------------------------- */
.polari-pick {
  display: inline-block;
  font-family: var(--polari-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--polari-amber);
  color: var(--polari-ink);
  padding: 0.3rem 0.7rem;
  margin-right: 0.5rem;
}
.tag-cloud-link,
.post-tags a {
  display: inline-block;
  font-family: var(--polari-sans);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--polari-ink-soft);
  background: transparent;
  border: 1px solid var(--polari-stone);
  padding: 0.25rem 0.7rem;
  margin: 0.25rem 0.25rem 0.25rem 0;
  text-decoration: none;
  transition: all .15s;
}
.tag-cloud-link:hover,
.post-tags a:hover {
  border-color: var(--polari-wine);
  color: var(--polari-wine);
}

/* -------------------------------------------------------------
   9. IMAGES & FIGURES
   ------------------------------------------------------------- */
img { max-width: 100%; height: auto; display: block; }
figure { margin: 2.5rem 0; }
figure img { width: 100%; }
figcaption {
  font-family: var(--polari-sans);
  font-size: var(--t-small);
  font-style: italic;
  color: var(--polari-ink-soft);
  margin-top: 0.5rem;
  text-align: left;
  max-width: var(--prose-max);
}

/* -------------------------------------------------------------
   10. FORMS — comments, search, newsletter
   ------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea {
  background: var(--polari-white);
  border: 1px solid var(--polari-stone);
  font-family: var(--polari-sans);
  font-size: var(--t-body);
  color: var(--polari-ink);
  padding: 0.85rem 1rem;
  border-radius: 0;
  width: 100%;
  max-width: var(--prose-max);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--polari-wine);
}
label {
  font-family: var(--polari-sans);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--polari-ink);
  display: block;
  margin-bottom: 0.4rem;
}

/* -------------------------------------------------------------
   11. HORIZONTAL RULES & DIVIDERS
   ------------------------------------------------------------- */
hr {
  border: 0;
  border-top: 1px solid var(--polari-stone-soft);
  margin: var(--space-block) auto;
  max-width: var(--prose-max);
}
hr.wp-block-separator.is-style-wide {
  max-width: var(--container-max);
}

/* -------------------------------------------------------------
   12. WP CORE BLOCKS — group / columns / cover
   ------------------------------------------------------------- */
.wp-block-cover {
  min-height: 60vh;
  background: var(--polari-ink);
}
.wp-block-cover h1, .wp-block-cover h2 { color: var(--polari-ivory); }
.wp-block-group.has-background { padding: var(--space-block) 1.5rem; }
.wp-block-pullquote {
  border-top: 2px solid var(--polari-wine);
  border-bottom: 2px solid var(--polari-wine);
  padding: 2.5rem 0;
  margin: 3rem 0;
  font-family: var(--polari-serif);
  font-style: italic;
  font-size: var(--t-h2);
  line-height: 1.3;
  text-align: center;
}

/* -------------------------------------------------------------
   13. ADMIN BAR + LOGGED-IN OFFSET
   ------------------------------------------------------------- */
body.admin-bar .site-header.dynamic-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header.dynamic-header { top: 46px; }
}

/* -------------------------------------------------------------
   14. RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-header .header-inner { padding: 0 1rem; }
  .site-main, main.site-main { padding: 1.5rem 1rem; }
  .entry-content > p:first-of-type::first-letter {
    font-size: 3em;
  }
  .site-header nav a, .site-header .menu a { margin: 0 0.5rem; font-size: 0.8125rem; }
}

/* -------------------------------------------------------------
   15. ELEMENTOR INTEROP
   When the homepage / hubs are built in Elementor Pro, these
   ensure widgets inherit POLARI tokens cleanly.
   ------------------------------------------------------------- */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-heading-title {
  font-family: var(--polari-serif);
  color: var(--polari-ink);
}
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  font-family: var(--polari-sans);
  color: var(--polari-ink);
}
.elementor-button.elementor-button-link,
.elementor-button {
  font-family: var(--polari-sans) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  border-radius: 0 !important;
}
/* -------------------------------------------------------------
   16. UTILITIES
   ------------------------------------------------------------- */
.u-ivory  { background: var(--polari-ivory); }
.u-cream  { background: var(--polari-cream); }
.u-ink    { background: var(--polari-ink); color: var(--polari-ivory); }
.u-wine   { background: var(--polari-wine); color: var(--polari-ivory); }
.u-violet { background: var(--polari-violet); color: var(--polari-ivory); }
.u-center { text-align: center; }
.u-serif  { font-family: var(--polari-serif) !important; }
.u-sans   { font-family: var(--polari-sans) !important; }
.u-eyebrow { font-family: var(--polari-sans); font-size: var(--t-eyebrow); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--polari-ink-soft); }

/* -------------------------------------------------------------
   17. PATCH v1.0.1 - Hello Elementor actual archive DOM
   main#content.site-main > div.page-content > article.post
   ------------------------------------------------------------- */
.archive .page-content,
.post-type-archive .page-content,
.singular .page-content,
.single .page-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.archive .page-content article,
.post-type-archive .page-content article {
  background: var(--polari-cream);
  border: 1px solid var(--polari-stone-soft);
  padding: 2rem 1.75rem;
  margin: 0 0 1.5rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.archive .page-content article:hover,
.post-type-archive .page-content article:hover {
  border-color: var(--polari-wine);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -12px rgba(20,17,15,0.18);
}
.archive .page-content article .entry-title,
.post-type-archive .page-content article .entry-title {
  font-family: var(--polari-serif);
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
.archive .page-content article .entry-title a,
.post-type-archive .page-content article .entry-title a {
  color: var(--polari-ink);
  text-decoration: none;
}
.archive .page-content article .entry-title a:hover,
.post-type-archive .page-content article .entry-title a:hover {
  color: var(--polari-wine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.archive .page-content article p,
.post-type-archive .page-content article p {
  font-size: var(--t-body);
  color: var(--polari-ink-soft);
  margin: 0;
  max-width: 60ch;
}

.post-type-archive-venue .page-content,
.post-type-archive-city .page-content,
.post-type-archive-story .page-content,
.post-type-archive-guide .page-content,
.tax-venue_type .page-content,
.tax-neighbourhood .page-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.post-type-archive-venue .page-content article,
.post-type-archive-city .page-content article,
.post-type-archive-story .page-content article,
.post-type-archive-guide .page-content article,
.tax-venue_type .page-content article,
.tax-neighbourhood .page-content article {
  margin: 0;
  height: 100%;
}

.archive .page-header,
.post-type-archive .page-header {
  max-width: var(--container-max);
  margin: 0 auto var(--space-block);
  padding: 0;
  border: 0;
}
.archive .page-title,
.post-type-archive .page-title {
  font-size: var(--t-display);
  font-weight: 500;
  text-align: left;
  margin: 0 0 0.5rem;
}

.single .page-content,
.singular .page-content {
  max-width: var(--prose-max);
}
.single .entry-title,
.singular .entry-title {
  font-family: var(--polari-serif);
  font-size: var(--t-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.pagination, .posts-navigation, .nav-links {
  max-width: var(--container-max);
  margin: var(--space-block) auto 0;
  font-family: var(--polari-sans);
}
.pagination a, .posts-navigation a, .nav-links a {
  color: var(--polari-ink);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--polari-stone-soft);
  margin-right: 0.25rem;
  font-size: var(--t-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
}
.pagination a:hover, .posts-navigation a:hover, .nav-links a:hover {
  border-color: var(--polari-wine);
  color: var(--polari-wine);
}

@media (max-width: 768px) {
  .post-type-archive-venue .page-content,
  .post-type-archive-city .page-content,
  .post-type-archive-story .page-content,
  .post-type-archive-guide .page-content {
    grid-template-columns: 1fr;
  }
}

/* end of file */
