/*
Theme Name: OWL Studio
Theme URI: https://owlstudio.net
Author: OWL Studio LLC
Description: Dark block theme for the OWL Studio LLC website. Content is published from Discord by owlsite.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: owlstudio
*/

:root { --owl-accent: #E67E22; --owl-surface: #1e1f22; --owl-muted: #a3a19d; --owl-line: #2a2b2f; --owl-radius: 14px; }

.owl-header { padding: 14px 16px; border-bottom: 1px solid var(--owl-line); }
.owl-brand { display: inline-flex; align-items: center; gap: 10px; color: #e8e6e3; text-decoration: none;
  font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; }
.owl-brand img { width: 40px; height: 40px; border-radius: 8px; }
.owl-header .wp-block-navigation a { color: #e8e6e3; text-decoration: none; }
.owl-header .wp-block-navigation a:hover { color: var(--owl-accent); }
.owl-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px 20px; }
.owl-header .wp-block-navigation__responsive-container.is-menu-open a { font-size: 1.25rem; }

.owl-prose { max-width: 760px; }
/* Readable columns share the page title's left edge (core's constrained layout centres children with !important). */
.wp-block-post-content > .owl-prose { max-width: 760px; margin-left: 0 !important; margin-right: auto !important; }
.owl-hero { border-radius: var(--owl-radius); overflow: hidden; margin: 24px 0 40px; background: var(--owl-surface); }
.owl-hero img { display: block; width: 100%; height: auto; }
.owl-hero-text { padding: 28px 24px 32px; }
.owl-hero-text h1 { margin: 0 0 8px; font-size: clamp(2rem, 6vw, 3.4rem); }
.owl-tagline { font-size: 1.2rem; color: #d6d3cf; margin: 0 0 20px; }

.owl-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.owl-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--owl-accent);
  color: #121214; font-weight: 700; text-decoration: none; }
.owl-btn.secondary { background: transparent; color: #e8e6e3; border: 2px solid var(--owl-accent); }
.owl-btn:hover { filter: brightness(1.1); }

.owl-section { margin: 48px 0; }
.owl-section h2, .owl-section-title, .owl-group-title { border-left: 6px solid var(--owl-accent); padding-left: 12px; }

.owl-group { margin: 56px 0; }
.owl-group-banner { display: block; border-radius: var(--owl-radius); overflow: hidden; margin: 16px 0; }
.owl-group-banner img { display: block; width: 100%; height: auto; }
.owl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 20px; }
.owl-card { background: var(--owl-surface); border-radius: var(--owl-radius); padding: 24px; border-top: 4px solid var(--owl-accent); }
.owl-card img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 16px; }
.owl-card h3 { margin: 0; font-size: 1.5rem; }
.owl-card h3 a { color: inherit; text-decoration: none; }
.owl-role { color: color-mix(in srgb, var(--owl-accent) 60%, #ffffff); font-weight: 700; margin: 4px 0 12px; }
.owl-bio p { margin: 0 0 12px; color: #d6d3cf; }

.owl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.owl-gallery figure { margin: 0; background: var(--owl-surface); border-radius: var(--owl-radius); overflow: hidden; }
.owl-gallery img { display: block; width: 100%; height: 200px; object-fit: cover; }
.owl-gallery figcaption { padding: 10px 12px; font-size: .9rem; color: var(--owl-muted); }
.owl-figure img { max-width: 100%; height: auto; border-radius: var(--owl-radius); }
.owl-credit { color: var(--owl-muted); font-size: .9rem; }

.wp-block-latest-posts.wp-block-latest-posts__list { padding: 0; }
.wp-block-latest-posts.wp-block-latest-posts__list li { background: var(--owl-surface); border-radius: var(--owl-radius);
  padding: 18px 20px; margin-bottom: 14px; list-style: none; }
.wp-block-latest-posts__post-title { font-family: var(--wp--preset--font-family--display); font-size: 1.3rem; color: #e8e6e3; text-decoration: none; }
.wp-block-latest-posts__post-date { color: var(--owl-muted); font-size: .9rem; }

.owl-footer { margin-top: 64px; padding: 28px 16px; border-top: 1px solid var(--owl-line); color: var(--owl-muted); font-size: .95rem; }
.owl-footer a { color: #e8e6e3; }
.owl-footer p { margin: 4px 0; }

@media (max-width: 600px) {
  .owl-grid, .owl-gallery { grid-template-columns: 1fr; }
  .owl-hero-text { padding: 20px 16px 24px; }
  .owl-card { padding: 20px; }
}
