/* Anak Teladan — lean front-end CSS
   Goals: fast paint, readable long-form, accessible focus, mobile-first
*/

:root {
  --at-radius: 6px;
  --at-shadow: 0 1px 0 rgba(26, 35, 50, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip link — keyboard accessibility */
.at-skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: #e85d04;
  color: #fff;
  font-weight: 600;
  border-radius: var(--at-radius);
  text-decoration: none;
}

.at-skip-link:focus {
  top: 1rem;
}

/* Brand lockup */
.at-brand .wp-block-site-title a {
  text-decoration: none;
  color: inherit;
}

/* Hero — full-bleed atmosphere, one composition */
.at-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(232, 93, 4, 0.18), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(45, 106, 79, 0.16), transparent 50%),
    linear-gradient(165deg, #fffdf8 0%, #f5e6d3 55%, #e8f4f8 100%);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.at-hero__title {
  max-width: 16ch;
  letter-spacing: -0.02em;
}

.at-hero__lead {
  max-width: 42ch;
  color: #4a5568;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
}

.at-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.at-hero__cta .wp-block-button__link {
  text-decoration: none;
}

.at-btn-secondary .wp-block-button__link {
  background: transparent !important;
  color: #1a2332 !important;
  box-shadow: inset 0 0 0 2px #1a2332;
}

/* Pillar grid — not cards-as-decoration; interactive topic entry points */
.at-pillars {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .at-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .at-pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.at-pillar {
  display: block;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #f5e6d3;
  border-radius: var(--at-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease;
}

.at-pillar:hover,
.at-pillar:focus-visible {
  border-color: #e85d04;
  transform: translateY(-2px);
  outline: none;
}

.at-pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.at-pillar p {
  margin: 0;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Article reading comfort */
.single .wp-block-post-content > * + *,
.page .wp-block-post-content > * + * {
  margin-top: 1.15em;
}

.single .wp-block-post-content p,
.page .wp-block-post-content p {
  max-width: 65ch;
}

.single .wp-block-post-content h2,
.page .wp-block-post-content h2 {
  margin-top: 1.75em;
}

.at-byline {
  color: #4a5568;
  font-size: 0.9rem;
}

.at-meta-cats a {
  color: #e85d04;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}

/* Archive cards — minimal, content-led */
.at-card {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f5e6d3;
}

.at-card .wp-block-post-title a {
  text-decoration: none;
}

.at-card .wp-block-post-title a:hover {
  color: #e85d04;
}

/* Focus ring global */
a:focus-visible,
button:focus-visible,
.wp-block-navigation a:focus-visible {
  outline: 2px solid #e85d04;
  outline-offset: 3px;
}

/* Footer link contrast */
footer a {
  color: #f5e6d3;
}

footer a:hover {
  color: #fff;
}
