/*
Theme Name: Oliver Hogsley
Theme URI: https://oliverhogsley.com/
Author: Seaside Cyber
Description: A quiet, media-first editorial theme for Oliver Hogsley.
Version: 0.1.0
Text Domain: oliver-hogsley
*/

:root {
  --ink: #182019;
  --ink-soft: #4c554b;
  --paper: #f5f0e5;
  --paper-deep: #e8dfcf;
  --moss: #344a36;
  --moss-light: #6c7c66;
  --ball: #a94836;
  --sun: #d3ad5c;
  --line: rgba(24, 32, 25, 0.16);
  --shadow: 0 24px 70px rgba(24, 32, 25, 0.14);
  --radius: 1.5rem;
  --wrap: min(1180px, calc(100vw - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ball); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 229, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: var(--wrap);
  min-height: 5.25rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 2.45rem;
  height: 2.45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 38%;
  background: var(--paper-deep);
}

.brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav .menu-item-camera a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--paper);
  background: var(--moss);
}

.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(780px, calc(100vh - 5.25rem));
  background: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 18, 13, 0.9) 0%, rgba(12, 18, 13, 0.7) 42%, rgba(12, 18, 13, 0.14) 74%);
}

.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 62% 43%; }
.hero__inner {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero__copy { max-width: 690px; padding: 5rem 0; color: var(--paper); }
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h1 { margin-bottom: 1.4rem; font-size: clamp(3.2rem, 8vw, 7.2rem); font-weight: 500; }
h2 { margin-bottom: 1rem; font-size: clamp(2.3rem, 5vw, 4.8rem); font-weight: 500; }
h3 { margin-bottom: 0.65rem; font-size: clamp(1.45rem, 2.6vw, 2rem); }

.hero__lede {
  max-width: 610px;
  margin: 0 0 2rem;
  color: rgba(245, 240, 229, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.button-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}
.button:hover { transform: translateY(-2px); color: inherit; }
.button--primary { color: var(--ink); background: var(--sun); }
.button--secondary { color: var(--paper); border-color: rgba(245, 240, 229, 0.45); background: rgba(245, 240, 229, 0.06); }
.button--dark { color: var(--paper); background: var(--moss); }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--moss { color: var(--paper); background: var(--moss); }
.section--paper-deep { background: var(--paper-deep); }
.section__inner { width: var(--wrap); margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr); gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.section-heading p { margin: 0 0 0.4rem; color: var(--ink-soft); font-size: 1.02rem; }
.section--moss .section-heading p { color: rgba(245, 240, 229, 0.72); }

.camera-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.55fr);
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.camera-shell__image { position: relative; min-height: 520px; background: #090c09; }
.camera-shell__image img { width: 100%; height: 100%; object-fit: cover; }
.camera-shell__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(24, 32, 25, 0.82);
  backdrop-filter: blur(10px);
}
.camera-shell__badge::before { content: ""; width: 0.55rem; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.camera-shell[data-state="live"] .camera-shell__badge::before { background: #8bc58f; box-shadow: 0 0 0 5px rgba(139, 197, 143, 0.15); }
.camera-shell__details { padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; justify-content: space-between; }
.camera-shell__details p { color: rgba(245, 240, 229, 0.72); }
.camera-time { margin: 0; font-size: 0.84rem; }
.camera-note { padding-top: 1.4rem; border-top: 1px solid rgba(245, 240, 229, 0.18); font-size: 0.82rem; }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.story-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1.15rem; background: rgba(255,255,255,0.32); }
.story-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-deep); }
.story-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.story-card:hover .story-card__image img { transform: scale(1.025); }
.story-card__body { padding: 1.35rem; }
.story-card__meta { margin: 0 0 0.55rem; color: var(--ball); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.story-card p:last-child { margin-bottom: 0; color: var(--ink-soft); }

.origin-story { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.origin-story__image { overflow: hidden; min-height: 620px; border-radius: var(--radius); box-shadow: var(--shadow); }
.origin-story__image img { width: 100%; height: 100%; object-fit: cover; }
.origin-story__copy { max-width: 610px; }
.origin-story__copy p { color: rgba(245, 240, 229, 0.76); font-size: 1.05rem; }
.fact-list { margin: 2rem 0; padding: 0; border-top: 1px solid rgba(245, 240, 229, 0.2); list-style: none; }
.fact-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(245, 240, 229, 0.2); }
.fact-list strong { color: var(--sun); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.section--yard-talk { border-top: 1px solid var(--line); }
.yard-talk-status { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.3); }
.yard-talk-status p { margin-bottom: 0; color: var(--ink-soft); }

.social-hub { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding: clamp(2rem, 6vw, 4.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.32); }
.social-hub p { max-width: 640px; color: var(--ink-soft); }
.social-links { display: grid; gap: 0.65rem; }
.social-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.social-links__pending { padding: 1.2rem; border-left: 4px solid var(--sun); background: var(--paper); }

.content-wrap { width: min(780px, calc(100vw - 2rem)); margin: 0 auto; padding: 5rem 0; }
.content-wrap > * + * { margin-top: 1.3rem; }
.post-list { display: grid; gap: 1rem; }
.post-list article { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }

.site-footer { padding: 3.5rem 0; color: rgba(245, 240, 229, 0.74); background: var(--ink); }
.site-footer__inner { width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.site-footer .brand { color: var(--paper); }
.site-footer p { margin: 0.8rem 0 0; max-width: 560px; font-size: 0.88rem; }
.site-footer__credit { text-align: right; }

@media (max-width: 880px) {
  .site-header__inner { min-height: 4.6rem; }
  .menu-toggle { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.65rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; font: inherit; font-size: 0.82rem; font-weight: 800; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: block; }
  .site-nav ul { width: var(--wrap); margin: 0 auto; display: grid; gap: 0.2rem; }
  .site-nav a { display: block; padding: 0.8rem; }
  .hero::after { background: linear-gradient(90deg, rgba(12, 18, 13, 0.9), rgba(12, 18, 13, 0.38)); }
  .section-heading, .camera-shell, .origin-story, .social-hub { grid-template-columns: 1fr; }
  .camera-shell__image { min-height: 430px; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .origin-story__image { min-height: 480px; }
}

@media (max-width: 600px) {
  .hero { min-height: 690px; }
  .hero::after { background: linear-gradient(180deg, rgba(12, 18, 13, 0.4), rgba(12, 18, 13, 0.91) 76%); }
  .hero__media img { object-position: 57% center; }
  .hero__inner { align-items: end; }
  .hero__copy { padding: 4rem 0; }
  h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .section { padding: 4.5rem 0; }
  .section-heading { gap: 0.5rem; }
  .camera-shell__image { min-height: 330px; }
  .story-grid { grid-template-columns: 1fr; }
  .origin-story__image { min-height: 400px; }
  .site-footer__inner { display: grid; }
  .site-footer__credit { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Clean editorial direction: simple structure, restrained color, no decorative bubbles. */
:root {
  --ink: #202124;
  --ink-soft: #5f6368;
  --paper: #ffffff;
  --paper-deep: #f8f9fa;
  --moss: #2f4936;
  --moss-light: #5f7464;
  --ball: #9f3f32;
  --sun: #d7a942;
  --line: #dadce0;
  --shadow: none;
  --radius: 0.35rem;
  --wrap: min(1120px, calc(100vw - 2.5rem));
}

body { background: #fff; font-size: 16px; }
h1, h2, h3, .brand__name { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 650; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 620; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 620; }
.eyebrow { margin-bottom: 0.65rem; color: var(--moss); font-size: 0.8rem; letter-spacing: 0.02em; text-transform: none; }

.site-header { position: sticky; top: 0; background: rgba(255,255,255,0.96); }
.site-header__inner { min-height: 4.5rem; }
.brand { gap: 0.65rem; }
.brand__mark { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.brand__name { font-size: 1.05rem; }
.site-nav .menu-item-camera a { padding: 0; border-radius: 0; color: var(--ink); background: transparent; }
.site-nav .menu-item-camera a::after { content: ""; display: block; height: 2px; margin-top: 0.18rem; background: var(--moss); }

.hero { min-height: auto; padding: clamp(2.5rem, 6vw, 6rem) 0; background: #fff; }
.hero::after { display: none; }
.hero__inner { min-height: 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.hero__copy { max-width: 600px; padding: 0; color: var(--ink); }
.hero__lede { margin-bottom: 1.6rem; color: var(--ink-soft); font-family: inherit; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.hero__media, .hero__media img { position: relative; inset: auto; width: 100%; height: auto; }
.hero__media { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--paper-deep); }
.hero__media img { height: 100%; object-fit: cover; object-position: center 55%; }

.button { min-height: 2.75rem; padding: 0.68rem 1rem; border-radius: 0.25rem; font-size: 0.86rem; }
.button:hover { transform: none; }
.button--primary, .button--dark { color: #fff; background: var(--moss); }
.button--secondary { color: var(--moss); border-color: var(--moss); background: #fff; }

.site-intro { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.site-intro__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.site-intro__grid > div { padding: 1.5rem 1.5rem 1.5rem 0; }
.site-intro__grid > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.site-intro strong, .site-intro span { display: block; }
.site-intro strong { margin-bottom: 0.3rem; font-size: 0.9rem; }
.site-intro span { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.5; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; border-bottom: 1px solid var(--line); }
.section--moss { color: var(--ink); background: #fff; }
.section--paper-deep { background: var(--paper-deep); }
.section-heading { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr); margin-bottom: 2rem; }

.camera-shell { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: none; }
.camera-shell__image { min-height: 480px; background: #eef0ed; }
.camera-shell__badge { top: 0.8rem; left: 0.8rem; padding: 0.35rem 0.5rem; border: 1px solid rgba(255,255,255,0.65); border-radius: 0.2rem; font-size: 0.66rem; background: rgba(32,33,36,0.78); }
.camera-shell__details { padding: 2rem; border-left: 1px solid var(--line); }
.camera-shell__details p { color: var(--ink-soft); }
.camera-note { border-top-color: var(--line); }

.story-grid { gap: 2rem; }
.story-card { border: 0; border-radius: 0; background: transparent; }
.story-card__image { border-radius: var(--radius); }
.story-card__body { padding: 1rem 0 0; }
.story-card__meta { color: var(--moss); }

.origin-story { grid-template-columns: 0.8fr 1.2fr; }
.origin-story__image { min-height: 560px; border-radius: var(--radius); box-shadow: none; }
.origin-story__copy p { color: var(--ink-soft); }
.fact-list { border-top-color: var(--line); }
.fact-list li { border-bottom-color: var(--line); }
.fact-list strong { color: var(--moss); }

.yard-talk-status, .social-hub { border-radius: var(--radius); background: #fff; }
.social-links a { font-family: inherit; font-size: 1rem; }
.social-links__pending { border-left: 3px solid var(--moss); background: #fff; }
.site-footer { background: #202124; }

.section--member { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); background: var(--paper-deep); }
.member-access__intro { max-width: 760px; margin-bottom: 2rem; }
.member-access__intro p, .member-access__signed-in p { color: var(--ink-soft); }
.member-access__actions { display: flex; gap: 0.75rem; align-items: flex-start; }
.member-access__actions details { width: min(100%, 430px); border: 1px solid var(--line); background: #fff; }
.member-access__actions summary { padding: 0.85rem 1rem; color: var(--moss); font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.member-access__actions details[open] summary { border-bottom: 1px solid var(--line); }
.member-access__actions form { padding: 0.25rem 1rem 1.25rem; }
.member-access__actions label:not(.yard-talk__check) { display: grid; gap: 0.4rem; margin: 1rem 0; font-size: 0.84rem; font-weight: 700; }
.member-access__actions label span { color: var(--ink-soft); font-size: 0.76rem; font-weight: 400; }
.member-access__actions input[type="email"], .member-access__actions input[type="password"], .member-access__actions input[name="display_name"] { min-height: 2.8rem; padding: 0.7rem; border: 1px solid var(--line); border-radius: 0.2rem; background: #fff; font: inherit; }
.member-access__actions .button { margin-right: 1rem; }
.member-access__notice { padding: 0.85rem 1rem; border-left: 3px solid var(--moss); background: #fff; }
.member-access__signed-in { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.text-link { color: var(--moss); font-size: 0.84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2rem; }
.field-trap { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.contact-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.contact-section__intro { max-width: 560px; }
.contact-section__intro p { color: var(--ink-soft); }
.contact-card { border-top: 3px solid var(--moss); background: var(--paper-deep); }
.contact-form { padding: clamp(1.25rem, 4vw, 2rem); }
.contact-form label { display: grid; gap: 0.4rem; margin-bottom: 1rem; font-size: 0.84rem; font-weight: 700; }
.contact-form label span { color: var(--ink-soft); font-size: 0.76rem; font-weight: 400; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--line); border-radius: 0.2rem; color: var(--ink); background: #fff; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form__notice { margin: 0; padding: 0.85rem 1rem; border-left: 3px solid var(--moss); background: #fff; }
.contact-form__privacy { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.78rem; }
.site-footer a:not(.brand) { color: inherit; }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { order: 1; }
  .hero__media { order: 2; }
  .site-intro__grid { grid-template-columns: 1fr; }
  .site-intro__grid > div, .site-intro__grid > div + div { padding: 1rem 0; border-left: 0; }
  .site-intro__grid > div + div { border-top: 1px solid var(--line); }
  .camera-shell__details { border-top: 1px solid var(--line); border-left: 0; }
  .member-access__actions { display: grid; }
  .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: 0; padding: 2.5rem 0; }
  .hero__inner { display: grid; }
  .hero__copy { padding: 0; }
  .hero__media img { object-position: center 55%; }
}
