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

:root {
  --bg: #ece3d7;
  --paper: #faf6f1;
  --ink: #181513;
  --muted: #5d544d;
  --line: rgba(24, 21, 19, 0.12);
  --accent: #0f6662;
  --accent-soft: #7db6b3;
  --shadow: 0 20px 60px rgba(59, 41, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(125, 182, 179, 0.22), transparent 22%),
    linear-gradient(180deg, #f0e7dc 0%, #e4d8ca 100%);
  font-family: "Manrope", sans-serif;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  background: rgba(240, 231, 220, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand,
.site-nav a,
.button,
.eyebrow,
.note-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.brand {
  font-weight: 700;
}

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

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

.hero,
.split-section,
.section-block,
.contact-panel {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

.hero {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

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

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

h1,
h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.98;
}

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

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

h3 {
  font-size: 1.3rem;
}

.lead,
.main-copy p,
.case-card p,
.services-grid p,
.contact-copy,
.sidebar-note li,
.entry-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.lead {
  max-width: 52rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

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

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

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

.button.secondary {
  background: rgba(250, 246, 241, 0.76);
}

.split-section,
.section-block,
.contact-panel {
  margin-top: 2.5rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 2rem;
}

.sidebar-note,
.case-card,
.services-grid article,
.contact-panel,
.entry-content {
  border: 1px solid var(--line);
  background: rgba(250, 246, 241, 0.78);
  box-shadow: var(--shadow);
}

.sidebar-note {
  padding: 1.5rem;
  border-radius: 1.5rem;
}

.sidebar-note ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

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

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

.case-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.case-card,
.services-grid article,
.entry-content {
  padding: 1.5rem;
  border-radius: 1.5rem;
}

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

.contact-panel {
  padding: 2rem;
  border-radius: 1.8rem;
}

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

@media (max-width: 940px) {
  .split-section,
  .case-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 680px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 0.8rem 1rem;
  }

  .page,
  .page-shell {
    padding-top: 2rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 17vw, 4.75rem);
  }

  .hero {
    padding-bottom: 3rem;
  }

  .contact-panel {
    padding: 1.5rem;
  }
}
