/*
Theme Name: G. F. Edward — CV
Theme URI: https://gfedward.com
Author: G. F. Edward / Jack
Description: Clean professional CV for Gordon F. Edward. Soft gray paper, navy headings, terracotta accents. Three photos + bio, skim cards, depth tabs. Domain: GFEdward.com.
Version: 1.3.1
Text Domain: gfedward
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
  --bg: #f1efe9;
  --paper: #faf8f4;
  --ink: #1c2430;
  --navy: #1e3354;
  --muted: #5a6370;
  --line: #d5cfc4;
  --terra: #c45c3e;
  --terra-dark: #9a432c;
  --card: #fffdf9;
  --shadow: 0 10px 28px rgba(30, 51, 84, 0.06);
  --font-heading: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 68rem;
  --header-height: 3.75rem;
  --radius: 0.45rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.16em; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 560;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.site { min-height: 100vh; padding-top: var(--header-height); }
.wrap { width: min(100% - 2.25rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header — thin paper bar, not a color slab */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
body.admin-bar .site-header { top: 32px; }
body.admin-bar .site { padding-top: calc(var(--header-height) + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .site { padding-top: calc(var(--header-height) + 46px); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}
.site-brand img {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.3rem;
}
.site-brand span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 560;
}
.site-brand .brand-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.45rem;
}
@media (max-width: 720px) {
  .site-brand .brand-tag { display: none; }
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 0.35rem 0.7rem;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}
.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--terra); }
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0.8rem; }
}

/* Cover — photos left, bio right. No color banner. */
.cover {
  padding: 2.4rem 0 1.4rem;
}
.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 2rem 2.4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .cover-grid { grid-template-columns: 1fr; }
}
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.photo-frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e6e2d8;
}
.photo-frame figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.5rem 0.55rem;
  text-align: center;
}
.photo-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, #e8e4db, #d8d2c6);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.cover-bio .eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 650;
}
.cover-bio h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 0 0 0.35rem;
}
.cover-tag {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1.12rem;
}
.cover-copy {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-block;
  padding: 0.62rem 1.05rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 650;
  border-radius: var(--radius);
  border: 1px solid var(--terra);
  background: var(--terra);
  color: #fffaf6;
}
.btn:hover { background: var(--terra-dark); color: #fff; border-color: var(--terra-dark); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--terra); color: var(--terra); background: transparent; }

/* Skim cards */
.section { padding: 1.4rem 0 2.4rem; }
.section-head {
  margin-bottom: 1.2rem;
}
.section-head h2 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}
.rule {
  width: 3.2rem;
  height: 2px;
  background: var(--terra);
}
.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 650;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.skim-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.skim-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.22rem;
}
.skim-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Tabs */
.tabs {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #f4f1ea;
}
.tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
}
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] {
  color: var(--navy);
  border-bottom-color: var(--terra);
  background: var(--paper);
}
.tabpanel {
  display: none;
  padding: 1.4rem 1.35rem 1.55rem;
}
.tabpanel.is-active { display: block; }
.tabpanel h3 { margin-top: 0; }
.tabpanel p, .tabpanel li { color: var(--ink); }
.tabpanel ul { padding-left: 1.15rem; }
.tabpanel li { margin: 0.35rem 0; }

/* Pages / posts */
.entry { padding: 2.2rem 0 3rem; max-width: 46rem; }
.entry-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 0.4rem; }
.entry-meta { color: var(--muted); margin: 0 0 1.2rem; }
.entry-content p { max-width: 42rem; }

.gallery-lead { color: var(--muted); max-width: 40rem; }
.gallery-page h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0.2rem 0 0.55rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-card {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
}
.gallery-card:hover { border-color: var(--terra); }
.gallery-thumb img,
.gallery-thumb .photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery-card-meta { padding: 0.7rem 0.8rem 0.85rem; }
.gallery-card-meta h2 {
  margin: 0;
  font-size: 1.15rem;
}
.gallery-flag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 650;
}
.gallery-pager { margin-top: 1.5rem; text-align: center; }
.art-hero {
  margin: 0 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.art-hero img { width: 100%; height: auto; }
.shop-doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
@media (max-width: 800px) { .shop-doors { grid-template-columns: 1fr; } }
.shop-door {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  color: inherit;
}
.shop-door:hover { border-color: var(--terra); }
.shop-door h2 { margin: 0.25rem 0 0.7rem; font-size: 1.35rem; }
.shop-door .term-open { color: var(--terra); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; }
.empty-box {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  color: var(--muted);
}
.empty-box p { margin: 0 0 0.45rem; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } }
.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-thumb { display: block; }
.project-thumb img,
.project-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.project-card-body { padding: 1rem 1.05rem 1.15rem; }
.project-card-body h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.project-card-body h2 a { text-decoration: none; color: var(--navy); }
.project-card-body h2 a:hover { color: var(--terra); }
.project-card-body p { margin: 0 0 0.85rem; color: var(--muted); }

.wrap-narrow-exp { max-width: 48rem; }
.exp-list { list-style: none; margin: 0; padding: 0; }
.exp-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem 1.4rem;
  padding: 1.15rem 0 1.3rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) { .exp-item { grid-template-columns: 1fr; } }
.exp-when {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 650;
  padding-top: 0.25rem;
}
.exp-body h2 { margin: 0 0 0.2rem; font-size: 1.4rem; }
.exp-org { margin: 0 0 0.55rem; color: var(--muted); }

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.4rem;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.inquire-form { margin-top: 0.5rem; }
.service-picker {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  margin: 0 0 1.25rem;
}
.service-picker legend {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.2rem;
  padding: 0 0.35rem;
}
.field-hint { margin: 0.2rem 0 0.75rem; color: var(--muted); font-size: 0.92rem; }
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}
.service-tab {
  cursor: pointer;
}
.service-tab input { position: absolute; opacity: 0; pointer-events: none; }
.service-tab span {
  display: inline-block;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  background: #f4f1ea;
}
.service-tab input:checked + span,
.service-tab input:focus-visible + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fffaf6;
}
.service-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.service-table th,
.service-table td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-top: 1px solid var(--line);
}
.service-table th { color: var(--muted); font-weight: 650; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid label { display: flex; flex-direction: column; gap: 0.3rem; }
.form-grid label span { font-size: 0.82rem; font-weight: 650; color: var(--navy); }
.form-grid input,
.form-grid textarea {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
.form-grid .span-2 { grid-column: 1 / -1; }
.form-foot { margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; }
.inquire-form button.btn { border: 0; cursor: pointer; font: inherit; }
.form-note {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  margin: 0 0 1rem;
}
.form-note-ok { background: #e8f3ea; color: #1d4a28; }
.form-note-err { background: #f8e6e2; color: #7a2d1d; }

.channel-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.15rem;
  max-width: 40rem;
}
@media (max-width: 640px) { .channel-board { grid-template-columns: 1fr; } }
.channel-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 1rem;
}
.channel-col h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.channel-col ul { list-style: none; margin: 0; padding: 0; }
.channel-col li { margin: 0.35rem 0; }
.channel-col a { text-decoration: none; font-weight: 650; }
.channel-placeholder { color: var(--muted); }
.channel-placeholder em { font-style: normal; font-size: 0.82rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.4rem;
  background: #ece8e0;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 1.4rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin: 0.55rem 0 0; max-width: 28rem; }
.footer-col h4 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.3rem 0; }
.footer-col a { text-decoration: none; color: var(--navy); }
.footer-col a:hover { color: var(--terra); }
.site-end {
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

@media print {
  .site-header, .nav-toggle, .hero-actions, .tablist, .site-footer { display: none !important; }
  .site { padding: 0; }
  .tabpanel { display: block !important; page-break-inside: avoid; }
  body { background: #fff; }
}
