/*
Theme Name: Roland Mendoza Art
Theme URI: https://rolandmendozaart.com
Author: Roland Mendoza
Author URI: https://rolandmendozaart.com
Description: A minimal portfolio theme for corporate-dystopian painter Roland Mendoza. Three framed works hang over a grimy city skyline; frames and contact email are editable under Appearance > Customize.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rolandmendoza
Tags: portfolio, one-column, custom-logo, featured-images
*/

/* Layout: name at the top, three frames in a row, one line of contact. Everything sits over a smoggy city at night. */
:root {
  --soot: #1a1714;        /* page fallback */
  --ash: #e8e1d3;         /* text */
  --dust: #a99c87;        /* secondary text */
  --sodium: #d29a45;      /* streetlight amber, links */
  --wood: #3b2c20;        /* frame */
  --mat: #e6dfcf;         /* yellowed mat */
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Spectral", Georgia, "Times New Roman", serif;
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--soot);
  color: var(--ash);
  font-family: var(--body);
  font-size: 1.1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* City backdrop stays put while the frames scroll over it */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(20, 17, 14, .5), rgba(20, 17, 14, .12) 45%, rgba(20, 17, 14, .6)),
    url("assets/img/city.jpg") center bottom / cover no-repeat,
    var(--soot);
}

main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sodium); text-underline-offset: 3px; }
a:hover { color: var(--ash); }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header .wrap { padding-block: 56px 48px; }
.wordmark {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ash);
  text-decoration: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
  margin: 0;
}
.wordmark:hover { color: var(--ash); }
.custom-logo { max-height: 90px; width: auto; }

/* ---------- Three frames ---------- */
.works .wrap { padding-block: 8px 96px; }
.frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 44px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: start;
}
.frame { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.frame-box {
  padding: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #5a4331, var(--wood) 45%, #22190f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 0 12px rgba(0, 0, 0, .6),
    0 26px 40px -14px rgba(0, 0, 0, .85);
}
.frame-mat {
  background: var(--mat);
  padding: 9%;
  box-shadow: inset 0 0 24px rgba(90, 70, 40, .35);
}
.frame-mat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.frame h2 {
  font-family: var(--body);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
}
.frame p {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--dust);
}

/* ---------- Footer / contact ---------- */
.site-footer {
  background: rgba(16, 14, 12, .82);
  border-top: 1px solid rgba(232, 225, 211, .12);
  font-family: var(--display);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
}
.site-footer span { color: var(--dust); }
.site-footer .email { font-weight: 600; word-break: break-all; }

/* ---------- Inner pages (WordPress posts & pages) ---------- */
.entry .wrap { padding-block: 0 88px; }
.entry-inner {
  max-width: 44rem;
  background: rgba(20, 17, 14, .88);
  padding: clamp(24px, 5vw, 56px);
}
.entry h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
  margin: 0 0 24px;
  text-wrap: balance;
}
.entry h2, .entry h3 { font-family: var(--display); line-height: 1.15; }
.entry-content figure { margin: 2em 0; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding-block: 16px; border-bottom: 1px solid rgba(232, 225, 211, .15); }
.post-list a { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ash); text-decoration: none; }
.post-list a:hover { color: var(--sodium); }
.post-list time { display: block; color: var(--dust); font-size: 0.9rem; font-family: var(--display); }
.button {
  display: inline-block; font-family: var(--display); font-weight: 600;
  padding: 12px 20px; background: var(--sodium); color: var(--soot); text-decoration: none;
}
.button:hover { background: var(--ash); color: var(--soot); }
.wp-caption-text, figcaption { font-family: var(--display); font-size: 0.85rem; color: var(--dust); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frame:nth-child(3) { grid-column: 1 / -1; max-width: 460px; width: 100%; justify-self: center; }
}
@media (max-width: 620px) {
  .site-header .wrap { padding-block: 36px 32px; }
  .frames { grid-template-columns: minmax(0, 1fr); }
  .frame:nth-child(3) { max-width: none; }
}
