/*
Theme Name: SweetJudo
Theme URI: https://sweetjudo.com/
Author: OpenAI Codex
Description: Minimal custom theme for the SweetJudo site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: sweetjudo
*/

:root {
  --bg: #081017;
  --paper: rgba(10, 18, 25, 0.78);
  --paper-strong: rgba(14, 24, 34, 0.9);
  --ink: #f6efe6;
  --muted: rgba(246, 239, 230, 0.76);
  --line: rgba(246, 239, 230, 0.12);
  --accent: #f1a46c;
  --accent-strong: #d96b3a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Alegreya", serif;
  position: relative;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 23, 0.18), rgba(8, 16, 23, 0.56)),
    url("./background.svg") center top / cover no-repeat;
  transform: scale(1.02);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(241, 164, 108, 0.12), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(217, 107, 58, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(8, 16, 23, 0.2), rgba(8, 16, 23, 0.74));
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(1080px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 16, 23, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand,
nav a,
.button,
.eyebrow,
.note-label,
.note-copy,
.site-footer,
.entry-meta {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand,
nav a {
  text-decoration: none;
}

.brand {
  font-weight: 600;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: rgba(246, 239, 230, 0.86);
}

.page {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.hero {
  display: grid;
  gap: 1.25rem;
  min-height: 72vh;
  align-content: end;
  padding: 8rem 0 4rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(3.4rem, 9vw, 6.8rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.lead,
.thesis-copy p,
.practice-item p,
.why-grid p,
.contact-copy,
.note-copy,
.entry-content p,
.entry-content li {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.contact-email {
  min-width: min(100%, 22rem);
}

.contact-email span {
  display: block;
  overflow-wrap: anywhere;
}

.thesis-layout,
.practice-section,
.articles-section,
.why-section,
.contact-section {
  padding-top: 3.5rem;
}

.thesis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.thesis-copy {
  padding-right: 1rem;
}

.thesis-note,
.practice-item,
.why-grid article,
.contact-section,
.article-card,
.entry-content {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.thesis-note {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(14, 24, 34, 0.92), rgba(10, 18, 25, 0.8));
}

.note-label {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
}

.note-copy {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

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

.practice-item {
  padding: 1.5rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(14, 24, 34, 0.92), rgba(10, 18, 25, 0.74));
}

.articles-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
}

.article-card {
  padding: 1.5rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(14, 24, 34, 0.92), rgba(10, 18, 25, 0.74));
}

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

.why-grid article {
  padding: 1.5rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(14, 24, 34, 0.92), rgba(10, 18, 25, 0.74));
}

.contact-section {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(14, 24, 34, 0.92), rgba(10, 18, 25, 0.82));
}

.entry-content {
  max-width: 56rem;
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(14, 24, 34, 0.92), rgba(10, 18, 25, 0.82));
}

.entry-content h1 {
  max-width: none;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  margin-bottom: 1rem;
}

.entry-meta {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.hero,
.thesis-layout,
.practice-item,
.article-card,
.why-grid article,
.contact-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .thesis-layout,
  .practice-list,
  .articles-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.25rem;
  }

  h1 {
    max-width: none;
  }
}
