/*
Theme Name: Gridbox – Remote Places
Theme URI: https://remote-places.com
Description: Child theme of Gridbox for Remote Places US LLC (Justin "JG" Geller). Dark, modern take on the RP business brand: near-black ground, paper text, one red accent, Inter throughout, reversed lockup in the header. Same layout as Gridbox.
Author: Remote Places US LLC
Template: gridbox
Version: 0.3.4
License: GNU General Public License v2 or later
Text Domain: gridbox-remote-places
*/

/* ---------- Tokens ----------
   Brand colors come from the "RP business brand" design system.
   --rp-night is a derived darker ground for the dark site. */
:root {
  --rp-night: #0d0c0c;      /* page ground (darker than brand ink) */
  --rp-ink: #231f20;        /* raised surfaces: header bar, panels, buttons */
  --rp-line: #3a3637;       /* hairlines on dark */
  --rp-graphite: #58595b;
  --rp-steel: #939598;      /* muted text on dark */
  --rp-silver: #d1d3d4;     /* body text on dark */
  --rp-paper: #f4f4f4;      /* headings, titles on dark */
  --rp-red: #ed1c24;        /* the one accent */
  --rp-sans: Inter, Arial, Helvetica, sans-serif;

  /* 8px spacing scale */
  --rp-s1: 8px;
  --rp-s2: 16px;
  --rp-s3: 24px;
  --rp-s4: 32px;
  --rp-s6: 48px;

  /* Override Gridbox / Gridbox Pro customizer values */
  --primary-color: var(--rp-red);
  --secondary-color: var(--rp-paper);
  --header-bar-background-color: var(--rp-night);
  --header-background-color: var(--rp-night);
  --title-font: var(--rp-sans);
  --text-font: var(--rp-sans);
  --navi-font: var(--rp-sans);
}

/* ---------- Base: Inter everywhere ---------- */
html { background: var(--rp-night); }

body,
body.custom-background,
button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
.site-title, .entry-title, .page-title, .widget-title,
.main-navigation a, .entry-meta, .more-link {
  font-family: var(--rp-sans);
}

body,
body.custom-background {
  background-color: var(--rp-night);
  color: var(--rp-silver);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .widget-title {
  color: var(--rp-paper);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

a { color: var(--rp-paper); text-decoration: none; }
a:hover, a:focus, a:active { color: var(--rp-red); }

img, button, input, textarea, select, .widget, article { border-radius: 0; }

/* ---------- Header ---------- */
.site-header,
.header-main,
.header-bar,
.primary-navigation,
.main-navigation ul ul {
  background-color: var(--rp-night);
}

.site-header { border-bottom: 1px solid var(--rp-line); }

.header-main {
  padding-top: var(--rp-s3);
  padding-bottom: var(--rp-s2);
}

/* Reversed lockup replaces the text title (text stays for screen readers) */
.site-branding .site-title { margin: 0; line-height: 1; }
.site-branding .site-title a {
  display: block;
  width: 420px;
  max-width: 100%;
  height: 64px;
  background: url("assets/remote-places-lockup-reversed.png") no-repeat left center / contain;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
}

/* Navigation: small, tracked uppercase; visible on dark */
.main-navigation a,
.primary-navigation a {
  color: var(--rp-silver);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: var(--rp-s2);
  padding-bottom: var(--rp-s2);
}
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--rp-paper);
  box-shadow: inset 0 -2px 0 var(--rp-red);
}
.main-navigation ul ul a { background: var(--rp-ink); }

/* Mobile menu toggle: keep Gridbox's own icon, just make it readable on dark */
.primary-menu-toggle,
.primary-menu-toggle .icon { color: var(--rp-paper); fill: currentColor; }

/* ---------- Content area spacing ---------- */
.site-content, #content { background: var(--rp-night); }
.site-content { padding-top: var(--rp-s4); }

/* ---------- Project grid (hero + 2 + 3-up posts) ---------- */
.grid-post article { background: var(--rp-ink); }

.post-wrapper .entry-title,
.post-wrapper .entry-title a,
.grid-post .entry-title,
.grid-post .entry-title a { color: var(--rp-paper); }

/* Overlay titles on the featured tiles: large two 24px, the rest 18px */
body .featured-posts .grid-post .type-post .entry-title { font-size: 1.125rem; line-height: 1.3; padding: 0.2em 0.9em 0.5em; }
body .featured-posts .grid-post:nth-child(-n+2) .type-post .entry-title { font-size: 1.5rem; line-height: 1.25; }

/* ---------- Column posts (the lower rows) ---------- */
/* Same-shaped images so titles and text line up across a row */
.post-column article { margin-bottom: var(--rp-s6); }

.post-column article .wp-post-image-link { display: block; }
.post-column article .wp-post-image-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 0 var(--rp-s2);
}

.post-column .entry-header { margin: 0 0 var(--rp-s1); }
/* Gridbox sets title sizes with long selectors; these match or beat them */
body .post-wrapper .post-column .type-post .entry-title { margin: 0; font-size: 0.9375rem; line-height: 1.35; }
.post-column .entry-title a { color: var(--rp-paper); }
.post-column .entry-title a:hover { color: var(--rp-red); }

/* Titles only in the grid: no excerpts, no Read More (single posts keep full text) */
.post-column .entry-content,
.post-column .entry-summary,
.post-column .more-link,
.post-column .entry-footer,
.grid-post .entry-content,
.grid-post .entry-summary,
.grid-post .more-link,
.grid-post .entry-footer { display: none; }

/* Meta + read more */
.entry-meta,
.entry-meta a {
  color: var(--rp-steel);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.entry-meta { margin: 0 0 var(--rp-s1); }

.more-link,
a.more-link {
  display: inline-block;
  margin-top: var(--rp-s1);
  padding: 10px 16px;
  background: transparent;
  color: var(--rp-paper);
  border: 1px solid var(--rp-line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.more-link:hover,
a.more-link:hover {
  background: var(--rp-red);
  border-color: var(--rp-red);
  color: var(--rp-paper);
}

/* ---------- Single posts and pages ---------- */
.type-post .entry-content,
.type-page .entry-content { color: var(--rp-silver); }
.entry-content a { text-decoration: underline; text-decoration-color: var(--rp-line); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--rp-red); }
.entry-content blockquote { border-left: 2px solid var(--rp-red); color: var(--rp-paper); }
.entry-content hr, hr { border: 0; border-top: 1px solid var(--rp-line); }

/* Pagination */
.pagination a, .pagination span,
.nav-links a, .nav-links span {
  color: var(--rp-silver);
  border: 1px solid var(--rp-line);
  background: transparent;
}
.pagination .current, .nav-links .current { background: var(--rp-ink); color: var(--rp-paper); }
.pagination a:hover, .nav-links a:hover { border-color: var(--rp-red); color: var(--rp-paper); }

/* Widgets, sidebars, forms */
.widget { background: var(--rp-ink); color: var(--rp-silver); }
.widget a, .widget li a, .widget_recent_entries a, .widget_archive a, .widget_categories a { color: var(--rp-silver); }
.widget a:hover, .widget li a:hover { color: var(--rp-red); }
.widget li { border-color: var(--rp-line); }
.widget-title, .widget .widget-title { color: var(--rp-paper); }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select {
  background: var(--rp-ink);
  color: var(--rp-paper);
  border: 1px solid var(--rp-line);
}
input:focus, textarea:focus, select:focus { border-color: var(--rp-red); outline: 0; }

/* Only real form buttons: never the menu toggles or icon buttons */
.button, input[type="submit"], input[type="button"], .wp-block-button__link {
  background: var(--rp-paper);
  color: var(--rp-night);
  border: 0;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  background: var(--rp-red);
  color: var(--rp-paper);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--rp-night);
  color: var(--rp-steel);
  border-top: 1px solid var(--rp-line);
  font-size: 12px;
}
.site-footer::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--rp-red);
  margin: 0 auto var(--rp-s2);
}
.site-footer a { color: var(--rp-steel); }
.site-footer a:hover { color: var(--rp-paper); }

/* Long URLs in excerpts should wrap, not overflow */
.entry-content, .entry-summary, .post-wrapper { overflow-wrap: anywhere; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .site-branding .site-title a { width: 300px; height: 48px; }
  .post-column article { margin-bottom: var(--rp-s4); }
}
