/*
Theme Name: Owen Sesaldo Theme
Theme URI: https://owensesaldo.com
Author: Owen Sesaldo
Author URI: https://owensesaldo.com
Description: Lightweight custom WordPress theme for Owen Sesaldo's personal brand site.
Version: 1.2.2
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: owen-sesaldo-theme
*/

:root {
  --bg: #07090d;
  --bg-soft: #0d1117;
  --surface: #111722;
  --surface-2: #171f2e;
  --text: #e9edf5;
  --muted: #97a2b8;
  --line: #253146;
  --accent: #ff7a3d;
  --accent-2: #ff9a6a;
  --radius-lg: 1.1rem;
  --radius-md: 0.75rem;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 90% -10%, rgba(255, 122, 61, 0.18), transparent 20rem),
    radial-gradient(circle at 0% 20%, rgba(50, 96, 255, 0.13), transparent 22rem),
    linear-gradient(180deg, #07090d 0%, #0b1018 100%);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: 0.65rem 0.9rem;
  background: var(--accent);
  color: #050607;
  font-weight: 700;
}

.site-shell {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 3.2rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 23, 34, 0.82);
  backdrop-filter: blur(8px);
}

.brand-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
}

.brand-wordmark {
  color: var(--text);
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  display: block;
  max-height: 2.6rem;
  width: auto;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111826;
  color: var(--text);
  padding: 0.5rem 0.9rem;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
}

.content-area {
  min-height: 50vh;
}

.section {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #101724 0%, #0f1622 100%);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.section-heading {
  margin-bottom: 1.15rem;
}

.eyebrow,
.section-label,
.card-index {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.2rem);
  max-width: 24ch;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

p {
  margin: 0 0 0.9rem;
}

.lede,
.rich-text p,
.entry-content p,
.contact-copy {
  color: var(--muted);
  font-size: 0.98rem;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.hero {
  padding: 2rem;
  position: relative;
}

.hero-content {
  max-width: 50rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #07090d;
}

.button-primary:hover,
.button-primary:focus {
  background: var(--accent-2);
}

.button-secondary {
  background: #151f30;
  border-color: #2a3a54;
  color: #ced7e8;
}

.button-secondary:hover,
.button-secondary:focus {
  background: #1d2a41;
}

.core-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.pillar-card,
.post-card,
.tool-card,
.article-cta,
.affiliate-disclosure {
  border: 1px solid #29364d;
  border-radius: var(--radius-md);
  background: #131c2a;
}

.pillar-card {
  padding: 1rem;
}

.post-grid,
.entry-list,
.entry-list-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.entry-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #0b111d;
  border-bottom: 1px solid #29364d;
}

.entry-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entry-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 61, 0.45), transparent 40%),
    linear-gradient(145deg, #142033 0%, #0d1522 100%);
}

.entry-thumb-fallback span {
  font-size: 2rem;
  font-weight: 800;
  color: #d8dfec;
}

.post-meta,
.post-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  padding: 0.8rem 0.9rem 0;
}

.post-meta span,
.post-taxonomy span {
  border: 1px solid #2b3b57;
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #98a5bd;
}

.entry-title {
  margin: 0.55rem 0.9rem 0.5rem;
}

.entry-title a {
  text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
  color: var(--accent-2);
}

.entry-content {
  margin: 0 0.9rem;
}

.entry-content p {
  font-size: 0.92rem;
}

.text-link {
  margin: auto 0.9rem 0.95rem;
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.86rem;
}

.text-link:hover,
.text-link:focus {
  color: var(--text);
}

.section-actions {
  margin-top: 1rem;
}

.affiliate-disclosure {
  margin-bottom: 0.9rem;
  padding: 0.9rem;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.tool-card {
  padding: 1rem;
}

.tool-card .button {
  margin-top: 0.9rem;
}

.featured-resource {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 1rem;
  align-items: center;
  background:
    radial-gradient(circle at right top, rgba(255, 122, 61, 0.22), transparent 40%),
    linear-gradient(180deg, #111b2b 0%, #0f1724 100%);
}

.featured-resource-action {
  display: flex;
  justify-content: flex-end;
}

.contact {
  text-align: center;
}

.contact .section-heading h2 {
  margin-inline: auto;
}

.contact-copy {
  max-width: 42rem;
  margin: 0 auto 1rem;
}

.article-shell {
  max-width: 58rem;
  margin: 0 auto;
}

.article-featured-image {
  margin: 1rem 0 1.2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #2b3750;
  aspect-ratio: 16 / 9;
}

.article-featured-image .entry-thumb-image,
.article-featured-image .entry-thumb-fallback {
  height: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.6rem 0 0.7rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0.8rem 0 1rem 1.2rem;
  color: var(--muted);
}

.entry-content blockquote {
  margin: 1rem 0;
  border-left: 3px solid var(--accent);
  padding: 0.7rem 0.9rem;
  background: #121d2c;
  color: #cad3e3;
}

.article-cta {
  margin-top: 1.4rem;
  padding: 1rem;
}

.archive-header {
  max-width: 58rem;
}

.site-footer {
  margin-top: 2rem;
}

.footer-panel {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

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

@media (max-width: 980px) {
  .core-copy,
  .pillar-grid,
  .post-grid,
  .entry-list,
  .entry-list-columns,
  .tool-grid,
  .featured-resource {
    grid-template-columns: 1fr;
  }

  .featured-resource-action {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.4rem;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 1rem, var(--container));
  }

  .section,
  .hero {
    padding: 1.15rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
