/*
Theme Name: Exposure
Theme URI: https://example.com/exposure
Author: Your Name
Author URI: https://example.com
Description: A photography portfolio and journal theme. A black sticky nav sits over a full-bleed five-across photo strip, followed by an author introduction, wide photo rows with corner category chips and blue read-more buttons, a three-column article grid and a light footer with topic counts and brand-coloured follower bars. Self-hosted Libre Franklin and Inter, light and dark modes, and one-click demo content with original artwork.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: exposure
Tags: blog, photography, portfolio, news, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f6f7;
  --text: #111111;
  --text-2: #444444;
  --muted: #7e7e7e;
  --line: #ededed;
  --accent: #1680d3;
  --accent-ink: #ffffff;
  --accent-hover: #0f6ab1;
  --accent-hover-ink: #ffffff;

  --font-display: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-display: 700;
  --lh-display: 1.18;
  --track-display: -.015em;

  --radius: 0px;
  --radius-ui: 3px;
  --wrap: 1108px;
  --gap: 28px;
  --sticky-top: 62px;

  --bar: #222222;
  --bar-ink: #ffffff;

  --footer-bg: #f5f6f7;
  --footer-text: #111111;
  --footer-muted: #767676;
  --footer-line: #e3e5e7;
  --overlay: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.76) 100%);
}
:root[data-theme="dark"] {
  --bg: #121417;
  --surface: #171a1e;
  --surface-2: #1d2126;
  --text: #f1f3f5;
  --text-2: #c4c9cf;
  --muted: #8d949c;
  --line: #272c32;
  --accent: #3f9ee4;
  --accent-ink: #0b0d10;
  --accent-hover: #6cb7ec;
  --accent-hover-ink: #0b0d10;
  --bar: #0c0e11;
  --footer-bg: #0f1114;
  --footer-text: #eef1f4;
  --footer-muted: #8d949c;
  --footer-line: rgba(255,255,255,.1);
}

body { font-size: 16px; }
h1, h2, h3, h4, h5, h6,
.card__title, .mini__title, .entry-title, .section-title, .page-title { font-family: var(--font-display); font-weight: 700; }
.meta, .primary-menu a, .mobile-menu a, .section-link, .widget-title, .btn { font-family: var(--font-ui); }

/* ============================================================
 * Header: a black bar that stays put, icon logo, blue active item
 * ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--bar); border-bottom: 0;
}
.site-header__inner { min-height: 46px; gap: 0; align-items: stretch; }
.site-header__left { gap: 0; align-items: center; padding-right: 22px; }
.site-header .brand__link { display: inline-flex; align-items: center; gap: .55rem; color: var(--bar-ink); }
.site-header .brand__name { font-family: var(--font-display); color: var(--bar-ink); font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.site-header .brand__mark { color: var(--bar-ink); }
.site-header .custom-logo { max-height: 34px; }

.primary-nav { flex: 1; align-self: stretch; }
.primary-menu { gap: 0; height: 100%; }
.primary-menu > li { display: flex; }
.primary-menu > li > a {
  display: flex; align-items: center; height: 100%; min-height: 46px;
  padding: 0 14px; border-radius: 0;
  color: var(--bar-ink); font-size: .82rem; font-weight: 600; letter-spacing: 0;
}
.primary-menu > li > a:hover { background: rgba(255,255,255,.1); color: var(--bar-ink); }
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-parent > a,
.primary-menu .current-menu-ancestor > a { background: var(--accent); color: #fff; }
.primary-menu .sub-menu { background: #2b2b2b; border: 0; border-radius: 0; padding: 0; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.primary-menu .sub-menu a { color: rgba(255,255,255,.86); padding: .6rem .9rem; border-radius: 0; font-size: .8rem; }
.primary-menu .sub-menu a:hover { background: var(--accent); color: #fff; }

.site-header__actions { gap: 0; }
.site-header__actions .icon-btn { width: 46px; height: 46px; border-radius: 0; color: var(--bar-ink); }
.site-header__actions .icon-btn:hover { background: rgba(255,255,255,.1); }
.search-panel { background: var(--surface); border-top: 1px solid var(--line); }

/* ============================================================
 * Hero: five photographs, edge to edge, no gutters
 * ========================================================== */
.px-strip {
  display: grid;
  grid-template-columns: repeat(var(--px-strip-n, 5), minmax(0, 1fr));
  gap: 0;
  background: #0d0f11;
}
.px-strip__item { position: relative; aspect-ratio: 288 / 332; overflow: hidden; }
.px-strip__media { position: absolute; inset: 0; display: block; }
.px-strip__img { width: 100%; height: 100%; object-fit: cover; }
.px-strip__ph { position: absolute; inset: 0; background: linear-gradient(145deg, hsl(var(--cat-hue,208) 48% 42%), hsl(calc(var(--cat-hue,208) + 28) 42% 24%)); }
.px-strip__shade { position: absolute; inset: 0; background: var(--overlay); }
.px-strip__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 22px 18px; }
.px-strip__title { margin: 0 0 .35rem; font-size: clamp(1rem, 1.36vw, 1.32rem); line-height: 1.2; color: #fff; }
.px-strip__title a { color: #fff; }
.px-strip__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: .16em; }
.px-strip .px-byline { color: rgba(255,255,255,.82); margin: 0; }
.px-strip .px-byline__author { color: #fff; }
.px-strip .px-byline__date { color: rgba(255,255,255,.82); }
@media (max-width: 1100px) { .px-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .px-strip__item { aspect-ratio: 1 / 1; } }
@media (max-width: 760px)  { .px-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .px-strip { grid-template-columns: minmax(0, 1fr); } .px-strip__item { aspect-ratio: 4 / 3; } }

/* shared byline -------------------------------------------------- */
.px-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .38rem;
  font-family: var(--font-ui); font-size: .76rem; color: var(--muted); margin: 0 0 .9rem;
}
.px-byline__author { color: var(--text); font-weight: 700; }
.px-byline__author:hover { color: var(--accent); }
.px-byline__sep { color: var(--muted); }

/* small grey section label --------------------------------------- */
.px-label {
  font-family: var(--font-ui); font-size: .95rem; font-weight: 400;
  color: var(--muted); margin: 0 0 1.1rem;
}

/* black category chip on a photo corner --------------------------- */
.px-chip {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: #000; color: #fff;
  font-family: var(--font-ui); font-size: .6rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; line-height: 1;
  padding: .45rem .6rem;
}
.px-chip:hover { background: var(--accent); color: #fff; }

/* ============================================================
 * Author introduction
 * ========================================================== */
.px-intro {
  display: grid; grid-template-columns: 325px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px); align-items: start;
  padding-block: clamp(34px, 4.6vw, 62px);
}
.px-intro__img, .px-intro__ph { display: block; width: 100%; aspect-ratio: 325 / 283; object-fit: cover; }
.px-intro__ph { background: linear-gradient(140deg, var(--surface-2), var(--line)); }
.px-intro__title { font-size: clamp(1.75rem, 2.9vw, 2.45rem); line-height: 1.14; margin: 0 0 1.2rem; }
.px-intro__lead, .px-intro__text, .px-intro__social {
  color: var(--text-2); font-size: .98rem; line-height: 1.78; margin: 0 0 1.15rem;
}
.px-intro__social { margin-bottom: 0; }
.px-intro__social a { color: var(--accent); }
.px-intro__social a:hover { text-decoration: underline; }
@media (max-width: 820px) { .px-intro { grid-template-columns: minmax(0, 1fr); } .px-intro__img, .px-intro__ph { max-width: 360px; } }

/* ============================================================
 * Popular photos: wide rows
 * ========================================================== */
.px-popular { padding-bottom: clamp(22px, 3vw, 38px); }
.px-rows { display: grid; gap: clamp(28px, 4vw, 48px); }
.px-row { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); align-items: start; }
.px-row__media { position: relative; }
.px-row__link { display: block; }
.px-row .media { aspect-ratio: 3 / 2; border-radius: 0; }
.px-row__title { font-size: clamp(1.45rem, 2.3vw, 2.05rem); line-height: 1.16; margin: -.25rem 0 .6rem; }
.px-row__title a:hover { color: var(--accent); }
.px-row__excerpt { color: var(--text-2); font-size: .93rem; line-height: 1.74; margin: 0 0 1.25rem; }
.px-row__more { margin: 0; }
@media (max-width: 780px) { .px-row { grid-template-columns: minmax(0, 1fr); } .px-row__title { margin-top: 0; } }

.px-btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: var(--font-ui); font-weight: 600; font-size: .8rem; line-height: 1;
  padding: .68rem 1.15rem; border-radius: 3px;
}
.px-btn:hover { background: var(--accent-hover); color: #fff; }

/* ============================================================
 * Latest articles: three across
 * ========================================================== */
.px-latest {
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(28px, 4vw, 52px);
  margin-top: clamp(20px, 3vw, 36px);
}
.px-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 34px) 28px; }
.px-tile__media { position: relative; }
.px-tile .media { aspect-ratio: 16 / 10; border-radius: 0; }
.px-tile__title { font-size: 1.02rem; line-height: 1.3; margin: .75rem 0 .45rem; }
.px-tile__title a:hover { color: var(--accent); }
.px-tile .px-byline { margin-bottom: 0; }
@media (max-width: 900px) { .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .px-grid { grid-template-columns: minmax(0, 1fr); } }

/* pagination ------------------------------------------------------ */
.px-pagenav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(24px, 3vw, 38px); }
.px-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.px-pages .page-numbers {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 .45rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--surface);
  font-family: var(--font-ui); font-size: .76rem; font-weight: 600; color: var(--text-2);
}
.px-pages .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.px-pages .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.px-pages .page-numbers.dots { border-color: transparent; }
.px-pagenav__count { font-family: var(--font-ui); font-size: .76rem; color: var(--muted); }
.pagination .page-numbers { border-radius: 2px; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
 * Footer: light panel, three columns
 * ========================================================== */
.px-footer {
  background: var(--footer-bg); color: var(--footer-text);
  margin-top: clamp(30px, 4vw, 54px);
  padding-block: clamp(32px, 4.4vw, 52px) 0;
  border-top: 1px solid var(--footer-line);
}
.px-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 4vw, 54px); }
.px-footer__heading { font-size: .96rem; font-weight: 700; color: var(--footer-text); margin: 0 0 1.1rem; }
.px-topics li a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--footer-line); font-family: var(--font-ui); font-size: .84rem; color: var(--footer-muted); }
.px-topics li:last-child a { border-bottom: 0; }
.px-footer .px-topics li a:hover { color: var(--accent); }
.px-topics__count { font-variant-numeric: tabular-nums; }

.px-photolist { display: grid; gap: .95rem; }
.px-photolist__item { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: .8rem; align-items: center; }
.px-photolist__thumb { display: block; }
.px-photolist__thumb .media { aspect-ratio: 1; border-radius: 0; }
.px-footer .px-photolist__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: .85rem; line-height: 1.35; color: var(--footer-text); }
.px-footer .px-photolist__title:hover { color: var(--accent); }
.px-photolist__date { display: block; margin-top: .3rem; font-family: var(--font-ui); font-size: .72rem; color: var(--footer-muted); }

.px-follow { display: grid; gap: 6px; }
.px-follow__bar a {
  display: grid; grid-template-columns: 34px auto 1fr auto; align-items: center; gap: .5rem;
  background: var(--px-brand, var(--accent)); color: #fff; min-height: 34px; padding-right: .75rem;
  font-family: var(--font-ui); font-size: .74rem;
}
.px-footer .px-follow__bar a:hover { color: #fff; filter: brightness(1.08); }
.px-follow__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; background: rgba(0,0,0,.16); }
.px-follow__icon .icon { width: 15px; height: 15px; }
.px-follow__count { font-weight: 700; font-size: .78rem; }
.px-follow__label { color: rgba(255,255,255,.92); }
.px-follow__action { justify-self: end; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; font-size: .62rem; }

.px-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(26px, 4vw, 46px); padding: 1.05rem 0; border-top: 1px solid var(--footer-line);
}
.px-footer__copy { font-family: var(--font-ui); font-size: .76rem; color: var(--footer-muted); margin: 0; }
.px-footer__nav .footer-menu { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.px-footer__nav a { font-family: var(--font-ui); font-size: .76rem; color: var(--footer-muted); }
.px-footer__nav a:hover { color: var(--accent); }
@media (max-width: 860px) { .px-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .px-footer__cols { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
 * Shared pieces on inner pages
 * ========================================================== */
.cat, .flag {
  background: #000; color: #fff; border-radius: 0;
  font-family: var(--font-ui); font-size: .6rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; line-height: 1;
  padding: .45rem .6rem;
}
.cat:hover, .flag:hover { background: var(--accent); color: #fff; text-decoration: none; }
[data-theme="dark"] .cat { color: #fff; }
.media { border-radius: 0; }
.card__title { line-height: 1.26; }
.card__title a:hover { color: var(--accent); }
.widget-title { font-size: .96rem; border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.btn { border-radius: 3px; font-family: var(--font-ui); font-weight: 600; }
.entry-content { font-size: 1.05rem; line-height: 1.78; }
.entry-content blockquote { border-left: 3px solid var(--accent); font-style: italic; }
.author-box { border-radius: 0; }
.topics a:hover { color: var(--accent); }

/* ============================================================
 * EXIF strip: the technical data under a photograph. Built from
 * post meta, so it is absent until a picture carries capture data.
 * ========================================================== */
.px-exif {
  --px-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  display: flex; flex-wrap: wrap; margin: 0 0 clamp(18px, 2.4vw, 30px);
  background: var(--surface-2);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.px-exif__cell {
  flex: 1 1 0; min-width: 0; padding: .6rem .9rem;
  border-left: 1px solid var(--line);
}
.px-exif__cell:first-of-type { border-left: 0; }
.px-exif__label {
  margin: 0; font-family: var(--font-ui); font-size: .58rem; font-weight: 700;
  line-height: 1; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.px-exif__value {
  margin: .34rem 0 0; font-family: var(--px-mono); font-size: .78rem;
  line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.entry .px-exif { margin-top: .4rem; }

/* Compact one-line form used under the home-page photo rows. */
.px-exif--line {
  margin: -.3rem 0 .9rem; background: none; border: 0; align-items: baseline;
}
.px-exif--line .px-exif__cell {
  flex: 0 0 auto; display: flex; align-items: baseline; gap: .36rem;
  padding: 0 .62rem; border-left: 1px solid var(--line);
}
.px-exif--line .px-exif__cell:first-of-type { padding-left: 0; }
.px-exif--line .px-exif__label { font-size: .55rem; letter-spacing: .12em; }
.px-exif--line .px-exif__value { margin: 0; font-size: .7rem; color: var(--text-2); }

@media (max-width: 620px) {
  .px-exif__cell { flex: 1 1 44%; }
  .px-exif--line { flex-wrap: wrap; row-gap: .3rem; }
}
