/*
Theme Name: Teddy Katono
Theme URI: https://www.agwatarepublic.com/
Author: Agwata Republic
Description: Personal website theme for Teddy Katono.
Version: 1.0.0
Text Domain: teddy-katono
*/

:root {
  --color-ink: #17211c;
  --color-muted: #5d665f;
  --color-line: #d8ded8;
  --color-paper: #fbfbf7;
  --color-mist: #eef5ef;
  --color-canopy: #244b35;
  --color-leaf: #6ea447;
  --color-clay: #b7663e;
  --color-water: #2b6f7d;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --site-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration-color: rgba(36, 75, 53, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

.site-shell {
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(251, 251, 247, 0.9);
  border-bottom: 1px solid rgba(23, 33, 28, 0.1);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(calc(100% - 32px), var(--site-max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-canopy), var(--color-water));
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  min-height: 88vh;
  padding: 122px 0 52px;
  display: grid;
  align-items: end;
  position: relative;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(12, 22, 16, 0.86) 0%, rgba(12, 22, 16, 0.66) 43%, rgba(12, 22, 16, 0.16) 100%),
    url("assets/images/teddy-katono.webp");
  background-position: center;
  background-size: cover;
}

.hero-inner,
.section-inner,
.site-footer-inner {
  width: min(calc(100% - 32px), var(--site-max));
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d9ead8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 66px;
  line-height: 0.98;
  font-weight: 700;
}

.hero-lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: #fff;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: #fff;
}

.section.mist {
  background: var(--color-mist);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.1;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  gap: 44px;
  align-items: start;
}

.intro-copy p {
  margin: 0 0 18px;
}

.impact-panel {
  border-left: 4px solid var(--color-clay);
  padding: 4px 0 4px 24px;
}

.impact-panel h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.15;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.stat strong {
  display: block;
  color: var(--color-canopy);
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.45;
}

.timeline {
  display: grid;
  gap: 22px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(23, 33, 28, 0.16);
}

.timeline-date {
  color: var(--color-water);
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

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

.media-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.media-grid figure {
  min-height: 100%;
  margin: 0;
  background: #fff;
}

.media-grid img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.media-stack {
  display: grid;
  gap: 18px;
}

.media-stack img {
  min-height: 240px;
}

figcaption {
  padding: 12px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.feature-card {
  padding: 24px;
  border: 1px solid rgba(23, 33, 28, 0.12);
  border-radius: 8px;
  background: #fff;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

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

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-link {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.work-link:hover {
  border-color: rgba(36, 75, 53, 0.48);
}

.work-source {
  color: var(--color-water);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-link h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.work-link p {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 15px;
}

.social-proof {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.phone-shot {
  max-width: 310px;
  margin: 0;
  border: 1px solid rgba(23, 33, 28, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #0d1211;
}

.proof-copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.12;
}

.proof-copy p {
  margin: 18px 0 0;
  color: var(--color-muted);
}

.site-footer {
  padding: 44px 0;
  background: var(--color-ink);
  color: #fff;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.footer-links a {
  color: #fff;
}

@media (max-width: 900px) {
  .site-nav {
    min-height: 64px;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 82vh;
    padding-top: 104px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lede {
    font-size: 19px;
  }

  .intro-grid,
  .media-grid,
  .social-proof {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .features-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid img,
  .media-stack img {
    min-height: 280px;
  }
}

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

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

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 86vh;
    padding-top: 148px;
    background-image:
      linear-gradient(90deg, rgba(12, 22, 16, 0.88) 0%, rgba(12, 22, 16, 0.72) 100%),
      url("assets/images/teddy-katono.webp");
  }

  .hero h1 {
    font-size: 39px;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .stats-grid,
  .features-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
