/* ============================================
   SISTER HARUM — Portal beranda (terang & bersih)
   Berkas gaya induk portal; dipasangkan dengan
   hub.css untuk halaman sekunder.
   ============================================ */

:root {
  color-scheme: light;

  --bg: #f4f7f4;
  --surface: #ffffff;
  --ink: #0f2d1e;
  --text: #34513f;
  --muted: #5c7267;
  --brand: #0d6e3f;
  --brand-deep: #094d2c;
  --tint: #e8f3ec;
  --gold: #ffd700;
  --line: #e1eae4;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(15, 45, 30, 0.06),
    0 10px 28px rgba(15, 45, 30, 0.07);
  --shadow-lift: 0 2px 4px rgba(15, 45, 30, 0.08),
    0 16px 36px rgba(15, 45, 30, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #c4d5ca var(--bg);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--gold) 100%);
  z-index: 5;
}

::selection {
  background: var(--brand);
  color: #ffffff;
}

@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg);
  }

  ::-webkit-scrollbar-thumb {
    background: #c4d5ca;
    border: 2px solid var(--bg);
    border-radius: 999px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--brand);
  }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Shell ---- */
.shell {
  width: min(100%, 56rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 3.25rem) 0 3rem;
}

/* ---- Masthead ---- */
.masthead {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(1.75rem, 4vh, 2.5rem);
}

.mark {
  flex: none;
  width: 60px;
  height: 60px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(15, 45, 30, 0.06);
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tagline {
  margin: 0.25rem 0 0;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  color: var(--muted);
}

/* ---- Featured ---- */
.feature {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  color: #ffffff;
  text-decoration: none;
}

.feature:active {
  transform: translateY(-1px);
}

.feature:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.feature__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.6rem;
}

.feature__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.feature__arrow {
  margin-left: auto;
  font-size: 1.15rem;
  opacity: 0.85;
  transition: transform 0.18s var(--ease);
}

.feature:hover .feature__arrow {
  transform: translate(3px, -3px);
}

/* ---- List heading ---- */
.list-heading {
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---- Compact link list ---- */
.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li {
  min-width: 0;
}

.link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 64px;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.link:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-card);
  color: var(--brand-deep);
  transform: translateY(-2px);
  text-decoration: none;
}

.link:active {
  transform: translateY(0);
}

.link__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--tint);
  color: var(--brand);
  font-size: 1.15rem;
}

.link__label {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.link__arrow {
  flex: none;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}

.link:hover .link__arrow {
  color: var(--brand);
  transform: translate(2px, -2px);
}

/* ---- Colophon ---- */
.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.social {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand);
  font-size: 1.1rem;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease),
    color 0.18s var(--ease);
}

.social-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  transform: translateY(-2px);
  text-decoration: none;
}

.social-btn:active {
  transform: translateY(0);
}

.credit {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- Satu momen gerak: seluruh isi naik sekali saat muat ---- */
.shell {
  animation: rise 0.45s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .links {
    grid-template-columns: 1fr;
  }

  .mark {
    width: 52px;
    height: 52px;
    padding: 6px;
  }

  .feature {
    gap: 1rem;
  }

  .colophon {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .masthead {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .feature__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
