/* theory of energy — organic design system tokens + site styles */

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;

  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;

  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-500: #8fa073;
  --color-accent-2-700: #56633f;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --radius-md: 16px;
  --radius-lg: 28px;

  --pad-x: clamp(20px, 5vw, 48px);
  --measure: 560px;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; }
img { display: block; max-width: 100%; }

a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-600); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }

/* — buttons & inputs — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 400;
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: 9px 16px; border-radius: 999px;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); animation: toe-ripple 2.4s ease-out infinite; }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }

.input {
  min-height: 38px; padding: 6px 14px; font: inherit; font-size: 14px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-divider); border-radius: 999px;
  transition: border-color .25s;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; border-radius: var(--radius-md); }

/* — animation —
   breathing follows a calm 7.2s cycle: a slightly quicker inhale (0→42%),
   a longer exhale (42→100%), eased with a sine-like curve throughout. */
:root {
  --breath-cycle: 7.2s;
  --ease-breath: cubic-bezier(.45, 0, .55, 1);
}
@keyframes toe-breathe {
  0% { transform: scale(1); opacity: .55 }
  42% { transform: scale(1.055); opacity: 1 }
  100% { transform: scale(1); opacity: .55 }
}
@keyframes toe-breathe-soft {
  0% { transform: scale(.96); opacity: .3 }
  42% { transform: scale(1.06); opacity: .75 }
  100% { transform: scale(.96); opacity: .3 }
}
@keyframes toe-glow {
  0% { transform: scale(.92); opacity: .5 }
  42% { transform: scale(1.08); opacity: .95 }
  100% { transform: scale(.92); opacity: .5 }
}
@keyframes toe-drift {
  0% { transform: translate3d(0, 0, 0) rotate(-1deg) }
  50% { transform: translate3d(0, -14px, 0) rotate(1.2deg) }
  100% { transform: translate3d(0, 0, 0) rotate(-1deg) }
}
@keyframes toe-dot {
  0% { transform: scale(1); opacity: .8 }
  42% { transform: scale(1.45); opacity: 1 }
  100% { transform: scale(1); opacity: .8 }
}
@keyframes toe-fade { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: translateY(0) } }
@keyframes toe-ripple {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, #c67139 30%, transparent) }
  70% { box-shadow: 0 0 0 16px transparent }
  100% { box-shadow: 0 0 0 0 transparent }
}
@keyframes toe-markb { 0%,100% { transform: scale(1); opacity: .85 } 50% { transform: scale(1.07); opacity: 1 } }

.toe-rise { animation: toe-fade 1s var(--d, 0s) cubic-bezier(.22,1,.36,1) both; }
.toe-mark { mix-blend-mode: multiply; display: block; }
.toe-mark-breathe { animation: toe-markb var(--breath-cycle) var(--ease-breath) infinite; transform-origin: center; }
.toe-play { animation: toe-ripple 4.5s ease-out infinite; }
.toe-breath-dot { animation: toe-dot var(--breath-cycle) var(--ease-breath) infinite; }

/* scroll reveal — armed only when site.js adds .reveal-armed to <html>,
   so content stays visible without JavaScript */
.reveal-armed .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}
.reveal-armed .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-armed .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* — header / nav — */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 26px var(--pad-x);
  max-width: 1200px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 15px; color: var(--color-text);
}
.brand:hover { color: var(--color-text); }
.brand img { height: 24px; width: auto; }
.site-nav { display: flex; gap: 26px; font-size: 12.5px; letter-spacing: .14em; text-transform: lowercase; }
.toe-navlink { color: var(--color-text); opacity: .6; text-decoration: none; position: relative; transition: opacity .25s; }
.toe-navlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.toe-navlink:hover { opacity: 1; color: var(--color-text); }
.toe-navlink:hover::after { transform: scaleX(1); }
.toe-navlink[aria-current="page"] { opacity: 1; }

/* — list rows & cards — */
.toe-link { color: var(--color-text); text-decoration: none; display: block; }
.toe-link:hover { color: var(--color-text); }
.toe-title { transition: color .25s; }
.toe-link:hover .toe-title { color: var(--color-accent-700); }
.toe-go {
  opacity: 0; transform: translateX(-6px); display: inline-block;
  transition: opacity .3s, transform .3s cubic-bezier(.22,1,.36,1);
  color: var(--color-accent-700); font-family: var(--font-body); font-size: .75em;
}
.toe-link:hover .toe-go { opacity: 1; transform: translateX(0); }

.kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--color-neutral-700); }
.meta { font-size: 11px; letter-spacing: .14em; color: var(--color-neutral-700); }
.dot-medium {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .14em; color: var(--color-accent-2-700);
}
.dot-medium::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-accent-2-500); display: block;
  animation: toe-dot var(--breath-cycle) var(--ease-breath) infinite;
}

/* — home hero: the still point — */
.hero-still {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 0 var(--pad-x); overflow: hidden;
  max-width: 1200px; margin: 0 auto; min-height: 620px;
}
.hero-still .ring {
  position: absolute; inset: 0; margin: auto;
  border-radius: 50%; pointer-events: none;
  animation: toe-breathe-soft var(--breath-cycle) var(--ease-breath) infinite;
}
.ring-a { width: min(620px, 94vw); height: min(620px, 94vw); border: 1px solid var(--color-accent-300); }
.ring-b {
  width: min(430px, 68vw); height: min(430px, 68vw);
  border: 1px solid var(--color-accent-2-300); animation-delay: .9s;
}
.ring-glow {
  width: min(210px, 40vw); height: min(210px, 40vw); border: 0;
  background: radial-gradient(circle, var(--color-accent-200), transparent 70%);
  animation-name: toe-glow; animation-delay: .45s;
}
.hero-still-inner {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  align-items: center; text-align: center; padding: 120px 0 90px;
}
.hero-dancer {
  width: min(300px, 56vw); height: auto;
  margin: -80px auto -46px; pointer-events: none;
  animation: toe-drift 9s var(--ease-breath) infinite;
}
.hero-still h1 { font-size: clamp(44px, 8vw, 66px); line-height: 1.05; letter-spacing: -.02em; }
.hero-still .lede {
  max-width: 420px; font-size: 15px; line-height: 1.7; color: var(--color-neutral-700);
}

/* — latest list — */
.latest { max-width: 1200px; margin: 0 auto; padding: 24px var(--pad-x) 44px; }
.latest-head {
  display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px;
}
.latest-head a { font-size: 12.5px; }
.latest-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 24px;
  align-items: baseline; padding: 18px 0; border-top: 1px solid var(--color-divider);
}
.latest-row:last-of-type { border-bottom: 1px solid var(--color-divider); }
.latest-row .toe-title { font-family: var(--font-heading); font-size: 22px; }

.strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding: 26px var(--pad-x); background: var(--color-surface);
}
.strip p { font-size: 13.5px; color: var(--color-neutral-700); }
.signup { display: flex; gap: 8px; flex-wrap: wrap; }

/* — inner pages — */
.page { max-width: 720px; margin: 0 auto; padding: 30px var(--pad-x) 64px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(34px, 6vw, 44px); letter-spacing: -.02em; margin-bottom: 12px; }
.page-head .sub { font-size: 15px; color: var(--color-neutral-700); max-width: 440px; }

.row { border-top: 1px solid var(--color-divider); }
.row:last-child { border-bottom: 1px solid var(--color-divider); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; }
.filters .btn { font-size: 12.5px; padding: 6px 16px; }

/* — essay — */
.essay { max-width: var(--measure); margin: 0 auto; }
.essay-cover { height: 210px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.essay-cover img { width: 100%; height: 100%; object-fit: cover; }
.essay h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.06; letter-spacing: -.022em; margin: 14px 0 26px; }
.essay .standfirst { font-size: 19px; line-height: 1.7; color: var(--color-neutral-800); margin-bottom: 26px; }
.essay .divider { width: 44px; height: 1px; background: var(--color-accent); margin-bottom: 26px; }
.essay p { font-size: 17px; line-height: 1.85; margin-bottom: 20px; }
.essay blockquote {
  margin: 32px 0; padding-left: 22px; border-left: 2px solid var(--color-accent-300);
  font-family: var(--font-heading); font-size: 24px; line-height: 1.35;
}
.companion {
  display: flex; align-items: center; gap: 16px; padding: 18px;
  border-radius: var(--radius-lg); background: var(--color-surface);
}
.companion img { width: 52px; height: 52px; flex: none; border-radius: 16px; object-fit: cover; }
.companion .toe-play {
  width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-bg); font-size: 15px;
}

/* — music — */
.release {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 22px;
  align-items: center; padding: 20px 0;
}
.release-art { width: 112px; height: 112px; overflow: hidden; }
.release-art img { width: 100%; height: 100%; object-fit: cover; }
.release h2 { font-size: 26px; line-height: 1.1; }
.release .links { display: flex; gap: 8px; flex-wrap: wrap; }
.release .links .btn { font-size: 12px; padding: 6px 14px; }

/* — about — */
.about-grid { display: grid; grid-template-columns: 1fr 260px; gap: 44px; align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about-copy p { font-size: 16px; line-height: 1.8; color: var(--color-neutral-800); }
.about-copy p.lead { font-size: 18px; color: var(--color-text); }
.about-portrait { border-radius: 52% 48% 45% 55% / 48% 44% 56% 52%; overflow: hidden; height: 340px; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

.contact-card {
  margin-top: 44px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--color-surface); display: flex; flex-direction: column;
  gap: 16px; max-width: 520px;
}
.contact-card .input { width: 100%; }

/* — footer — */
.site-footer {
  max-width: 1200px; margin: 0 auto; padding: 22px var(--pad-x) 40px;
  border-top: 1px solid var(--color-divider);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--color-neutral-700);
}

/* — responsive — */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .latest-row { grid-template-columns: 1fr auto; }
  .latest-row .date { grid-column: 1 / -1; order: 3; }
  .hero-still { min-height: 540px; }
  .hero-still-inner { padding: 96px 0 72px; }
}
@media (max-width: 600px) {
  .site-header { flex-direction: column; gap: 14px; }
  .release { grid-template-columns: 88px 1fr; }
  .release-art { width: 88px; height: 88px; }
  .release .links { grid-column: 2; }
  .signup, .signup .input { width: 100%; }
}
