/*
Theme Name: Courtney Reckord
Theme URI: https://invis.courtneyreckord.com/
Author: Courtney Reckord Design
Description: Portfolio theme for information design work. Projects post type with filterable grid/list index and full-page project views.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: courtney-reckord
*/

:root {
  --bg: #f6f5f2;
  --ink: #1c1b19;
  --muted: #6b675f;
  --body: #45423d;
  --rule: #dddad3;
  --well: #e9e6df;
  --accent: oklch(0.52 0.13 35);
  --sans: 'IBM Plex Sans', Helvetica, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
/* Body with BG Image */
/*
body { margin: 0; background: var(--bg) url(pixel-corner-bg.svg) no-repeat top left; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
*/
/* Body with NO BG Image */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.section-label { margin: 0; font-size: 14px; font-weight: 600; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 99; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(246,245,242,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-title { text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; font-size: 14px; }
.site-nav a { text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 72px; display: grid; gap: 28px; border-bottom: 1px solid var(--rule); }
.hero .tagline { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.hero h1 { margin: 0; font-weight: 500; font-size: clamp(34px,5vw,64px); line-height: 1.08; letter-spacing: -.025em; max-width: 16em; text-wrap: balance; }
.hero .disciplines { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Work index */
.work { padding: 56px 0 96px; scroll-margin-top: 64px; }
.work-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.work-head .count { font-weight: 400; color: var(--muted); font-family: var(--mono); font-size: 12px; margin-left: 6px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { all: unset; cursor: pointer; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid #d4d0c8; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,360px),1fr)); gap: 48px 32px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.card:hover { color: var(--ink); opacity: .92; }
.card-media { aspect-ratio: 4/3; background: var(--well); overflow: hidden; border-radius: 2px; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-count { position: absolute; right: 10px; bottom: 10px; background: var(--bg); font-family: var(--mono); font-size: 11px; padding: 3px 7px; border-radius: 2px; }
.card-text { display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 19px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.card-client { font-size: 14px; color: var(--muted); }

.list { border-top: 1px solid var(--ink); }
.row { text-decoration: none; display: grid; grid-template-columns: 48px minmax(0,2fr) minmax(0,1.4fr) minmax(0,1fr) 80px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.row:hover { background: #efede8; color: var(--ink); }
.row .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.row .title { font-size: 18px; font-weight: 500; }
.row .client { font-size: 14px; color: var(--muted); }
.row .thumb { width: 80px; height: 56px; background: var(--well); overflow: hidden; }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .row { grid-template-columns: 32px 1fr 64px; } .row .client, .row .eyebrow { display: none; } .row .thumb { width: 64px; height: 44px; } }
[hidden] { display: none !important; }

/* About + contact */
.about { padding: 72px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr)); gap: 48px; scroll-margin-top: 64px; }
.about-photo { aspect-ratio: 4/5; background: var(--well); overflow: hidden; max-width: 420px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text { display: flex; flex-direction: column; gap: 20px; max-width: 620px; }
.about-text .lede, .about-text > p:first-of-type { margin: 0; font-size: 24px; line-height: 1.35; letter-spacing: -.01em; text-wrap: pretty; color: var(--ink); }
.about-text p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.contact { padding: 72px 0 96px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 64px; }
.contact .big { margin: 0; font-size: clamp(28px,4vw,48px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; max-width: 14em; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); text-decoration: none; padding: 14px 22px; font-size: 15px; border-radius: 2px; }
.btn:hover { background: var(--accent); color: var(--bg); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Single project */
.project-bar { position: sticky; top: 0; z-index: 4; background: rgba(246,245,242,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.admin-bar .project-bar { top: 32px; }
.project-bar .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.project-bar a { text-decoration: none; }
.project-bar .pn { display: flex; gap: 18px; }
.project { padding: 64px 0 96px; }
.project-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 32px 64px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); margin-bottom: 56px; }
.project-head .titles { display: flex; flex-direction: column; gap: 12px; }
.project-head h1 { margin: 0; font-size: clamp(30px,4vw,48px); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.project-head .client { font-size: 15px; color: var(--muted); }
.project-head .desc { align-self: end; font-size: 18px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.project-head .desc p { margin: 0 0 1em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,420px),1fr)); gap: 32px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery .frame { background: #fff; border: 1px solid #e4e1da; padding: 20px; display: flex; align-items: center; justify-content: center; }
.gallery img { max-height: 80vh; width: auto; display: block; }
.gallery figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); }
/* Images added in the block editor get the same framing */
.project-content .wp-block-gallery, .project-content .wp-block-image { margin: 0 0 32px; }
.project-content .wp-block-image img, .project-content .wp-block-gallery img { background: #fff; border: 1px solid #e4e1da; padding: 20px; }
.project-content > p { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 40em; }
.next-project { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--rule); display: flex; justify-content: flex-end; }
.next-project a { text-decoration: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.next-project .lbl { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.next-project .t { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }

/* Generic pages */
.page-body { padding: 72px 0 96px; max-width: 720px; }
.page-body h1 { font-size: clamp(30px,4vw,48px); font-weight: 500; letter-spacing: -.02em; margin: 0 0 32px; }
.page-body p, .page-body li { font-size: 17px; line-height: 1.6; color: var(--body); }
.page-body input, .page-body textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #d4d0c8; background: #fff; border-radius: 2px; }
.page-body input[type="submit"], .page-body button { width: auto; background: var(--ink); color: var(--bg); border: 0; padding: 12px 20px; cursor: pointer; }
