/*
Theme Name: Warwick Soar
Theme URI: https://warwicksoar.com/
Author: Warwick Soar
Description: A focused personal site for Warwick Soar: creative producer, systems builder, and founder.
Version: 1.0.4
Text Domain: warwick-soar
*/

:root {
  --ink: #181a1a;
  --paper: #f4f2ed;
  --white: #ffffff;
  --muted: #666b68;
  --line: #c9cbc6;
  --red: #b7422f;
  --teal: #23736c;
  --lime: #b8d647;
  --content: 1180px;
  --reading: 760px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--red);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  z-index: 1000;
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  line-height: 1;
}

.mark-block {
  width: 16px;
  height: 16px;
  background: var(--red);
  box-shadow: 8px 8px 0 var(--lime);
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav .current-menu-item a,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--lime);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-lines {
  position: relative;
}

.menu-lines::before {
  position: absolute;
  top: -6px;
}

.menu-lines::after {
  position: absolute;
  top: 6px;
}

.hero {
  position: relative;
  min-height: calc(88svh - 76px);
  max-height: 900px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--ink) url("assets/images/warwick-soar-workbench.webp") center center / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(18, 20, 20, 0.5);
  content: "";
}

.hero-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 5rem 0 7rem;
}

.hero-copy {
  width: min(690px, 62%);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7.8rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-role {
  margin: 2rem 0 0;
  color: var(--white);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.hero-intro {
  max-width: 610px;
  margin: 1rem 0 0;
  color: #e0e2dd;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.button-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
}

.band {
  padding: 6.5rem 0;
}

.band-white {
  background: var(--white);
}

.band-dark {
  background: var(--ink);
  color: var(--white);
}

.band-teal {
  background: var(--teal);
  color: var(--white);
}

.wrap {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.5fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.section-heading h2,
.page-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 710px;
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice {
  min-height: 300px;
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.practice:last-child {
  border-right: 0;
}

.practice-number {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
}

.practice h3 {
  margin: 3.5rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 500;
}

.practice p {
  margin: 0;
  color: var(--muted);
}

.method-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.method-step {
  min-height: 205px;
  padding: 1.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.method-step:last-child {
  border-right: 0;
}

.method-step span {
  display: block;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
}

.method-step h3 {
  margin: 3rem 0 0.75rem;
  font-size: 1.12rem;
}

.method-step p {
  margin: 0;
  color: #d6dedc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.method-formula {
  margin: 2.5rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.venture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.venture {
  min-height: 310px;
  padding: 2.25rem;
  background: var(--paper);
}

.venture-label {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.venture h3 {
  margin: 3.5rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-weight: 500;
}

.venture p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
}

.contact-band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
}

.contact-band p {
  max-width: 650px;
  margin: 1rem 0 0;
}

.page-header {
  padding: 5.5rem 0 4rem;
  background: var(--ink);
  color: var(--white);
}

.page-header .eyebrow {
  margin-bottom: 1rem;
}

.page-content {
  width: min(calc(100% - 40px), var(--reading));
  margin: 0 auto;
  padding: 4.5rem 0 7rem;
}

.page-content h2 {
  margin: 3.5rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}

.page-content h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
}

.page-content p,
.page-content ul {
  margin: 0 0 1.3rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content > p:first-child {
  font-size: 1.3rem;
  line-height: 1.55;
}

.site-footer {
  padding: 2.5rem 0;
  background: #0f1111;
  color: #c8cbc7;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
}

.footer-inner a {
  color: var(--white);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 0;
    display: none;
    padding: 2rem 20px;
    background: var(--ink);
  }

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

  .site-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .site-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.15rem;
  }

  .hero {
    min-height: calc(88svh - 76px);
    align-items: flex-end;
    background-position: 62% center;
  }

  .hero::before {
    background: rgba(18, 20, 20, 0.62);
  }

  .hero-copy {
    width: 100%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .practice:last-child {
    border-bottom: 0;
  }

  .practice h3 {
    margin-top: 2rem;
  }

  .method-track {
    grid-template-columns: 1fr;
  }

  .method-step {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .method-step:last-child {
    border-bottom: 0;
  }

  .method-step h3 {
    margin-top: 1.5rem;
  }

  .venture-grid {
    grid-template-columns: 1fr;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .hero-inner,
  .wrap,
  .footer-inner,
  .page-content {
    width: min(calc(100% - 28px), var(--content));
  }

  .hero {
    min-height: calc(88svh - 76px);
  }

  .hero-inner {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .band {
    padding: 4.5rem 0;
  }

  .practice,
  .venture {
    padding: 1.5rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
