/* ricky.irfandi.id. Same tokens and type as bondowosopedia.irfandi.id. */

@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url(/assets/fonts/nunito-sans-regular.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url(/assets/fonts/nunito-sans-semibold.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url(/assets/fonts/nunito-sans-bold.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 800; font-display: swap; src: url(/assets/fonts/nunito-sans-extrabold.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 900; font-display: swap; src: url(/assets/fonts/nunito-sans-black.woff2) format("woff2"); }

:root {
  --cream: #FFFAF5;
  --surface: #FFFEFC;
  --ink: #26372B;
  --muted: #718075;
  --green: #315B3D;
  --green-light: #6F9271;
  --green-dark: #244631;
  --night: #17251B;
  --sage: #AFC7A8;
  --sage-soft: #EAF3E6;
  --peach-soft: #FFF0E5;
  --blue-soft: #EAF3F7;
  --lilac-soft: #F2EAF7;
  --honey-soft: #FEF6E0;
  --honey: #F4C566;
  --line: #E7EDE5;
  --radius: 28px;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.08; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; }
h3 { font-size: 24px; font-weight: 900; }
p { margin: 0; }
::selection { background: var(--honey); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head p:last-child { margin-top: 16px; color: var(--muted); font-size: 19px; }
.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, transform .4s var(--ease); }
.nav.is-scrolled { background: rgba(255, 250, 245, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 19px; letter-spacing: -.01em; }
.mono { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 900; font-size: 15px; letter-spacing: .02em; box-shadow: 0 6px 14px -8px rgba(23, 37, 27, .6); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { text-decoration: none; font-weight: 800; font-size: 15px; background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px; transition: transform .2s var(--spring), background .2s; }
.nav__cta:hover { transform: translateY(-2px); background: var(--green-dark); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 16px; padding: 14px 22px; border-radius: 999px; transition: transform .25s var(--spring), box-shadow .25s, background .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--solid { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(23, 37, 27, .55); }
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -14px rgba(23, 37, 27, .6); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn--ghost:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--sage), 0 14px 26px -16px rgba(38, 55, 43, .4); }

/* ---------- contours ---------- */
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contours path { fill: none; stroke: var(--green-light); stroke-width: 1.2; opacity: .3; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero .contours { opacity: .55; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7.4vw, 96px); font-weight: 900; letter-spacing: -.035em; line-height: .98; }
.hero h1 em { font-style: normal; color: var(--green-light); }
.hero__lead { margin-top: 26px; max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.hero__lead b { color: var(--ink); }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__card { position: relative; background: #fff; border-radius: 34px; padding: 30px; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(38, 55, 43, .45); rotate: 2deg; }
.hero__card .mono { width: 76px; height: 76px; border-radius: 24px; font-size: 28px; }
.hero__card h2 { font-size: 24px; margin-top: 20px; }
.hero__card > p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 16px; background: var(--tint, var(--sage-soft)); }
.facts li span { font-size: 18px; width: 22px; text-align: center; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 800; color: var(--green); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; box-shadow: 0 0 0 4px rgba(76, 175, 80, .2); animation: ping 2s ease-out infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 7px rgba(76, 175, 80, 0); } }

/* ---------- about ---------- */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.about__body p { font-size: 19px; color: var(--muted); }
.about__body p + p { margin-top: 18px; }
.about__body b { color: var(--ink); }
.stack { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 800; font-size: 14px; }

/* ---------- work ---------- */
.feature { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: var(--green); color: #fff; border-radius: 36px; padding: clamp(28px, 5vw, 60px); overflow: hidden; }
.feature .contours path { stroke: #fff; opacity: .1; }
.feature__body { position: relative; }
.feature__app { display: flex; align-items: center; gap: 14px; }
.feature__app img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.feature__app small { display: block; color: var(--sage); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.feature__app b { font-size: 22px; font-weight: 900; }
.feature h3 { margin-top: 24px; font-size: clamp(28px, 3.4vw, 40px); }
.feature p { margin-top: 14px; color: #CFE0D2; font-size: 18px; max-width: 480px; }
.feature .tags li { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.feature__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.feature__links .btn--solid { background: #fff; color: var(--ink); }
.feature__links .btn--ghost { background: transparent; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.feature__art { position: relative; display: flex; justify-content: center; height: 100%; min-height: 360px; }
.shot { width: 220px; border-radius: 30px; padding: 8px; background: linear-gradient(145deg, #2b3a30, #0f1712 55%, #24332a); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.shot img { border-radius: 23px; width: 100%; }
.feature__art .shot { position: absolute; top: 0; rotate: 4deg; }

.tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 11px; border-radius: 999px; background: var(--sage-soft); font-weight: 800; font-size: 12.5px; }

.grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 26px; text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--spring), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 30px 44px -30px rgba(38, 55, 43, .5); }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__icon { width: 60px; height: 60px; border-radius: 18px; background: var(--tint, var(--sage-soft)); display: grid; place-items: center; overflow: hidden; }
.card__icon img { width: 100%; height: 100%; object-fit: cover; }
.card__icon--pad img { width: 78%; height: 78%; object-fit: contain; }
.card__kind { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin-top: 20px; font-size: 22px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; flex: 1; }
.card__go { margin-top: 18px; font-weight: 800; font-size: 14px; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.card__go svg { width: 14px; height: 14px; transition: translate .25s var(--spring); }
.card:hover .card__go svg { translate: 4px 0; }
.card--wide { grid-column: span 2; flex-direction: row; gap: 26px; align-items: center; }
.card--wide .card__text { flex: 1; display: flex; flex-direction: column; }
.card--wide .shot { width: 150px; border-radius: 24px; padding: 6px; rotate: -3deg; flex: none; }
.card--wide .shot img { border-radius: 19px; }
.grid .card:nth-child(3n+2) { --delay: .06s; } .grid .card:nth-child(3n) { --delay: .12s; }

/* ---------- writing ---------- */
.writing { background: var(--honey-soft); }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-link { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center; text-decoration: none; background: #fff; border-radius: 24px; padding: 24px 28px; box-shadow: 0 0 0 1px rgba(38, 55, 43, .06); transition: transform .3s var(--spring), box-shadow .3s; }
.post-link:hover { transform: translateX(6px); box-shadow: 0 0 0 1px rgba(38, 55, 43, .1), 0 20px 34px -24px rgba(38, 55, 43, .45); }
.post-link time { font-size: 14px; font-weight: 800; color: var(--muted); }
.post-link h3 { font-size: 22px; }
.post-link p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.post-link .arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--honey-soft); transition: background .2s; }
.post-link:hover .arrow { background: var(--honey); }
.post-link .arrow svg { width: 18px; height: 18px; }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: clamp(90px, 11vw, 150px) 0; }
.contact .contours path { stroke: var(--sage); opacity: .14; }
.contact__inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.contact .eyebrow { color: var(--sage); }
.contact h2 { font-size: clamp(36px, 5.6vw, 64px); }
.contact__lead { margin-top: 18px; color: #B9C9BC; font-size: 19px; }
.mail { display: inline-block; margin-top: 30px; font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; color: #fff; text-decoration: none; border-bottom: 3px solid var(--honey); padding-bottom: 2px; transition: color .2s; }
.mail:hover { color: var(--honey); }
.socials { list-style: none; margin: 40px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.socials a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 15px; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); transition: background .2s, transform .25s var(--spring); }
.socials a:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.socials small { color: #9FB2A3; font-weight: 700; }

.foot { background: var(--night); color: #9FB2A3; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 26px; flex-wrap: wrap; }
.foot a { color: #fff; text-decoration: none; font-weight: 700; }

/* ---------- article ---------- */
.article { padding: 140px 24px 100px; position: relative; }
.article__head { max-width: 720px; margin: 0 auto; }
.back { display: flex; width: fit-content; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.article h1 { font-size: clamp(36px, 5.6vw, 58px); font-weight: 900; letter-spacing: -.03em; }
.meta { margin-top: 18px; color: var(--muted); font-weight: 700; font-size: 15px; }
.prose { max-width: 720px; margin: 44px auto 0; font-size: 19px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.9em; }
.prose a { color: var(--green); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86em; background: var(--sage-soft); padding: 2px 6px; border-radius: 6px; }
.prose blockquote { margin-left: 0; padding: 18px 22px; border-radius: 18px; background: var(--honey-soft); font-weight: 700; }
.article__end { max-width: 720px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.article__end p { color: var(--muted); font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .about__grid, .feature { grid-template-columns: 1fr; }
  .hero__card { max-width: 420px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: 1 / -1; }
  .feature__art { min-height: 0; }
  .feature__art .shot { position: relative; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner { padding: 12px 16px; }
  .nav__cta { margin-left: auto; }
  .wrap { padding: 0 16px; }
  .hero { padding: 104px 0 64px; min-height: 0; }
  .hero__card { rotate: 0deg; padding: 24px; }
  .grid { grid-template-columns: 1fr; }
  .card--wide { flex-direction: column; align-items: stretch; }
  .card--wide .shot { display: none; }
  .feature { border-radius: 28px; }
  .shot { width: 190px; }
  .post-link { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
  .post-link .arrow { display: none; }
  .socials a { padding: 11px 15px; }
  .prose { font-size: 17.5px; }
  .article { padding: 110px 16px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
