/*
Theme Name: Lentera
Theme URI: https://github.com/
Author: Ihsan F.
Author URI: https://example.com
Description: Tema personal minimalis untuk designer & developer. Halaman depan berupa surat pembuka dengan tombol tautan (atau gaya majalah), halaman blog berbaris, lalu satu kolom, tipografi humanis, meta tanggal di kolom kiri, dark mode, dukungan micropost tanpa judul, dan CTA langganan email. Seluruh teks, warna, dan tautan diatur lewat Appearance → Customize. Tanpa page builder, tanpa plugin wajib, tanpa build step.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lentera
Tags: blog, one-column, custom-colors, custom-menu, custom-logo, dark-mode, editor-style, block-patterns, translation-ready, rtl-language-support
*/

/* ==========================================================================
   1. Token warna & tipografi
   Nilai di sini adalah fallback. Customizer menimpanya lewat <style> inline.
   ========================================================================== */

:root {
  --brand-color: #c8482f;
  --brand-color-dark: #9a3523;
  --brand-color-translucent: rgba(200, 72, 47, .5);
  --link-color: #3b30cf;
  --text-color: #444;
  --heading-text-color: #222;
  --background-color: #fcfcfc;
  --background-color-translucent: rgba(252, 252, 252, .9);
  --grey-color: rgba(68, 68, 68, .6);
  --grey-color-translucent: rgba(68, 68, 68, .2);
  --shadow-color: rgba(200, 72, 47, .28);
  --selection-color: rgba(200, 72, 47, .22);

  --font-body: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 45.161290328rem;
  --gutter: 1rem;
}

[data-theme="night"] {
  --brand-color: #fdcda0;
  --brand-color-dark: #fab060;
  --brand-color-translucent: rgba(253, 205, 160, .5);
  --link-color: #6ba7f5;
  --text-color: #ccc;
  --heading-text-color: #fde4c8;
  --background-color: #171717;
  --background-color-translucent: rgba(23, 23, 23, .9);
  --grey-color: rgba(204, 204, 204, .6);
  --grey-color-translucent: rgba(204, 204, 204, .2);
  --shadow-color: rgba(253, 205, 160, .3);
  --selection-color: rgba(253, 205, 160, .25);
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub,
sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  margin: 0;
  padding: 0;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section { display: block; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
*, *::before, *::after { box-sizing: border-box; }

::-moz-selection { background: var(--selection-color); }
::selection { background: var(--selection-color); }

/* ==========================================================================
   3. Dasar
   ========================================================================== */

html, body { margin: 0; padding: 0; width: 100%; }

@media (min-width: 375px) {
  html { font-size: 1.25em; }
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.375;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .125s ease-in-out, color .125s ease-in-out;
}

p, ul, ol, dd { margin: 1.5em 0; line-height: 1.375; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .25em; }

h1, h2, h3, h4, h5, h6, legend {
  color: var(--heading-text-color);
  font-family: var(--font-heading);
  font-weight: 900;
  font-kerning: auto;
  text-wrap: balance;
}

h1 > a, h2 > a, h3 > a, h4 > a, h5 > a, h6 > a,
h1 > a:visited, h2 > a:visited, h3 > a:visited,
h4 > a:visited, h5 > a:visited, h6 > a:visited { color: var(--heading-text-color); }

h1 > a:hover, h1 > a:focus, h2 > a:hover, h2 > a:focus,
h3 > a:hover, h3 > a:focus, h4 > a:hover, h4 > a:focus,
h5 > a:hover, h5 > a:focus, h6 > a:hover, h6 > a:focus { color: var(--brand-color); }

h1 { font-size: 1.5rem; line-height: 1.125; }
@media (min-width: 768px) { h1 { font-size: 2rem; } }

h2 { font-size: 1.25rem; line-height: 1.2; margin: 1.5rem 0; }
@media (min-width: 768px) { h2 { font-size: 1.5rem; } }

h3 { font-size: 1.0625rem; line-height: 1.25; margin: 1.5rem 0 .5rem; }
h4, h5, h6 { font-size: 1rem; margin: 1.5rem 0 .5rem; }
h5, h6 { text-transform: uppercase; letter-spacing: .06em; font-size: .8125rem; color: var(--grey-color); }

a { color: var(--link-color); text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--brand-color); }
a:focus-visible { outline: 1px dashed var(--brand-color); outline-offset: 2px; }

strong, b { font-weight: 700; }
em, i, cite, dfn { font-style: italic; }
small, .small { font-size: .75rem; line-height: 1.4; }

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid var(--grey-color-translucent);
  margin: 2em auto;
  width: 6rem;
}

blockquote {
  border-left: 2px solid var(--brand-color-translucent);
  color: var(--grey-color);
  font-style: italic;
  margin: 1.5em 0;
  padding-left: 1em;
}
blockquote p:first-child { margin-top: 0; }
blockquote p:last-child { margin-bottom: 0; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: .8125em; }
code { background: var(--grey-color-translucent); border-radius: .15rem; padding: .1em .3em; }
pre {
  background: var(--grey-color-translucent);
  border-radius: .25rem;
  margin: 1.5em 0;
  overflow-x: auto;
  padding: 1rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; }

table { width: 100%; margin: 1.5em 0; font-size: .9375em; }
th, td { border-bottom: 1px solid var(--grey-color-translucent); padding: .5em .75em; text-align: left; }
th { font-weight: 700; color: var(--heading-text-color); }

figure { margin: 1rem 0; position: relative; text-align: center; }
figure img { display: block; margin: 0 auto; }
figcaption { color: var(--grey-color); font-size: .75rem; margin-top: .5rem; text-align: center; }

abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
mark { background-color: var(--brand-color-translucent); color: inherit; }
del { text-decoration: line-through; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text { composes: sr-only; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ==========================================================================
   4. Tombol & form
   ========================================================================== */

.btn {
  background: none;
  border: 0;
  color: var(--brand-color);
  font-family: var(--font-body);
  font-size: .75em;
  font-weight: 900;
  letter-spacing: .125em;
  padding: .25em 0;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all .175s ease-in-out;
}

.btn:hover, .btn:focus {
  color: var(--text-color);
  text-decoration: none;
  text-shadow: 1px 1px 0 var(--background-color), 2px 2px 0 var(--shadow-color), 3px 3px 0 var(--background-color);
}

.btn:focus-visible { outline: 1px dashed var(--brand-color); outline-offset: 2px; }

.btn-bordered {
  background-color: var(--brand-color);
  color: var(--background-color) !important;
  display: inline-block;
  padding: .75em 1.25em;
  border-radius: .125rem;
  text-decoration: none !important;
}

.btn-bordered:hover, .btn-bordered:focus {
  background-color: var(--brand-color-dark) !important;
  color: var(--background-color) !important;
  text-shadow: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
  transform: scale(1.075) rotate(-1.25deg);
}

input[type="text"], input[type="email"], input[type="search"], input[type="url"],
input[type="tel"], input[type="password"], input[type="number"], textarea, select {
  background: transparent;
  border: 1px solid var(--grey-color-translucent);
  border-radius: .125rem;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: .875rem;
  padding: .6em .75em;
  max-width: 100%;
  transition: border-color .175s ease-in-out;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand-color);
  outline: none;
}

::placeholder { color: var(--grey-color); opacity: 1; }

.form-group { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.form-group input[type="email"] { flex: 1 1 14rem; }

/* ==========================================================================
   5. Layout: container & grid dua kolom (meta kiri, konten kanan)
   ========================================================================== */

.container {
  max-width: var(--measure);
  margin: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

@media (min-width: 768px) {
  .wrapper {
    display: grid;
    grid-template-columns:
      [left-col-start] minmax(6rem, 15%)
      [right-col-start] auto
      [right-col-end] minmax(6rem, 15%)
      [grid-end];
    grid-template-rows: [row-1] min-content [row-2] min-content [row-3] min-content [row-end];
  }

  .post__meta { grid-column: left-col-start; grid-row: row-1; align-self: end; }
  .post__heading { grid-column: right-col-start / grid-end; grid-row: row-1; align-self: end; }
  .page-header--blog .post__heading,
  .page-header--micro .post__heading { grid-column: right-col-start / right-col-end; }

  .post__content,
  .footer__content,
  .page__content { grid-column: right-col-start / right-col-end; grid-row: row-1 / row-end; }

  .post__heading + .post__content,
  .post__heading + .footer__content { grid-row: row-2 / row-end; }

  .post__photo { grid-column: left-col-start / grid-end; grid-row: row-2; }
  .post__photo + .post__content { grid-row: row-3; }
}

/* ==========================================================================
   6. Skip link
   ========================================================================== */

.skip-navigation {
  position: absolute;
  top: -4rem;
  right: 1rem;
  z-index: 10000;
  transition: top .125s ease-in-out;
}
.skip-navigation:focus { top: 1rem; }

/* ==========================================================================
   7. Header
   ========================================================================== */

.header {
  font-family: var(--font-body);
  padding-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

@media (min-width: 768px) {
  .header {
    display: grid;
    grid-template-columns:
      [left-col-start] minmax(6rem, 15%)
      [right-col-start] auto
      [right-col-end] min-content
      [grid-end];
    align-items: center;
    gap: 0;
  }
}

.logo {
  display: inline-block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.5rem;
  margin: 0 1rem 0 0;
  min-width: 44px;
  text-decoration: none;
}

@media (min-width: 768px) { .logo { margin-right: 0; width: 6rem; } }

.logo img {
  display: block;
  width: 69px;
  height: auto;
  border-radius: 50%;
  transition: transform .5s ease-in-out;
}

.logo a:hover img, .logo a:focus img { transform: rotate(-2.5deg) scale(1.125); }

.logo__link, .logo__link:visited {
  color: var(--heading-text-color);
  display: inline-block;
  text-decoration: none;
}
.logo__link:hover, .logo__link:focus { color: var(--brand-color); }

.logo__text { font-weight: 900; letter-spacing: -.01em; }

.header__tools { display: flex; align-items: center; gap: .25rem; }

.header__tagline {
  color: var(--grey-color);
  font-size: .75rem;
  letter-spacing: .02em;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .header { grid-template-rows: auto auto; align-items: end; }
  .logo { grid-column: left-col-start; grid-row: 1 / -1; align-self: center; }
  .menu { grid-column: right-col-start; grid-row: 1; }
  .header__tagline { grid-column: right-col-start; grid-row: 2; text-align: left; padding-left: .5rem; margin-top: .1rem; }
  .header__tools { grid-column: right-col-end; grid-row: 1 / -1; align-self: center; justify-self: end; }
}

/* Menu */
.menu { flex: 1; }
.menu__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .menu__list { margin-left: -.3333rem; justify-content: flex-start; }
}

.menu__listitem { list-style: none; width: auto; margin: .5rem 0; }
@media (min-width: 768px) { .menu__listitem { margin-right: .5rem; } }

.menu__link {
  color: var(--text-color);
  display: inline-block;
  font-size: .925rem;
  padding: .5rem;
  position: relative;
  text-decoration: none !important;
  z-index: 1;
}

.menu__link::before, .menu__link::after {
  border: 1px solid var(--brand-color-translucent);
  content: "";
  display: block;
  position: absolute;
  top: .25rem; right: 0; bottom: .25rem; left: 0;
  z-index: -1;
  opacity: 0;
  transition: all .5s ease-in-out;
  border-radius: 53% 38% 38% 54% / 59% 43% 38% 46%;
  transform: translate(-2%, -2%) rotateZ(360deg);
}

.menu__link::after {
  border-radius: 50% 52% 68% 33% / 48% 60% 41% 53%;
  transform: translate(2%, 2%);
  right: -.25rem; left: -.25rem;
}

.menu__listitem--active > .menu__link,
.menu__link:hover,
.menu__link:focus { color: var(--brand-color); text-decoration: none; }

.menu__listitem--active > .menu__link::before,
.menu__listitem--active > .menu__link::after,
.menu__link:hover::before,
.menu__link:hover::after,
.menu__link:focus::before,
.menu__link:focus::after { opacity: .7; }

.menu__link:hover::before, .menu__link:focus::before { animation: wobble 2s ease-in-out infinite alternate; }
.menu__link:hover::after, .menu__link:focus::after { animation: wobble 11s ease-in-out infinite alternate-reverse; }

.menu__list:hover .menu__listitem--active > .menu__link::before,
.menu__list:hover .menu__listitem--active > .menu__link::after { opacity: 0; }
.menu__list:hover .menu__listitem--active:hover > .menu__link::before,
.menu__list:hover .menu__listitem--active:hover > .menu__link::after { opacity: 1; }

@media (min-width: 768px) {
  .menu__link::before { top: 0; bottom: 0; }
  .menu__link::after { top: -.125em; bottom: -.125em; }
}

@keyframes wobble {
  0%   { border-radius: 53% 38% 38% 54% / 59% 43% 38% 46%; transform: translate(-2%, -2%) rotateZ(360deg); }
  50%  { border-radius: 52% 70% 38% 54% / 84% 70% 66% 47%; }
  100% { border-radius: 50% 52% 68% 33% / 48% 60% 41% 53%; transform: translate(2%, 2%) rotateZ(360deg); }
}

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

/* Sub-menu: tampil datar, tanpa dropdown JS */
.menu__list .sub-menu {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0 0 0 .5rem;
}
.menu__list .sub-menu .menu__link { font-size: .8rem; opacity: .8; }

/* Toggle tema & pencarian */
.theme-toggle {
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--grey-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
  padding: 0;
  transition: color .175s ease-in-out, border-color .175s ease-in-out;
}
.theme-toggle:hover, .theme-toggle:focus { color: var(--brand-color); border-color: var(--brand-color-translucent); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="night"] .theme-toggle .icon-moon { display: block; }
[data-theme="night"] .theme-toggle .icon-sun { display: none; }

.search-form { display: flex; }
.search-form input[type="search"] { width: 100%; min-width: 8rem; }
.header .search-form input[type="search"] { font-size: .8125rem; }

/* ==========================================================================
   8. Feed & artikel
   ========================================================================== */

.page-header { margin-top: 2rem; }
.h-feed .date-section:first-child .post:first-child .page-header { margin-top: 0; }

.post__meta {
  color: var(--grey-color);
  font-family: var(--font-body);
  font-size: .75rem;
  line-height: 1.25;
  margin: 0 0 .25rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
}
.post__meta a { color: inherit; text-decoration: none; }
.post__meta a:hover { color: var(--brand-color); }
.post__meta > * + *::before { content: " · "; }

.post__title { font-weight: 400; text-wrap: balance; }
.post__title--strong { font-weight: 900; }
.post__title a { text-decoration: none; }

.post__subtitle {
  color: var(--grey-color);
  font-weight: 400;
  margin: .125em 0 0;
}

.post__content { margin-top: 1rem; }
.post__content > p:first-child,
.post__content > img:first-child,
.post__content > figure:first-child { margin-top: 0; }
.post__content p:last-of-type { display: inline; }

.post__content a, .footer a, .call-to-action a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .12em;
}
.post__content a:hover, .post__content a:focus,
.footer a:hover, .footer a:focus,
.call-to-action a:hover, .call-to-action a:focus {
  color: var(--brand-color);
  text-decoration-color: var(--brand-color);
}

.post__permalink {
  margin-left: .125rem;
  text-decoration: none !important;
  color: var(--grey-color);
  white-space: nowrap;
}
.post__permalink:hover, .post__permalink:focus { color: var(--brand-color); }

.post__photo { margin: 1rem auto 0; max-width: 45.304rem; }
.post__photo img { display: block; margin: 0 auto; max-width: 100%; height: auto; }

.post--micro { margin-bottom: 2rem; }
.post--micro p:last-of-type { display: inline; }
.post--micro a + p { margin-top: 0; }

/* Kelompok per tanggal: tanggal hanya tampil sekali di pos teratas hari itu */
.date-section { margin-bottom: 1rem; }
.date-section .post { margin-bottom: 2rem; }
.date-section .post:last-child { margin-bottom: 1rem; }
.post--no-date .post__meta .dt-published { display: none; }
.post--no-date .post__meta .dt-published + span::before { content: ""; }

.post__tags {
  color: var(--grey-color);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 1.5rem;
}
.post__tags a { color: inherit; text-decoration: none; }
.post__tags a:hover { color: var(--brand-color); }

.post__footer {
  border-top: 1px solid var(--grey-color-translucent);
  margin-top: 2.5rem;
  padding-top: 1rem;
}

/* Daftar arsip */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list__year {
  color: var(--grey-color);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-top: 2rem;
  text-transform: uppercase;
}
.post-list li { display: flex; gap: .75rem; align-items: baseline; margin-bottom: .5em; }
.post-list li time { color: var(--grey-color); font-size: .75rem; flex: 0 0 4.5rem; text-transform: uppercase; }
.post-list li a { text-decoration: none; color: var(--heading-text-color); }
.post-list li a:hover { color: var(--brand-color); }

/* Navigasi pos tunggal */
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.post-nav a { text-decoration: none; }
.post-nav__label { display: block; color: var(--grey-color); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }

/* ==========================================================================
   9. Paginasi
   ========================================================================== */

.pagination {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem auto 0;
  max-width: var(--measure);
  padding: 0 var(--gutter);
}

.pagination__numbers { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

.pagination__link {
  color: var(--grey-color);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}
.pagination__link:hover { color: var(--brand-color); }
.pagination__link--current-page { color: var(--brand-color); }

/* ==========================================================================
   10. CTA langganan & footer
   ========================================================================== */

.call-to-action { margin: 2rem auto; }
.call-to-action h2 { margin-bottom: 0; }
.call-to-action p { margin-top: .5em; }
.call-to-action .form-group { margin-top: 1rem; }
.call-to-action .bot-safe { position: absolute; left: -9999px; }

.footer { margin-top: 2rem; padding-bottom: .5rem; }
@media (min-width: 375px) { .footer { padding-bottom: 1rem; } }
@media (min-width: 768px) { .footer { padding-bottom: 2rem; } }
@media (max-width: 768px) { .footer br { display: none; } }

.footer__content { color: var(--text-color); }
.footer .small { color: var(--grey-color); margin: .75rem 0 0; }

.social-links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.social-links li { margin: 0; }
.social-links a {
  color: var(--grey-color);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.social-links a:hover, .social-links a:focus { color: var(--brand-color); }

/* ==========================================================================
   11. Komentar
   ========================================================================== */

.comments { margin-top: 3rem; }
.comments__title { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-color); font-weight: 700; }
.comment-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.comment-list ol.children { list-style: none; padding-left: 1.25rem; }
.comment-body { border-bottom: 1px solid var(--grey-color-translucent); padding: 1rem 0; }
.comment-meta { font-size: .75rem; color: var(--grey-color); text-transform: uppercase; letter-spacing: .04em; }
.comment-meta a { color: inherit; text-decoration: none; }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: .5rem; }
.comment-respond { margin-top: 2rem; }
.comment-form p { margin: .75rem 0; }
.comment-form label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-color); margin-bottom: .25rem; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea { width: 100%; }

/* ==========================================================================
   12. Blok WordPress & utilitas keselarasan
   ========================================================================== */

.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.alignwide, .alignfull { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); max-width: none; width: auto; }
@media (min-width: 768px) {
  .alignwide { margin-left: -23.4%; margin-right: -23.4%; }
  .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
}

.wp-block-image figcaption { color: var(--grey-color); font-size: .75rem; }
.wp-block-separator { width: 6rem; border-top: 1px solid var(--grey-color-translucent); }
.wp-block-pullquote, .wp-block-quote { border-left: 2px solid var(--brand-color-translucent); padding-left: 1em; }
.wp-block-button__link { background-color: var(--brand-color); color: var(--background-color); border-radius: .125rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--grey-color); font-size: .75rem; text-align: center; }
.sticky .post__title::after { content: " ★"; color: var(--brand-color); }
.bypostauthor > .comment-body { border-left: 2px solid var(--brand-color-translucent); padding-left: .75rem; }

.video {
  position: relative;
  padding-top: 56.25%;
  margin: 1.5rem calc(var(--gutter) * -1);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 404 & hasil pencarian kosong */
.entry-none { margin-top: 2rem; }
.entry-none .search-form { margin-top: 1rem; max-width: 20rem; }

/* ==========================================================================
   13. Halaman depan
   Memakai grid .wrapper yang sama dengan artikel: label seksi jatuh ke kolom
   kiri (tempat tanggal biasanya), isinya ke kolom teks.
   ========================================================================== */

.home-hero { margin-top: 1rem; }

.home-hero__title {
  font-size: 1.625rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .home-hero__title { font-size: 2.25rem; }
  .home-hero__body { grid-column: right-col-start / right-col-end; }
}

.home-hero__text { margin-top: 1rem; }
.home-hero__text p { margin: .75em 0; }
.home-hero__text p:first-child { margin-top: 0; }

.home-hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Seksi */

.home-section { margin-top: 3rem; }

.section__label {
  color: var(--grey-color);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.25;
  margin: 0 0 .75rem;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .section__label { grid-column: left-col-start; grid-row: row-1; margin-bottom: 0; padding-top: .3rem; }
  .section__body { grid-column: right-col-start / right-col-end; grid-row: row-1 / row-end; }
}

.section__more { margin: 1.25rem 0 0; }

/* Tulisan pilihan */

.featured__thumb { display: block; margin-bottom: 1rem; }
.featured__thumb img { display: block; width: 100%; height: auto; }

.featured__title {
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

@media (min-width: 768px) { .featured__title { font-size: 1.625rem; } }

.featured__title a { text-decoration: none; }
.featured__excerpt { margin-top: .75rem; }
.featured__more { margin: 1rem 0 0; }

/* Catatan pendek di halaman depan */

.home-micro {
  border-left: 2px solid var(--grey-color-translucent);
  padding-left: 1rem;
  margin-bottom: 1.75rem;
}

.home-micro:last-child { margin-bottom: 0; }
.home-micro .post__meta { margin-bottom: .35rem; }
.home-micro .post__content { margin-top: 0; }
.home-micro .post__content p:first-child { margin-top: 0; }

/* Karya */

.work-list { list-style: none; margin: 0; padding: 0; }

.work-list li {
  border-bottom: 1px solid var(--grey-color-translucent);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  margin: 0;
  padding: .85rem 0;
}

.work-list li:first-child { padding-top: 0; }
.work-list li:last-child { border-bottom: 0; }

.work-list__title {
  color: var(--heading-text-color);
  font-weight: 700;
  text-decoration: none;
}

a.work-list__title:hover, a.work-list__title:focus { color: var(--brand-color); }

.work-list__desc {
  color: var(--grey-color);
  font-size: .875rem;
  flex: 1 1 14rem;
}

/* ==========================================================================
   14. Aliran baca di halaman depan
   Pos tampil utuh dan berurutan, dipisah garis — halaman depan yang langsung
   menyodorkan bacaan, bukan cuplikan yang menggoda.
   ========================================================================== */

.home-read__head { margin-top: 3.25rem; align-items: center; }

.home-read__head .section__label { margin-bottom: .5rem; }

.section__rule { border-top: 1px solid var(--grey-color-translucent); }

@media (min-width: 768px) {
  .home-read__head .section__label { margin-bottom: 0; padding-top: 0; }
  .section__rule { grid-column: right-col-start / right-col-end; grid-row: row-1; }
}

.home-read { margin-top: 1.75rem; }

.home-read .post { margin-bottom: 0; }

.home-read .page-header { margin-top: 0; }

/* Judul besar sudah membawa ruangnya sendiri — badan teks tak perlu dijauhkan. */
.home-read .post__content { margin-top: .4rem; }

/* Judul di aliran baca sebesar judul halaman: ini bacaan, bukan daftar. */
.home-read .post__title {
  font-size: 1.5rem;
  line-height: 1.12;
}

@media (min-width: 768px) {
  .home-read .post__title { font-size: 1.875rem; }
}

/* Pemisah selebar kolom teks, bukan garis pendek di tengah. */
.read-sep hr {
  border-top: 1px solid var(--grey-color-translucent);
  margin: 3rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .read-sep hr { grid-column: right-col-start / right-col-end; grid-row: row-1; }
}

.post__respond {
  display: block;
  font-size: .75rem;
  letter-spacing: .08em;
  margin: 1.5rem 0 0;
  text-transform: uppercase;
}

.post__respond a {
  color: var(--grey-color);
  text-decoration: none;
}

.post__respond a:hover, .post__respond a:focus {
  color: var(--brand-color);
  text-decoration: underline;
}

.home-read__foot { margin-top: 3rem; }

.read-more {
  border-top: 1px solid var(--grey-color-translucent);
  margin: 0;
  padding-top: 1.5rem;
}

.read-more a { text-decoration: underline; text-underline-offset: .15em; }

@media (min-width: 768px) {
  .home-read__foot .read-more { grid-column: right-col-start / right-col-end; grid-row: row-1; }
}

/* ==========================================================================
   15. Halaman depan majalah
   Bingkai putih membulat di atas latar gelap, judul miring raksasa, orb foto,
   kartu bertakik, dan pil. Semua dibatasi ke body.is-mag — halaman lain tetap
   memakai tipografi satu kolom di atas.
   ========================================================================== */

/* Skala rem 16px di halaman ini; sisa tema memakai 20px. */
html:has(> body.is-mag) { font-size: 16px; }

.is-mag {
  --m-page: #1b1b1b;
  --m-bg: #ffffff;
  --m-ink: #0e0e0e;
  --m-muted: #5c5f62;
  --m-line: #e3e3e0;
  --m-soft: #f2f2ef;
  --m-accent: var(--mag-accent, #b7d3d6);
  --m-sand: #efe5d3;
  --m-blush: #f3d6d9;
  --m-stone: #e5e6e1;
  --m-r: 28px;
  --m-gut: clamp(1rem, 3vw, 2.5rem);
  --m-font: "Plus Jakarta Sans", var(--font-body);

  background: var(--m-page);
  color: var(--m-ink);
  font-family: var(--m-font);
  letter-spacing: -.01em;
}

[data-theme="night"] .is-mag {
  --m-page: #0a0a0a;
  --m-bg: #151616;
  --m-ink: #f1f1ee;
  --m-muted: #a4a7a9;
  --m-line: #2b2d2e;
  --m-soft: #1e2021;
  --m-sand: #3a3328;
  --m-blush: #43302f;
  --m-stone: #2a2c29;
}

.is-mag ::selection { background: var(--m-accent); color: #0e0e0e; }
.is-mag :focus-visible { outline: 2px solid var(--m-ink); outline-offset: 3px; }
.is-mag .skip-navigation { background: var(--m-ink); color: var(--m-bg) !important; border-radius: 999px; }

.mag-frame {
  background: var(--m-bg);
  border-radius: clamp(20px, 2.4vw, 36px);
  margin: clamp(8px, 2.2vw, 32px);
  overflow: clip;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Foto penuh di dalam kartu: blok, tanpa celah baseline di bawahnya. */
.is-mag .mag-orb img, .is-mag .mag-join__bg img, .is-mag .mag-feature__media img,
.is-mag .mag-side img, .is-mag .mag-card__img img { display: block; max-width: none; }

/* --- Pil, tombol bundar, label bertitik ---------------------------------- */

.mag-pill {
  align-items: center;
  border: 1.5px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font: 500 .9375rem/1 var(--m-font);
  gap: .5rem;
  letter-spacing: -.01em;
  padding: .55rem 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
.mag-pill--light { background: #fff; color: #0e0e0e; }
.mag-pill--dark { background: #0e0e0e; color: #fff; }
.mag-pill--line { border-color: currentColor; color: inherit; }
a.mag-pill:hover, a.mag-pill:focus { text-decoration: underline; text-underline-offset: .15em; }
a.mag-pill--light:hover, a.mag-pill--light:focus { color: #0e0e0e; }
a.mag-pill--dark:hover, a.mag-pill--dark:focus { color: #fff; }

.mag-dot { align-items: center; display: inline-flex; gap: .55rem; }
.mag-dot::before { background: currentColor; border-radius: 50%; content: ""; height: 5px; width: 5px; flex: none; }

.mag-arrow, .mag-plus, .mag-circle {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: none;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}
.mag-arrow { background: #fff; color: #0e0e0e; position: absolute; right: 1.75rem; bottom: 1.75rem; transition: transform .2s ease; z-index: 2; }
.mag-arrow svg, .mag-plus svg { height: 1.2rem; width: 1.2rem; }
.mag-arrow--top { bottom: auto; top: 1.75rem; }
.mag-arrow--line { background: none; border: 1.5px solid var(--m-line); color: var(--m-ink); position: static; }
a:hover > .mag-arrow, .mag-arrow:hover, .mag-card:hover .mag-arrow, .mag-feature:hover .mag-arrow { transform: rotate(45deg); }

.mag-btn {
  align-items: center;
  background: #0e0e0e;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font: 600 1.15rem/1 var(--m-font);
  height: 4.25rem;
  justify-content: center;
  letter-spacing: -.02em;
  padding: 0 3rem;
  text-decoration: none;
  transition: transform .2s ease;
}
.mag-btn:hover, .mag-btn:focus { transform: translateY(-2px); }

/* --- Header ------------------------------------------------------------- */

.is-mag .header {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 1rem 2.5rem;
  margin: 0;
  max-width: none;
  padding: clamp(1rem, 2.4vw, 1.9rem) var(--m-gut);
  position: relative;
  z-index: 20;
}

.is-mag .logo { margin: 0; width: auto; min-width: 0; }
.is-mag .logo__link, .is-mag .logo__link:visited { color: var(--m-ink); padding: 0; }
.is-mag .logo__link::before, .is-mag .logo__link::after { display: none; }
.is-mag .logo__text { font: italic 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1 var(--m-font); letter-spacing: -.06em; white-space: nowrap; }
.is-mag .logo__text::after { content: "."; }
.is-mag .logo img { width: 52px; }

.is-mag .header .menu { flex: 1; }
.is-mag .header .menu__list { gap: .25rem 2.25rem; justify-content: flex-start; margin: 0; }
.is-mag .header .menu__listitem { margin: 0; }
.is-mag .menu__link {
  color: var(--m-ink);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -.03em;
  padding: .35rem 0;
}
.is-mag .menu__link::before, .is-mag .menu__link::after { display: none; }
.is-mag .menu__link:hover, .is-mag .menu__link:focus,
.is-mag .menu__listitem--active > .menu__link { color: var(--m-ink); text-decoration: underline !important; text-underline-offset: .25em; }
.is-mag .menu__link sup { font-size: .62em; font-style: italic; margin-left: .15em; vertical-align: super; }
.is-mag .menu__list .sub-menu { display: none; }

.is-mag .header__tools { gap: .6rem; margin-left: auto; position: relative; }

.mag-circle { background: var(--m-ink); border: 0; color: var(--m-bg); cursor: pointer; }
.mag-circle svg { height: 1.4rem; width: 1.4rem; }

.is-mag .theme-toggle { border: 1.5px solid var(--m-line); color: var(--m-ink); height: 3.25rem; width: 3.25rem; }
.is-mag .theme-toggle:hover, .is-mag .theme-toggle:focus { border-color: var(--m-ink); color: var(--m-ink); }

.mag-menu-btn {
  background: none;
  border: 1.5px solid var(--m-ink);
  border-radius: 999px;
  color: var(--m-ink);
  cursor: pointer;
  font: 500 1.05rem/1 var(--m-font);
  height: 3.25rem;
  letter-spacing: -.02em;
  padding: 0 1.6rem;
}
.mag-menu-btn[aria-expanded="true"] { background: var(--m-ink); color: var(--m-bg); }

.mag-pop, .mag-drawer {
  background: var(--m-bg);
  border: 1px solid var(--m-line);
  border-radius: 22px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .35);
  position: absolute;
  z-index: 30;
}
.mag-pop[hidden], .mag-drawer[hidden] { display: none; }

.mag-pop { padding: .75rem; right: 0; top: calc(100% + .75rem); width: min(22rem, calc(100vw - 3rem)); }
.mag-pop .search-form input[type="search"] {
  border: 1.5px solid var(--m-line);
  border-radius: 999px;
  color: var(--m-ink);
  font: 400 1rem var(--m-font);
  padding: .8rem 1.2rem;
}
.mag-pop .search-form input[type="search"]:focus { border-color: var(--m-ink); }

.mag-drawer { left: var(--m-gut); padding: 1.5rem 1.75rem 1.75rem; right: var(--m-gut); top: calc(100% - .25rem); }
.mag-drawer ul { list-style: none; margin: 0; padding: 0; }
.mag-drawer__nav li { border-bottom: 1px solid var(--m-line); margin: 0; }
.mag-drawer__nav .menu__link {
  display: block;
  font: italic 600 clamp(1.75rem, 1.2rem + 2vw, 2.75rem)/1.1 var(--m-font);
  letter-spacing: -.05em;
  padding: .7rem 0;
}
.mag-drawer__social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem !important; }
.mag-drawer__social li { margin: 0; }
.mag-drawer__social .mag-pill { color: var(--m-ink); }

@media (max-width: 899px) {
  .is-mag .header .menu { display: none; }
}

@media (max-width: 599px) {
  .is-mag .header { gap: .75rem; }
  .is-mag .header__tools { gap: .4rem; }
  .mag-circle, .is-mag .theme-toggle, .mag-menu-btn { height: 2.75rem; }
  .mag-circle, .is-mag .theme-toggle { width: 2.75rem; }
  .mag-menu-btn { padding: 0 1.1rem; }
}

/* --- Judul seksi -------------------------------------------------------- */

.mag-section { padding: clamp(3.5rem, 7vw, 6rem) var(--m-gut) 0; }

.mag-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}

.is-mag .mag-title, .is-mag .mag-hero__title, .is-mag .mag-join__title {
  color: inherit;
  font-family: var(--m-font);
  margin: 0;
  text-wrap: balance;
}

.is-mag .mag-title {
  font-size: clamp(2.5rem, 1.2rem + 5vw, 5.75rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1;
}

.mag-head__link { color: var(--m-ink) !important; font-style: italic; font-weight: 500; text-decoration: none; }
.mag-head__link:hover, .mag-head__link:focus { text-decoration: underline; }

/* --- Hero & orb --------------------------------------------------------- */

.mag-hero { padding: clamp(2.5rem, 7vw, 6rem) var(--m-gut) 0; text-align: center; }

.is-mag .mag-hero__title {
  font-size: clamp(2.75rem, 1rem + 6.6vw, 7rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .98;
  margin-inline: auto;
  max-width: 16ch;
}

.mag-orbs {
  display: flex;
  gap: .6rem;
  justify-content: center;
  list-style: none;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  padding: 0;
}
.mag-orbs li { margin: 0; width: clamp(8rem, 15vw, 17.5rem); }

.mag-orb {
  align-items: center;
  aspect-ratio: 1.4;
  background: var(--m-stone);
  border-radius: 999px;
  color: #fff;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform .3s ease;
}
a.mag-orb:hover, a.mag-orb:focus { transform: scale(1.04) rotate(-2deg); }
.mag-orb img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.mag-orb--accent { background: var(--m-accent); }
.mag-orbs li:nth-child(4) .mag-orb--tint { background: var(--m-blush); }
.mag-orbs li:nth-child(2) .mag-orb--tint { background: var(--m-sand); }
.mag-orb__glyph { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25)); height: 34%; position: relative; width: 34%; }

@media (max-width: 599px) {
  .mag-orbs { display: grid; grid-template-columns: 1fr 1fr; }
  .mag-orbs li { width: auto; }
}

/* --- Takik: label putih yang menggigit sudut kartu ------------------------
   Dua sudut cekung dibuat dari radial-gradient selebar radius kartu. */

.mag-notch {
  background: var(--m-bg);
  border-bottom-right-radius: var(--m-r);
  color: var(--m-ink);
  left: 0;
  padding: 1.1rem 1.75rem 1.25rem 1.25rem;
  position: absolute;
  top: 0;
  z-index: 2;
}
.mag-notch::before, .mag-notch::after {
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--m-r) - .5px), var(--m-bg) var(--m-r));
  content: "";
  height: var(--m-r);
  position: absolute;
  width: var(--m-r);
}
.mag-notch::before { left: 100%; top: 0; }
.mag-notch::after { left: 0; top: 100%; }

.is-mag .mag-notch p { margin: 0; }
.mag-notch__num { font: italic 500 clamp(2rem, 1.5rem + 1.6vw, 2.9rem)/1 var(--m-font); letter-spacing: -.06em; }
.mag-notch__num small { font-size: .5em; letter-spacing: -.02em; }
.mag-notch__label { font: italic 700 clamp(2rem, 1.5rem + 1.6vw, 2.9rem)/1.1 var(--m-font); letter-spacing: -.06em; margin-top: .35rem !important; }

/* --- Kartu langganan ---------------------------------------------------- */

.mag-join {
  background: linear-gradient(160deg, var(--m-accent), color-mix(in srgb, var(--m-accent) 55%, #33474a));
  border-radius: var(--m-r);
  color: #fff;
  display: flex;
  flex-direction: column;
  margin: clamp(2rem, 4vw, 3rem) var(--m-gut) 0;
  min-height: clamp(30rem, 48vw, 38rem);
  overflow: hidden;
  position: relative;
}

.mag-join__bg { inset: 0; position: absolute; }
.mag-join__bg img { height: 100%; object-fit: cover; width: 100%; }
.mag-join__bg::after { background: linear-gradient(rgba(25, 36, 38, .3), rgba(25, 36, 38, .6)); content: ""; inset: 0; position: absolute; }

.mag-join__body {
  align-content: center;
  display: grid;
  flex: 1;
  gap: 1.25rem;
  justify-items: center;
  padding: 4.5rem 1.5rem 2rem;
  position: relative;
  text-align: center;
}

/* Di layar sempit takik menutupi bagian atas — isi turun di bawahnya. */
@media (max-width: 767px) {
  .mag-join__body { padding-top: 9.5rem; }
}

.is-mag .mag-join__title {
  color: #fff;
  font-size: clamp(2.75rem, 1.2rem + 5vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1;
}

.is-mag .mag-join__text { color: rgba(255, 255, 255, .9); margin: 0; max-width: 34rem; }

.mag-join__form, .mag-join__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin: .75rem 0 0 !important;
  width: min(100%, 48rem);
}

.is-mag .mag-join__form input[type="email"] {
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  color: #fff;
  flex: 1 1 18rem;
  font: 400 1.2rem var(--m-font);
  height: 4.25rem;
  letter-spacing: -.03em;
  padding: 0 1.75rem;
}
.is-mag .mag-join__form input[type="email"]::placeholder { color: rgba(255, 255, 255, .92); }
.is-mag .mag-join__form input[type="email"]:focus { background: rgba(255, 255, 255, .14); border-color: #fff; }

.mag-join__foot {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .6);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 clamp(1.25rem, 3vw, 2.5rem);
  padding: 1.25rem 0 1.5rem;
  position: relative;
}
.is-mag .mag-join__foot p { margin: 0; }
.mag-join__note { font-size: .95rem; letter-spacing: -.03em; }
.mag-join__note a { color: #fff !important; }
.mag-join__pills { display: flex; flex-wrap: wrap; gap: .4rem; }

/* --- Tulisan pilihan ---------------------------------------------------- */

.mag-picks {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
}

.mag-feature {
  background: var(--m-accent);
  border-radius: var(--m-r);
  min-height: clamp(28rem, 46vw, 44rem);
  overflow: hidden;
  position: relative;
}
.mag-feature__media { inset: 0; position: absolute; }
.mag-feature__media img { height: 100%; object-fit: cover; transition: transform .6s ease; width: 100%; }
.mag-feature:hover .mag-feature__media img { transform: scale(1.03); }

.mag-feature__pills, .mag-card__pills {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  left: clamp(1.25rem, 2.5vw, 2.5rem);
  position: absolute;
  top: clamp(1.25rem, 2.5vw, 2.5rem);
  z-index: 2;
}
.mag-feature__pills .mag-pill--line { color: #0e0e0e; }
.has-photo .mag-feature__pills .mag-pill--line { color: #fff; }

.mag-tab {
  background: var(--m-bg);
  border-radius: 22px;
  color: var(--m-ink);
  max-width: min(32rem, 58%);
  padding: 1rem 1.5rem 1.35rem;
  position: absolute;
  right: clamp(1.25rem, 2.5vw, 2.5rem);
  top: clamp(1.25rem, 2.5vw, 2.5rem);
  z-index: 2;
}
.mag-tab .mag-dot { font-size: .9rem; font-weight: 500; }
.is-mag .mag-tab__title {
  color: inherit;
  font: 500 clamp(1.5rem, 1rem + 1.6vw, 2.5rem)/1.1 var(--m-font);
  letter-spacing: -.05em;
  margin: .4rem 0 0;
}
.mag-tab__title a, .mag-card__title a { color: inherit !important; text-decoration: none; }
.mag-tab__title a:hover, .mag-card__title a:hover,
.mag-tab__title a:focus, .mag-card__title a:focus { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }

.mag-aside { display: grid; gap: clamp(1rem, 2.5vw, 2.5rem); grid-template-rows: auto 1fr; }

.mag-promo {
  background: var(--m-accent);
  border-radius: var(--m-r);
  color: #0e0e0e;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 21rem;
  padding: 1.75rem 2rem 2rem;
}
.mag-promo__top { align-items: flex-start; display: flex; justify-content: space-between; }
.mag-plus { background: #fff; color: #0e0e0e; }
.is-mag .mag-promo p { margin: 0; }
.mag-promo__kicker { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-top: .75rem !important; text-transform: uppercase; }
.is-mag .mag-promo__title { color: inherit; font: 500 clamp(1.6rem, 1.2rem + 1vw, 2.2rem)/1.12 var(--m-font); letter-spacing: -.05em; margin: 0; }
.mag-promo__link { align-self: flex-end; color: #0e0e0e !important; font-weight: 600; margin-top: auto; text-underline-offset: .2em; }

.mag-side {
  align-items: flex-end;
  background: var(--m-sand);
  border-radius: var(--m-r);
  display: flex;
  justify-content: center;
  min-height: 21rem;
  overflow: hidden;
  padding: 1.75rem;
  position: relative;
}
.mag-side img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }

.mag-count {
  align-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--m-ink);
  display: inline-flex;
  font-style: italic;
  height: 3.25rem;
  justify-content: center;
  position: absolute;
  right: 1.75rem;
  top: 1.75rem;
  width: 3.25rem;
}
.mag-side.has-photo .mag-count { color: #fff; }

.mag-bigpill {
  background: #fff;
  border-radius: 999px;
  color: #0e0e0e !important;
  font: 500 clamp(1.25rem, 1rem + .8vw, 1.6rem)/1 var(--m-font);
  letter-spacing: -.05em;
  padding: 1.35rem 2.4rem;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease;
}
.mag-bigpill:hover, .mag-bigpill:focus { transform: translateY(-3px); }

@media (max-width: 959px) {
  .mag-picks { grid-template-columns: 1fr; }
  .mag-aside { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}

@media (max-width: 639px) {
  .mag-aside { grid-template-columns: 1fr; }
  .mag-tab { bottom: 1rem; left: 1rem; max-width: none; right: 1rem; top: auto; }
  .mag-feature .mag-arrow { bottom: auto; right: 1rem; top: 1rem; }
  .mag-feature__pills { left: 1rem; top: 1rem; }
}

/* --- Tulisan terbaru ---------------------------------------------------- */

.mag-recent {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.8fr 1fr 1.1fr;
}

.mag-card__media { border-radius: var(--m-r); overflow: hidden; position: relative; }
.mag-card__img { aspect-ratio: .66; background: var(--m-accent); display: block; text-decoration: none !important; }
.mag-card:first-child .mag-card__img { aspect-ratio: 1.04; }
.mag-card:nth-child(4n + 2) .mag-card__img { background: var(--m-blush); }
.mag-card:nth-child(4n + 3) .mag-card__img { background: var(--m-stone); }
.mag-card:nth-child(4n + 4) .mag-card__img { background: var(--m-sand); }
.mag-card__img img { height: 100%; object-fit: cover; transition: transform .6s ease; width: 100%; }
.mag-card:hover .mag-card__img img { transform: scale(1.04); }

.mag-card__ph {
  align-items: center;
  color: rgba(14, 14, 14, .22);
  display: flex;
  font: italic 700 clamp(6rem, 12vw, 11rem)/1 var(--m-font);
  height: 100%;
  justify-content: center;
  letter-spacing: -.06em;
}
[data-theme="night"] .mag-card__ph { color: rgba(255, 255, 255, .18); }

.mag-card__pills { bottom: 1.75rem; flex-direction: column-reverse; top: auto; }

.mag-card__cat { color: var(--m-ink) !important; font-size: .95rem; font-weight: 500; margin-top: 1.1rem; text-decoration: none; }
.mag-card__cat:hover { text-decoration: underline; }
.is-mag .mag-card__title {
  color: var(--m-ink);
  font: 500 clamp(1.4rem, 1rem + 1vw, 2.1rem)/1.12 var(--m-font);
  letter-spacing: -.05em;
  margin: .5rem 0 0;
}

@media (max-width: 959px) {
  .mag-recent { grid-template-columns: 1fr 1fr; }
  .mag-card:first-child { grid-column: 1 / -1; }
  .mag-card:first-child .mag-card__img { aspect-ratio: 16 / 10; }
  .mag-card__img { aspect-ratio: .8; }
}

@media (max-width: 599px) {
  .mag-recent { gap: 2rem; grid-template-columns: 1fr; }
  .mag-card__img, .mag-card:first-child .mag-card__img { aspect-ratio: 4 / 3; }
}

/* --- Catatan pendek ----------------------------------------------------- */

.mag-notes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.mag-note { background: var(--m-soft); border-radius: var(--m-r); padding: 1.5rem 1.6rem 1.75rem; }
.mag-note .mag-pill { color: var(--m-ink); font-size: .85rem; }
.mag-note__body { font-size: 1.05rem; line-height: 1.5; margin-top: 1rem; }
.mag-note__body p { margin: 0 0 .75em; }
.mag-note__body p:last-of-type { display: inline; margin: 0; }
.mag-note__body a { color: var(--m-ink); }
.is-mag .post__permalink { color: var(--m-muted); }

/* --- Karya -------------------------------------------------------------- */

.mag-work { border-top: 1px solid var(--m-line); list-style: none; margin: 0; padding: 0; }
.mag-work li { border-bottom: 1px solid var(--m-line); margin: 0; }
.mag-work__row {
  align-items: center;
  color: var(--m-ink) !important;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding: 1.5rem 0;
  text-decoration: none;
}
.mag-work__title { font: 500 clamp(1.5rem, 1rem + 1.4vw, 2.4rem)/1.1 var(--m-font); letter-spacing: -.05em; }
.mag-work__desc { color: var(--m-muted); flex: 1 1 16rem; }
a.mag-work__row:hover .mag-work__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
a.mag-work__row:hover .mag-arrow--line { border-color: var(--m-ink); transform: rotate(45deg); }

/* --- Footer di atas latar gelap ----------------------------------------- */

.is-mag .footer {
  color: #c9cbcc;
  display: block;
  margin: 0;
  max-width: none;
  padding: clamp(1.5rem, 3vw, 2.5rem) calc(var(--m-gut) + clamp(8px, 2.2vw, 32px)) clamp(2rem, 4vw, 3rem);
}
.is-mag .footer__content { color: #c9cbcc; display: grid; gap: 1rem; }
.is-mag .footer a { color: #fff; }
.is-mag .footer a:hover, .is-mag .footer a:focus { color: var(--m-accent); }
.is-mag .footer .small { color: #a3a6a8; margin: 0; }
.mag-footer__logo { font: italic 800 clamp(2.5rem, 1.5rem + 4vw, 5rem)/1 var(--m-font); letter-spacing: -.065em; margin: 0 !important; }
.mag-footer__logo a { color: #fff !important; text-decoration: none !important; }
.mag-footer__logo a::after { content: "."; }
.is-mag .footer .menu__list { gap: .25rem 1.75rem; justify-content: flex-start; margin: 0; }
.is-mag .footer .menu__listitem { margin: 0; }
.is-mag .footer .menu__link { color: #fff; padding: .25rem 0; }
.is-mag .footer .menu__link::before, .is-mag .footer .menu__link::after { display: none; }
.is-mag .social-links { margin: 0; }
.is-mag .social-links a { color: #a3a6a8; }

/* ==========================================================================
   16. Halaman depan surat & halaman blog surat
   Struktur dua kolom: surat + tombol tautan, dan judul + daftar tulisan.
   Warna, huruf, dan gaya tombol memakai token tema di atas, jadi ikut
   pengaturan Customizer dan mode gelap.
   ========================================================================== */

/* --- Surat & tombol tautan ---------------------------------------------- */

.surat {
  column-gap: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem;
  margin: 1rem auto 0;
  max-width: var(--measure);
  padding: 0 var(--gutter);
}

.surat__letter { font-size: 1.125rem; line-height: 1.45; }
.surat__letter p { margin: 0 0 1em; }
.surat__letter p:last-child { margin-bottom: 0; }

.surat__links { padding-top: 2.6rem; }
.surat__links ul, .surat-chips, .surat-list { list-style: none; margin: 0; padding: 0; }
.surat__links ul { display: grid; gap: .4rem; }
.surat__links li, .surat-chips li, .surat-list li { margin: 0; }

.surat-btn, .surat-chip, .surat-pager__btn {
  align-items: center;
  border: 1px solid var(--grey-color-translucent);
  border-radius: .125rem;
  color: var(--text-color);
  display: flex;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  gap: .5rem;
  letter-spacing: .125em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .175s ease-in-out, color .175s ease-in-out;
}
.surat-btn { height: 2.25rem; justify-content: center; padding: 0 .75rem; }
.surat-btn svg, .surat-chip svg { flex: none; height: .8rem; width: .8rem; }
.surat-btn:hover, .surat-btn:focus,
.surat-chip:hover, .surat-chip:focus,
a.surat-pager__btn:hover, a.surat-pager__btn:focus { border-color: var(--brand-color); color: var(--brand-color); }

@media (max-width: 767px) {
  .surat { grid-template-columns: 1fr; }
  .surat__links { margin-top: 2rem; padding-top: 0; }
  .surat__links ul { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
}

/* --- Blog: kolom kiri --------------------------------------------------- */

.surat-blog {
  column-gap: 2rem;
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  margin: 1rem auto 0;
  max-width: var(--measure);
  padding: 0 var(--gutter);
}

.surat-blog__side { border-top: 2px solid var(--brand-color); padding-top: .4rem; text-align: right; }
.surat-blog__title { font-size: 1.5rem; line-height: 1.15; margin: 0; }
.surat-blog__stats { color: var(--grey-color); font-size: .875rem; font-style: italic; line-height: 1.35; margin: .75rem 0 0; }
.surat-blog__by { color: var(--grey-color); font-size: .75rem; margin: 1rem 0 0; }
.surat-blog__by a { color: inherit; text-decoration: none; }
.surat-blog__by a:hover, .surat-blog__by a:focus { color: var(--brand-color); }

/* --- Blog: pengantar & topik -------------------------------------------- */

.surat-blog__intro { font-size: 1.0625rem; line-height: 1.45; }
.surat-blog__intro p { margin: 0 0 .75em; }
.surat-blog__intro p:last-child { margin-bottom: 0; }

.surat-label {
  color: var(--grey-color);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
}
.surat-label em { font-weight: 400; letter-spacing: 0; margin-left: .25rem; text-transform: none; }

.surat-blog__topics { border-bottom: 1px solid var(--grey-color-translucent); margin-top: 1.5rem; padding-bottom: 1.25rem; }

.surat-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.surat-chip { display: inline-flex; padding: .45rem .6rem; }
.surat-chip span { color: var(--grey-color); }
.surat-chip--fill { background: var(--grey-color-translucent); border-color: transparent; letter-spacing: .04em; text-transform: none; }

/* --- Blog: daftar tulisan ----------------------------------------------- */

.surat-blog__latest { margin-top: 1.5rem; }
.surat-list { margin-top: .75rem; }

.surat-row {
  border-radius: .125rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  padding: .65rem .6rem;
}
.surat-row.has-thumb { grid-template-columns: 4.5rem minmax(0, 1fr); }
.surat-row:nth-child(even) { background: color-mix(in srgb, var(--grey-color-translucent) 45%, transparent); }

.surat-row__thumb { align-self: start; display: block; }
.surat-row__thumb img { aspect-ratio: 1; border-radius: .125rem; display: block; height: auto; object-fit: cover; width: 100%; }

.surat-row__head { align-items: baseline; display: flex; gap: .15rem 1rem; justify-content: space-between; }
.surat-row__title { font-size: 1rem; line-height: 1.2; margin: 0; }
.surat-row__title a { text-decoration: none; }
.surat-row__date {
  color: var(--grey-color);
  flex: none;
  font-size: .75rem;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .02em;
}

.surat-row__summary { font-size: .9rem; line-height: 1.4; margin: .3rem 0 0; }
.surat-row__tags { display: flex; flex-wrap: wrap; gap: .1rem .75rem; margin: .35rem 0 0; }
.surat-row__tags a { color: var(--grey-color); font-size: .75rem; text-decoration: none; }
.surat-row__tags a:hover, .surat-row__tags a:focus { color: var(--brand-color); }

/* --- Blog: paginasi ----------------------------------------------------- */

.surat-pager {
  align-items: center;
  border-bottom: 1px solid var(--grey-color-translucent);
  border-top: 1px solid var(--grey-color-translucent);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 1.25rem 0;
}
.surat-pager__btn { color: var(--brand-color); display: inline-flex; padding: .55rem .8rem; }
.surat-pager__btn.is-disabled { color: var(--grey-color); opacity: .6; }
.surat-pager__jump { align-items: center; color: var(--grey-color); display: flex; font-size: .875rem; gap: .5rem; margin: 0 .4rem; }
.surat-pager__jump input[type="number"] {
  -moz-appearance: textfield;
  text-align: center;
  width: 3.5rem;
}
.surat-pager__jump input::-webkit-inner-spin-button,
.surat-pager__jump input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Blog: ikuti, cari, menu -------------------------------------------- */

.surat-blog__extras { display: grid; gap: 1rem; margin-top: 1.5rem; }
.surat-blog__row { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.surat-blog__row .surat-label { min-width: 3rem; }
.surat-blog__row .surat-chips { margin: 0; }

.surat-search {
  align-items: center;
  border: 1px solid var(--grey-color-translucent);
  border-radius: .125rem;
  color: var(--grey-color);
  display: flex;
  flex: 1 1 14rem;
  gap: .6rem;
  padding: 0 .75rem;
  transition: border-color .175s ease-in-out;
}
.surat-search:focus-within { border-color: var(--brand-color); }
.surat-search svg { flex: none; height: .8rem; width: .8rem; }
.surat-search input[type="search"] { border: 0; flex: 1; padding: .6em 0; }

@media (max-width: 767px) {
  .surat-blog { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .surat-blog__side { text-align: left; }
  .surat-row__head { flex-direction: column; }
  .surat-row__date { order: -1; }
}
