/*
Theme Name: Hector Fox Editable
Theme URI: https://hector-fox.com
Author: Hector Fox / OpenAI
Description: Editable WordPress theme generated from the Claude design prototype. The homepage is created as native WordPress blocks, so the full page can be edited visually from Pages → Home.
Version: 3.0.0
Requires at least: 6.2
Tested up to: 6.5
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: hector-fox-editable
Tags: blog, portfolio, one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, translation-ready
*/

:root {
  --bg: #eee8d8;
  --bg-alt: #e2d7bd;
  --bg-card: #e9dec6;
  --bg-deep: #2c251c;
  --fg: #27221b;
  --fg-muted: #6f6659;
  --fg-faint: #958b7b;
  --line: rgba(39, 34, 27, 0.18);
  --line-soft: rgba(39, 34, 27, 0.08);
  --accent: #a8ff1a;
  --accent-deep: #81cb00;
  --accent-fg: #18140f;
  --display: "Newsreader", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-fg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* WordPress alignment defaults */
.wp-site-blocks, .site { min-height: 100vh; }
.entry-content > * { margin-block-start: 0; }
.entry-content > * + * { margin-block-start: 0; }
.entry-content .alignwide { max-width: var(--container); margin-left: auto; margin-right: auto; }
.entry-content .alignfull { max-width: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.hf-header-inner { max-width: var(--container); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hf-brand { display: inline-flex; align-items: center; gap: 12px; }
.hf-mark { width: 22px; height: 22px; display: inline-block; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent-deep); }
.hf-brand-name { font-family: var(--display); font-size: 21px; line-height: 1; letter-spacing: -0.02em; }
.hf-nav { display: flex; align-items: center; gap: 26px; }
.hf-nav a { font-size: 14px; color: var(--fg-muted); transition: color .2s ease; }
.hf-nav a:hover { color: var(--fg); }
.hf-header-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 500; }
@media (max-width: 1000px) { .hf-nav { display: none; } }
@media (max-width: 720px) { .hf-header-inner { padding: 0 22px; } .hf-header-cta { display: none; } }

/* Shared editorial system */
.hf-container { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }
.hf-narrow { max-width: 900px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }
.hf-section { padding-top: 128px; padding-bottom: 128px; }
.hf-section-compact { padding-top: 84px; padding-bottom: 84px; }
.hf-label, .hf-label a, .wp-block-post-date, .wp-block-post-terms { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }
.hf-display, .hf-display a, h1.hf-display, h2.hf-display, h3.hf-display { font-family: var(--display); font-weight: 400; letter-spacing: -.025em; line-height: .98; }
.hf-muted { color: var(--fg-muted); }
.hf-faint { color: var(--fg-faint); }
.hf-accent { color: var(--accent); }
.hf-display em, .hf-serif-italic { font-family: var(--display); font-style: italic; }
.hf-rule-top { border-top: 1px solid var(--line); }
.hf-rule-bottom { border-bottom: 1px solid var(--line); }
.hf-dark { background: var(--bg-deep); color: var(--bg); }
.hf-alt { background: var(--bg-alt); }
.hf-card { background: color-mix(in srgb, var(--bg-alt) 55%, var(--bg)); border: 1px solid var(--line); }
.hf-paper-card { background: var(--bg-card); border: 1px solid var(--line); }

.hf-button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.wp-block-button__link, .hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.wp-block-button__link:hover, .hf-btn:hover { transform: translateY(-1px); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link, .hf-btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 1px 0 var(--accent-deep) inset, 0 10px 30px -12px var(--accent); }
.wp-block-button.is-style-outline .wp-block-button__link, .hf-btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.wp-block-button.is-style-outline .wp-block-button__link:hover, .hf-btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.hf-dark .wp-block-button.is-style-outline .wp-block-button__link { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.hf-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--bg); color: var(--fg); }

.hf-placeholder {
  min-height: 360px;
  background-color: var(--bg-alt);
  background-image: repeating-linear-gradient(135deg, var(--line-soft) 0 8px, transparent 8px 16px);
  border: 1px dashed var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px;
}
.hf-dropcap::first-letter { font-family: var(--display); font-style: italic; float: left; font-size: 4.4em; line-height: .85; padding-right: 12px; padding-top: 4px; color: var(--accent); }

/* Hero */
.hf-hero { padding-top: 72px; padding-bottom: 88px; overflow: hidden; }
.hf-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.hf-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 64px; align-items: end; margin-top: 72px; }
.hf-hero-title { font-size: clamp(58px, 10.5vw, 160px); max-width: 12ch; margin: 0; }
.hf-hero-intro { max-width: 44ch; margin-top: 44px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--fg-muted); }
.hf-hero-side { padding: 28px; min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; }
.hf-desk-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line-soft); }
.hf-desk-row:last-child { border-bottom: 0; }
.hf-desk-row p { margin: 0; font-family: var(--display); font-style: italic; font-size: 16px; line-height: 1.4; }

/* Clients */
.hf-section-head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; margin-bottom: 56px; }
.hf-section-head h2 { font-size: clamp(32px, 4.4vw, 58px); margin: 0; }
.hf-logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hf-logo-grid > * { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0; padding: 20px; text-align: center; transition: background .2s ease, color .2s ease; }
.hf-logo-grid > *:hover { background: var(--accent); color: var(--accent-fg); }
.hf-logo-grid .hf-logo-display { font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.02em; }
.hf-logo-grid .hf-logo-sans { font-family: var(--sans); font-size: clamp(18px, 2vw, 30px); font-weight: 800; letter-spacing: .16em; }
.hf-logo-grid .hf-logo-mono { font-family: var(--mono); font-size: clamp(15px, 1.6vw, 22px); letter-spacing: .2em; }

/* Manifesto */
.hf-manifesto-title { font-size: clamp(40px, 6.8vw, 104px); max-width: 18ch; margin: 0; }
.hf-manifesto-intro { margin-top: 54px; max-width: 44ch; font-family: var(--display); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; }
.hf-essay-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr) 190px; gap: 56px; align-items: start; margin-top: 72px; }
.hf-essay-body { font-family: var(--display); font-size: clamp(17px, 1.25vw, 20px); line-height: 1.65; max-width: 62ch; }
.hf-pullquote { font-family: var(--display); font-style: italic; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -.012em; border-left: 3px solid var(--accent); padding-left: 32px; margin: 48px -32px; }
.hf-marginalia { position: sticky; top: 108px; }
.hf-side-note { border-top: 1px solid var(--line); padding: 14px 0; }

/* Services */
.hf-services-list { border-top: 1px solid var(--line); }
.hf-service-row { display: grid; grid-template-columns: 70px 120px 1fr 180px; gap: 28px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--line); }
.hf-service-row h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 44px); font-weight: 400; line-height: 1.05; letter-spacing: -.018em; margin: 0 0 12px; }
.hf-service-row ul { margin: 18px 0 0; padding-left: 1.1em; color: var(--fg-muted); }
.hf-price { font-family: var(--display); font-style: italic; font-size: 22px; text-align: right; }

/* Work */
.hf-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hf-work-card { padding: 28px; min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; }
.hf-work-card h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 44px); line-height: 1.05; font-weight: 400; letter-spacing: -.018em; margin: 26px 0 18px; }
.hf-work-card p { color: var(--fg-muted); }
.hf-work-result { padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }

/* Media / writing */
.hf-video-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.hf-video-card { padding: 26px; border-top: 1px solid var(--line); }
.hf-video-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.018em; margin: 14px 0; }
.hf-post-grid, .wp-block-latest-posts.hf-post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; list-style: none; }
.wp-block-latest-posts.hf-post-grid li, .hf-post-card { border-top: 1px solid var(--line); padding-top: 20px; }
.wp-block-latest-posts.hf-post-grid a, .hf-post-card h3 { font-family: var(--display); font-size: 24px; line-height: 1.12; font-weight: 400; letter-spacing: -.015em; }
.wp-block-latest-posts__post-excerpt { color: var(--fg-muted); font-size: 14px; line-height: 1.5; }

/* Newsletter / booking / contact */
.hf-newsletter-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; border-top: 2px solid var(--fg); border-bottom: 1px solid var(--line); padding: 56px 0; }
.hf-newsletter-box h2 { font-size: clamp(38px, 5.6vw, 76px); margin: 0; }
.hf-plugin-slot { background: color-mix(in srgb, var(--bg) 70%, white); border: 1px dashed var(--line); padding: 22px; color: var(--fg-muted); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; }
.hf-book-grid, .hf-contact-grid, .hf-about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.hf-book-card { background: var(--bg); color: var(--fg); border-radius: 12px; overflow: hidden; min-height: 520px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.hf-cal-embed { width: 100%; min-height: 680px; border: 0; display: block; background: white; }
.hf-contact-list { border-top: 1px solid var(--line); margin-top: 40px; }
.hf-contact-list p { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }

/* Testimonials / about */
.hf-testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hf-testimonial { padding: 30px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.hf-testimonial blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.18; letter-spacing: -.012em; }
.hf-about-body { font-family: var(--display); font-size: clamp(18px, 1.35vw, 22px); line-height: 1.65; max-width: 58ch; }
.hf-about-side { position: sticky; top: 108px; }
.hf-side-table { border-top: 1px solid var(--line); }
.hf-side-table p { display: grid; grid-template-columns: 125px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }

/* Footer */
.site-footer { background: var(--bg-deep); color: var(--bg); padding: 88px 0 28px; }
.hf-footer-top { max-width: var(--container); margin: 0 auto; padding: 0 40px 72px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; }
.hf-footer-title { font-family: var(--display); font-size: clamp(48px, 8.5vw, 128px); line-height: .95; letter-spacing: -.03em; margin: 0; }
.hf-footer-bottom { max-width: var(--container); margin: 0 auto; padding: 40px 40px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.hf-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.hf-footer-links a { color: color-mix(in srgb, var(--bg) 85%, transparent); }

/* Responsive */
@media (max-width: 1080px) {
  .hf-hero-grid, .hf-section-head, .hf-essay-grid, .hf-video-grid, .hf-newsletter-box, .hf-book-grid, .hf-contact-grid, .hf-about-grid, .hf-footer-top { grid-template-columns: 1fr; }
  .hf-marginalia, .hf-about-side { position: static; }
  .hf-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-work-grid, .hf-post-grid, .wp-block-latest-posts.hf-post-grid { grid-template-columns: 1fr 1fr; }
  .hf-service-row { grid-template-columns: 60px 1fr; }
  .hf-price { text-align: left; }
}
@media (max-width: 720px) {
  .hf-container, .hf-narrow, .hf-footer-top, .hf-footer-bottom { padding-left: 22px; padding-right: 22px; }
  .hf-section { padding-top: 78px; padding-bottom: 78px; }
  .hf-hero { padding-top: 42px; }
  .hf-hero-title { font-size: clamp(52px, 18vw, 96px); }
  .hf-logo-grid, .hf-work-grid, .hf-post-grid, .wp-block-latest-posts.hf-post-grid, .hf-testimonial-grid { grid-template-columns: 1fr; }
  .hf-service-row { grid-template-columns: 1fr; gap: 8px; }
  .hf-contact-list p, .hf-side-table p { grid-template-columns: 1fr; gap: 4px; }
}
.hf-nav li, .hf-footer-links li { list-style: none; margin: 0; padding: 0; }
.hf-nav .menu-item, .hf-footer-links .menu-item { display: inline-flex; }


/* V3 editable/header/mobile fixes */
:root { --hf-logo-size: 42px; }

.hf-header-inner { position: relative; }
.hf-header-navwrap { display: flex; align-items: center; justify-content: flex-end; gap: 28px; flex: 1 1 auto; min-width: 0; }
.hf-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.hf-menu li { list-style: none; margin: 0; padding: 0; }
.hf-nav { display: block; }
.hf-brand { flex: 0 0 auto; min-width: max-content; }
.custom-logo-link img, .hf-brand img, .hf-brand .custom-logo { max-height: var(--hf-logo-size); width: auto; display: block; }
.hf-mark { width: var(--hf-logo-size); height: var(--hf-logo-size); }
.hf-header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.hf-lang-switcher { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; }
.hf-lang-link { color: var(--fg-muted); opacity: .72; }
.hf-lang-link:hover, .hf-lang-link.is-current { color: var(--fg); opacity: 1; }
.hf-lang-sep { color: var(--line); }
.hf-menu-toggle { display: none; appearance: none; border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: 999px; padding: 9px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; align-items: center; gap: 10px; }
.hf-menu-toggle-lines { width: 18px; height: 12px; display: inline-block; position: relative; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.hf-menu-toggle-lines::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; transform: translateY(-50%); }
.hf-header-logo-center .hf-brand { position: absolute; left: 50%; transform: translateX(-50%); }
.hf-header-logo-right .hf-brand { order: 3; }
.hf-header-logo-right .hf-header-navwrap { justify-content: flex-start; }
.hf-header-no-logo .hf-header-navwrap { justify-content: space-between; }

.hf-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr); align-items: end; }
.hf-hero-side-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.hf-portrait-card { min-height: 430px; padding: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.hf-portrait-card .hf-portrait-image { flex: 1 1 auto; min-height: 360px; margin: 0; }
.hf-portrait-card img { width: 100%; height: 100%; object-fit: cover; }
.hf-portrait-card > .hf-label { margin: 0; padding: 14px; border-top: 1px solid var(--line); }
.hf-studio-card { min-height: 430px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.hf-studio-list { margin-top: 12px; }
.hf-studio-item { display: flex !important; align-items: flex-start !important; flex-wrap: nowrap !important; gap: 12px; padding: 14px 0; border-top: 1px dashed var(--line-soft); }
.hf-studio-item:last-child { border-bottom: 1px dashed var(--line-soft); }
.hf-studio-thumb { width: 42px !important; min-width: 42px; max-width: 42px; flex: 0 0 42px; margin: 0 !important; }
.hf-studio-thumb img { width: 42px; height: 42px; object-fit: cover; border-radius: 2px; }
.hf-studio-copy { min-width: 0; }
.hf-studio-copy p { margin: 0; }
.hf-studio-copy p:last-child { font-family: var(--display); font-style: italic; font-size: 16px; line-height: 1.25; letter-spacing: -.008em; }
.hf-studio-copy a { text-decoration: none; border-bottom: 1px solid transparent; }
.hf-studio-copy a:hover { border-bottom-color: var(--fg); }
.hf-desk-row { grid-template-columns: 110px 1fr; }
.hf-about-portrait { margin: 0 0 24px; border: 1px solid var(--line); background: var(--bg-alt); }
.hf-about-portrait img { width: 100%; max-height: 540px; object-fit: cover; }

@media (max-width: 1180px) {
  .hf-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hf-hero-side-grid { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  .hf-header-inner { padding-left: 22px; padding-right: 22px; }
  .hf-menu-toggle { display: inline-flex; margin-left: auto; }
  .hf-header-logo-center .hf-brand { position: static; transform: none; }
  .hf-header-navwrap {
    position: absolute;
    top: calc(100% + 19px);
    left: 22px;
    right: 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 22px;
    background: color-mix(in srgb, var(--bg) 96%, white);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -34px rgba(0,0,0,.45);
  }
  .hf-header-navwrap.is-open { display: flex; }
  .hf-nav { display: block !important; width: 100%; }
  .hf-menu { flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
  .hf-menu a { font-size: 18px; font-family: var(--display); color: var(--fg); }
  .hf-header-actions { width: 100%; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line-soft); }
  .hf-header-cta { display: inline-flex; }
}

@media (max-width: 720px) {
  .hf-hero-side-grid { grid-template-columns: 1fr; }
  .hf-portrait-card { min-height: 360px; }
  .hf-portrait-card .hf-portrait-image { min-height: 300px; }
  .hf-studio-card { min-height: auto; }
  .hf-header-cta { padding: 10px 14px; }
}
