/* riyuner.id — monochrome look carried over from the original Next.js/Tailwind site. */

:root {
  --black: #000;
  --ink: #111827;      /* gray-900 */
  --heading: #1a1a1a;
  --text: #374151;     /* gray-700 */
  --muted: #4b5563;    /* gray-600 */
  --faint: #6b7280;    /* gray-500 */
  --line: #e5e7eb;     /* gray-200 */
  --line-strong: #d1d5db; /* gray-300 */
  --alt: #f9fafb;      /* gray-50 */
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 48rem; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.25rem; color: var(--muted); line-height: 1.65; margin-bottom: 2rem; }
.label { font-size: .875rem; font-weight: 700; letter-spacing: .1em; margin-bottom: 1rem; }
.rule { width: 4rem; height: .25rem; background: var(--black); margin-bottom: 2rem; }
.rule.center { margin-left: auto; margin-right: auto; }
.grayscale { filter: grayscale(1); transition: filter .5s; }
.grayscale:hover { filter: grayscale(0); }

/* ---- top navigation ---- */
.topnav { position: fixed; top: 0; width: 100%; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.topnav-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; height: 5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; text-decoration: none; }
.brand span { font-weight: 300; }
.menu { display: flex; gap: .25rem; }
.menu a { position: relative; padding: .5rem 1.25rem; font-size: .875rem; font-weight: 500; letter-spacing: .025em; color: var(--faint); text-decoration: none; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--black); transform: scaleX(0); transition: transform .2s; }
.menu a:hover, .menu a.active { color: var(--ink); }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; background: none; border: 0; padding: .25rem; cursor: pointer; font-size: 1.5rem; color: var(--ink); }

@media (max-width: 1023px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; top: 5rem; left: 0; right: 0; flex-direction: column; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem; }
  .menu.open { display: flex; }
  .menu a { padding: .75rem 1rem; color: var(--text); border-radius: .25rem; }
  .menu a::after { display: none; }
  .menu a.active { background: #f3f4f6; color: var(--ink); }
}

/* ---- section dot navigation (wide screens) ---- */
.dotnav { display: none; }
@media (min-width: 1280px) {
  .dotnav { display: flex; flex-direction: column; gap: 1rem; position: fixed; right: 2rem; top: 50%; transform: translateY(-50%); z-index: 40; }
  .dotnav a { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; text-decoration: none; }
  .dotnav-label { font-size: .75rem; font-weight: 500; letter-spacing: .1em; opacity: 0; transition: opacity .2s; }
  .dotnav a:hover .dotnav-label, .dotnav a.active .dotnav-label { opacity: 1; }
  .dot { width: .75rem; height: .75rem; border-radius: 9999px; border: 2px solid #9ca3af; transition: all .2s; }
  .dotnav a:hover .dot { border-color: var(--black); transform: scale(1.1); }
  .dotnav a.active .dot { border-color: var(--black); background: var(--black); transform: scale(1.25); }
}

/* ---- buttons ---- */
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: 1rem 2rem; font-weight: 500; letter-spacing: .025em; text-decoration: none; border: 2px solid var(--black); transition: background .2s, color .2s; }
.btn-solid { background: var(--black); color: #fff; }
.btn-solid:hover { background: #1f2937; border-color: #1f2937; }
.btn-outline { background: #fff; color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-lg { padding: 1.25rem 2.5rem; }

/* ---- home ---- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 5rem 0 0; }
.hero-grid { display: grid; gap: 4rem; align-items: center; width: 100%; }
.eyebrow { font-size: .875rem; font-weight: 500; letter-spacing: .1em; color: var(--faint); margin-bottom: .5rem; }
.hero-name { font-size: 3.75rem; font-weight: 700; letter-spacing: -.025em; line-height: 1; margin-bottom: 1.5rem; }
.meta-list { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: var(--muted); }
.meta-list div { display: flex; align-items: center; gap: .5rem; }
.meta-list a { text-decoration: none; }
.meta-list a:hover { text-decoration: underline; }
.hero-photo-wrap { display: none; position: relative; }
.hero-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: #f3f4f6; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.corner { position: absolute; width: 4rem; height: 4rem; border-color: #fff; border-style: solid; opacity: .5; }
.corner-tr { top: 1rem; right: 1rem; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 1rem; left: 1rem; border-width: 0 0 2px 2px; }
.hero-photo-frame { position: absolute; right: -1.5rem; bottom: -1.5rem; width: 8rem; height: 8rem; border: 4px solid var(--black); z-index: -1; }

.section { padding: 8rem 0; }
.section-alt { background: var(--alt); }
.section h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.two-col { display: grid; gap: 4rem; }
.about-photo { position: relative; aspect-ratio: 4 / 5; margin-top: 1rem; }
.about-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.about-photo-frame { position: absolute; left: -1rem; bottom: -1rem; width: 100%; height: 100%; border: 2px solid var(--black); }
.about-text { font-size: 1.125rem; color: var(--text); line-height: 1.75; }
.about-text > p { margin-bottom: 1.5rem; }
.about-extras { display: grid; gap: 2rem; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.about-extras p { font-size: 1rem; }
.chevron-list li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; }
.chevron-list .icon { margin-top: .3em; }
.chevron-list.small { font-size: .875rem; color: var(--text); margin-top: 1rem; }

.timeline { display: flex; flex-direction: column; gap: 3rem; }
.timeline-item { position: relative; border-left: 2px solid var(--line); padding-left: 2rem; }
.timeline-dot { position: absolute; left: -.5625rem; top: 0; width: 1rem; height: 1rem; border-radius: 9999px; background: var(--black); }
.timeline-item h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; }
.timeline-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.timeline-when { font-size: .875rem; text-align: right; }
.company { font-weight: 500; color: var(--text); }

.cards { display: grid; gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); padding: 1.5rem; transition: border-color .2s; }
.card:hover { border-color: var(--black); }
.card-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.card h3 { font-size: 1.125rem; font-weight: 700; }
.card p { font-size: .9375rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .25rem .625rem; font-size: .75rem; font-weight: 500; letter-spacing: .025em; border: 1px solid var(--line-strong); }
.chip-round { border-radius: 9999px; background: var(--alt); border-color: var(--line); padding: .25rem .75rem; }
.skills-grid { display: grid; gap: 2.5rem; }

.contact h2.big { font-size: 3rem; font-weight: 700; margin-bottom: 2rem; }
.footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .875rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

@media (min-width: 768px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .about-extras { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
  .topnav-inner { padding: 0 3rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo-wrap { display: block; }
  .hero-name { font-size: 4.5rem; }
  .two-col { grid-template-columns: 1fr 2fr; }
}

/* ---- blog list ---- */
.blog { padding-top: 5rem; min-height: 100vh; }
.blog-header { padding: 3rem 0; }
.blog-header h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.blog-header .rule { margin-bottom: 1.5rem; }
.blog-stats { display: flex; gap: 1.5rem; font-size: .875rem; color: var(--faint); }
.blog-stats span { display: inline-flex; align-items: center; gap: .5rem; }
.bullet { width: .5rem; height: .5rem; border-radius: 9999px; background: var(--black); }
.empty { text-align: center; padding: 5rem 0; color: var(--faint); }
.post-list { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 5rem; }
.post-card a { display: block; padding: 1.25rem; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.post-card a:hover { border-color: var(--black); }
.post-card a:hover h3 { text-decoration: underline; }
.post-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.post-card-head h3 { font-size: 1.25rem; font-weight: 700; }
.post-card-head time { white-space: nowrap; }
.excerpt { color: var(--text); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-foot { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.post-card-foot .muted { display: inline-flex; align-items: center; gap: .25rem; color: var(--faint); }
.read { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 500; color: var(--black); text-decoration: none; transition: gap .2s; }
.post-card a:hover .read, a.read:hover { gap: .5rem; }
.notfound { padding: 6rem 0; }
.notfound h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }

/* ---- blog post ---- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: #f3f4f6; z-index: 60; }
.progress-bar { height: 100%; width: 0; background: var(--black); transition: width .15s; }
.post { padding-top: 5rem; }
.post-container { max-width: 75rem; padding-top: 2rem; padding-bottom: 3rem; }
.back { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); text-decoration: none; margin-bottom: 2rem; }
.back:hover { color: var(--black); }
.post-grid { display: grid; gap: 4rem; }
.post-main { min-width: 0; max-width: 42.5rem; }
.post-header { margin-bottom: 3rem; }
.post-meta { display: flex; align-items: center; gap: 1rem; color: var(--faint); margin-bottom: 1.5rem; }
.post-meta time, .post-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.post-meta .sep { color: var(--line-strong); }
.post-header h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; color: var(--heading); margin-bottom: 1.5rem; }
.post-header .lead { margin-bottom: 0; }
.post-header .chips { margin-top: 2rem; }
.toc { display: none; }
@media (min-width: 640px) { .post-header h1 { font-size: 3rem; } }
@media (min-width: 1024px) {
  .post-header h1 { font-size: 3.75rem; }
  .post-grid { grid-template-columns: minmax(0, 1fr) 16rem; }
  .toc { display: block; }
  .toc-inner { position: sticky; top: 7rem; }
}
.toc a { display: block; padding: .25rem 0 .25rem .75rem; font-size: .875rem; color: var(--faint); text-decoration: none; border-left: 2px solid var(--line); }
.toc a.sub { padding-left: 1.5rem; }
.toc a:hover, .toc a.active { color: var(--black); border-left-color: var(--black); }

.prose { font-size: 1.125rem; line-height: 1.8; color: var(--text); }
.prose h1, .prose h2, .prose h3, .prose h4 { font-weight: 700; color: var(--heading); letter-spacing: -.02em; scroll-margin-top: 6.25rem; }
.prose h1 { font-size: 2.5rem; margin: 3rem 0 1.5rem; line-height: 1.2; }
.prose h2 { font-size: 2rem; margin: 2.5rem 0 1rem; line-height: 1.3; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.prose h3 { font-size: 1.5rem; margin: 2rem 0 .75rem; line-height: 1.4; }
.prose h4 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }
.prose p { margin: 0 0 1.5rem; }
.prose a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5rem; }
.prose blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 4px solid var(--black); font-style: italic; color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .875em; background: #f3f4f6; padding: .15em .4em; border-radius: .25rem; }
.prose pre { margin: 0 0 1.5rem; padding: 1.25rem; overflow-x: auto; background: #f6f8fa; border: 1px solid var(--line); border-radius: .5rem; font-size: .875rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }
.prose th { background: var(--alt); font-weight: 600; }
.prose img { margin: 2rem auto; border-radius: .5rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.prose input[type="checkbox"] { margin-right: .5rem; }

.author { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 4rem; padding: 2rem; background: var(--alt); border-radius: .5rem; border-top: 1px solid var(--line); }
.author img { width: 4rem; height: 4rem; border-radius: 9999px; object-fit: cover; }
.author h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
.author p { margin-bottom: 1rem; line-height: 1.6; }

/* ---- cookie consent ---- */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; max-width: 40rem; margin: 0 auto; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12); font-size: .875rem; color: var(--text); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 .75rem; }
.consent a { text-decoration: underline; }
.consent-actions { display: flex; gap: .5rem; }
.consent button { padding: .5rem 1rem; font: inherit; font-weight: 600; border: 2px solid var(--black); background: var(--black); color: #fff; cursor: pointer; }
.consent button.secondary { background: #fff; color: var(--black); }

/* ---- footer links on every page ---- */
.site-meta { display: flex; justify-content: center; gap: 1.5rem; padding: 1.5rem 1rem 2rem; font-size: .8125rem; color: var(--faint); }
.site-meta a { color: inherit; }
.site-meta .link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
