/* Only what theme.json cannot express. */
:root {
	--oc-gutter: 40px;
	--oc-rule: #d4d4d4;
}
@media (max-width: 600px) {
	:root { --oc-gutter: 20px; }
}

body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { height: auto; max-width: 100%; }

/* Display type: condensed Archivo. */
h1, h2, .oc-display {
	font-stretch: 72%;
	font-variation-settings: "wdth" 72;
}
.wp-block-site-title { font-stretch: 75%; }

/* Mono labels. */
.oc-label {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.4;
	margin: 0;
}
.oc-label--accent { color: var(--wp--preset--color--accent); }
.oc-label--muted { color: var(--wp--preset--color--muted); }
.oc-section--ink .oc-label--accent { color: var(--wp--preset--color--accent-on-dark); }

/* Skip link. */
.oc-skip-link {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 100000;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	padding: 14px 20px;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 13px;
	text-transform: uppercase;
}
.oc-skip-link:focus { top: 8px; }

/* Header. */
.oc-header { border-bottom: 1px solid var(--wp--preset--color--ink); }
.oc-header .wp-block-site-title a { text-decoration: none; }
@media (max-width: 760px) { .oc-hide-mobile { display: none; } }

.oc-header .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.oc-header .wp-block-navigation-item__content:hover { border-bottom-color: var(--wp--preset--color--ink); }
.oc-header .current-menu-item > .wp-block-navigation-item__content,
.oc-header .wp-block-navigation-item__content[aria-current="page"] {
	border-bottom-color: var(--wp--preset--color--accent);
}
.oc-header .wp-block-navigation__responsive-container-open,
.oc-header .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; }

/* Footer. */
.oc-footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.oc-footer a:hover { color: var(--wp--preset--color--accent); text-decoration: underline; }
.oc-footer-links { list-style: none; margin: 0; padding: 0; text-align: right; }
@media (max-width: 760px) { .oc-footer-links { text-align: left; } }

/* Text link component: "Read our story →". */
.oc-textlink a, a.oc-textlink {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--ink);
	padding-bottom: 2px;
	display: inline-block;
}
.oc-textlink a:hover, a.oc-textlink:hover { color: var(--wp--preset--color--accent); border-bottom-color: var(--wp--preset--color--accent); }

/* ---------- Sections ---------- */
main > * { margin-block-start: 0; }
.oc-section { padding-top: var(--wp--preset--spacing--section); padding-bottom: var(--wp--preset--spacing--section); }
.oc-section--ink { background: #111111; color: #fff; }
.oc-section--ink a { color: #fff; }
.oc-section--ink p { color: #C9C9C9; }
.oc-section--ink h1, .oc-section--ink h2, .oc-section--ink h3, .oc-section--ink .oc-quote { color: #fff; }
.oc-section--ink .oc-textlink a { border-bottom-color: #fff; }
.oc-section--ink .oc-label--accent { color: #FF6A50; }
.oc-section--ink .oc-label--muted { color: #C9C9C9; }

/* Page title block. */
.oc-pagehead { padding-top: 64px; padding-bottom: 64px; }
.oc-pagehead__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.oc-pagehead h1 { margin: 16px 0 0; }
.oc-pagehead__text { max-width: 420px; margin: 0; color: var(--wp--preset--color--muted); }

/* Generic grids. */
.oc-grid { display: grid; gap: 48px 32px; }
.oc-grid > * { margin-block: 0; }
.oc-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 64px; align-items: start; }
.oc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.oc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.oc-grid--story { grid-template-columns: 1fr 2fr; gap: 64px; }
.oc-grid--story > .oc-story__body { max-width: 760px; }
.oc-story__body > * + * { margin-top: 24px; }
.oc-intro__main { grid-column: span 2; max-width: 900px; }
@media (max-width: 1000px) { .oc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
	.oc-grid--2, .oc-grid--3, .oc-grid--story { grid-template-columns: 1fr; gap: 32px; }
	.oc-intro__main { grid-column: auto; }
}
@media (max-width: 560px) { .oc-grid--4 { grid-template-columns: 1fr; } }

.oc-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.25; margin: 0 0 32px; }
.oc-quote { font-family: var(--wp--preset--font-family--archivo); font-size: clamp(32px, 4vw, 56px); font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 1; margin: 0; }
.oc-quote::after { content: ""; display: block; width: 64px; height: 4px; background: var(--wp--preset--color--accent); margin-top: 32px; }

/* Section title row. */
.oc-titlerow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid #111; padding-top: 20px; margin-bottom: 48px; }
.oc-titlerow h2, .oc-titlerow p { margin: 0; }
.oc-section--ink .oc-titlerow { border-top-color: #5A5A5A; }

/* Numbered columns (What we do / What we believe). */
.oc-num { font-family: var(--wp--preset--font-family--plex-mono); font-size: 13px; color: #FF6A50; margin: 0 0 16px; letter-spacing: 0.06em; }
.oc-item h3 { font-size: 26px; font-weight: 800; text-transform: uppercase; font-stretch: 75%; margin: 0 0 12px; color: #fff; }
.oc-item p { margin: 0; }

/* Banner and call to action. */
.oc-banner { border: 1px solid #111; padding: 40px; margin-top: 64px; display: grid; gap: 16px; }
.oc-banner > * { margin: 0; }
.oc-banner h3 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 0.95; }
@media (max-width: 600px) { .oc-banner { padding: 24px; } }
.oc-cta { border-top: 1px solid #111; border-bottom: 1px solid #111; }
.oc-cta h2 { font-size: var(--wp--preset--font-size--display); line-height: 0.9; margin: 0 0 40px; max-width: 14ch; }
.oc-cta--ink h2 { color: #fff; }
.oc-cta .wp-block-buttons { gap: 16px; }
.oc-section--ink .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }

/* Hero. */
.wp-block-cover.oc-hero { min-height: 640px; background: #2E2D2B; padding: 40px var(--oc-gutter); position: relative; }
@media (max-width: 600px) { .wp-block-cover.oc-hero { min-height: 420px; } }
.oc-hero .wp-block-cover__inner-container { width: 100%; max-width: 1360px; }
.oc-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.oc-hero__title { color: #fff; margin: 0; max-width: 11ch; }
.oc-hero__credit { color: #fff; margin: 0; text-align: right; max-width: 360px; }
.oc-hero__ph { color: #E6E6E6; margin: 0 0 24px; }

/* Image placeholders (Cover blocks). */
.wp-block-cover.oc-ph { min-height: 0; background: #3A3936; padding: 16px; }
.oc-ph--32 { aspect-ratio: 3 / 2; }
.oc-ph--45 { aspect-ratio: 4 / 5; }
.oc-ph--34 { aspect-ratio: 3 / 4; }
.oc-ph__label { color: #E6E6E6; font-size: 11px; margin: 0; }
.oc-photo-credit { margin-top: 12px; color: var(--wp--preset--color--muted); }
.oc-section--ink .oc-photo-credit { color: #C9C9C9; }

/* Milestones. */
.oc-milestone { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 20px 0; border-top: 1px solid var(--wp--preset--color--rule); }
.oc-milestone:last-child { border-bottom: 1px solid var(--wp--preset--color--rule); }
.oc-milestone > * { margin: 0; }
@media (max-width: 600px) { .oc-milestone { grid-template-columns: 1fr; gap: 4px; } }

/* People (home "The seven" and Members page). */
.oc-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px 32px; }
.oc-people--home { grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 40px 24px; }
.oc-people--page { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.oc-box { position: relative; display: block; background: #3A3936; overflow: hidden; margin-bottom: 16px; }
.oc-box--34 { aspect-ratio: 3 / 4; }
.oc-box--45 { aspect-ratio: 4 / 5; }
.oc-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-box__label, .oc-box__count { position: absolute; bottom: 12px; font: 400 11px/1.3 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: #E6E6E6; }
.oc-box__label { left: 12px; }
.oc-box__count { right: 12px; }
.oc-person__name { font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 1; font-size: 22px; margin: 0; }
.oc-people--page .oc-person__name { font-size: 36px; }
.oc-person__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.oc-person__city { color: var(--wp--preset--color--muted); margin: 0; }
.oc-person__genres { color: var(--wp--preset--color--accent); margin: 0 0 12px; }
.oc-person__bio { font-size: 16px; margin: 0 0 16px; }
.oc-person__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.oc-person a { text-decoration: none; }
a.oc-person__home:hover .oc-person__name { color: var(--wp--preset--color--accent); }

/* Member series tiles. */
.oc-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 48px 32px; }
.oc-tile a { text-decoration: none; display: block; }
.oc-tile__title { display: block; font-size: 22px; font-weight: 700; line-height: 1.15; margin: 4px 0; }
.oc-tile a:hover .oc-tile__title { color: var(--wp--preset--color--accent); }

/* Contact. */
.oc-contact { border-top: 1px solid #111; padding-top: 48px; padding-bottom: var(--wp--preset--spacing--section); }
.oc-deflist { margin: 32px 0; padding: 0; }
.oc-deflist div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--wp--preset--color--rule); }
.oc-deflist dt { font: 500 12px/1.6 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.oc-deflist dd { margin: 0; overflow-wrap: anywhere; }
.oc-walkbox { background: #111; color: #fff; padding: 32px; margin-top: 32px; }
.oc-walkbox > * { margin: 0 0 8px; }
.oc-walkbox .oc-label--accent { color: #FF6A50; }
.oc-walkbox__title { font-size: 26px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 1; }
.oc-walkbox p { color: #C9C9C9; }
.oc-walkbox .oc-walkbox__title { color: #fff; }

/* Contact Form 7, restyled. */
.wpcf7 form p { margin: 0 0 28px; }
.wpcf7 label { display: block; font: 500 12px/1.4 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin-bottom: 4px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; min-height: 44px; font: inherit; font-size: 18px; color: #111; background: transparent;
	border: 0; border-bottom: 1px solid #111; border-radius: 0; padding: 10px 0; box-shadow: none; appearance: none; -webkit-appearance: none;
}
.wpcf7 select { background-image: none; cursor: pointer; }
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-bottom: 2px solid var(--wp--preset--color--accent); padding-bottom: 9px; }
.wpcf7 input[type="submit"] {
	min-height: 44px; background: var(--wp--preset--color--accent); color: #fff; border: 0; border-radius: 0; padding: 18px 28px; cursor: pointer;
	font: 500 13px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase;
}
.wpcf7 input[type="submit"]:hover { background: #111; }
.wpcf7 input[type="submit"]:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.wpcf7-not-valid-tip { color: var(--wp--preset--color--accent); font-size: 14px; margin-top: 4px; display: block; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 16px 0; border: 0; border-top: 1px solid #111; font-size: 16px; }
.wpcf7-spinner { display: none; }

/* Single templates. */
.oc-single { padding-top: 48px; padding-bottom: var(--wp--preset--spacing--section); }
.oc-single h1 { font-size: clamp(44px, 7vw, 96px); margin: 16px 0; }
.oc-tag { display: inline-block; background: #fff; color: #111; border: 1px solid #111; padding: 6px 10px; font: 500 11px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.oc-single .wp-block-post-featured-image img { width: 100%; height: auto; display: block; }
.oc-single .wp-block-post-content > * + * { margin-top: 24px; }
.oc-single figcaption, .oc-single .wp-element-caption { font: 400 12px/1.4 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.oc-single .wp-block-gallery img { width: 100%; }

/* Small phones: keep long display words inside the screen. */
@media (max-width: 480px) {
	.oc-pagehead h1 { font-size: 42px; }
	.oc-single h1 { font-size: 40px; }
}

/* 44px touch targets for small inline links (hit area grows, look stays the same). */
.oc-textlink a, a.oc-textlink, .oc-deflist a { position: relative; }
.oc-textlink a::before, a.oc-textlink::before, .oc-deflist a::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
