/*
Theme Name: Tepi Pikir
Description: Tema jurnal pribadi berbahasa Indonesia untuk esai, catatan, dan ulasan buku.
Author: Tepi Pikir
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: tepi-pikir
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --ink: #162934;
  --muted: #526268;
  --line: #d9dcd4;
  --accent: #275f58;
  --hero: #112431;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.10; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #2f8073; outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.eyebrow { font-size: .69rem; font-weight: 750; letter-spacing: .17em; line-height: 1.4; }
.skip, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 100; top: 8px; left: 8px; width: auto; height: auto; clip-path: none; padding: 10px 16px; background: var(--paper); }

.site-header { background: #fbf9f4; }
.masthead { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 80px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; font: 27px/.95 var(--serif); text-decoration: none; }
.brand small { display: block; margin-top: 7px; color: #536569; font: 700 9px/1 var(--sans); letter-spacing: .17em; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid #9cac9e; border-radius: 50%; color: var(--accent); font: 21px/1 var(--serif); }
.primary-nav .menu { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(15px, 2.4vw, 33px); margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; display: block; padding-block: 10px; font-size: .86rem; font-weight: 550; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current='page'] { color: var(--accent); }
.primary-nav a[aria-current='page']::after { position: absolute; inset: auto 0 3px; height: 1px; background: var(--accent); content: ''; }
.menu-toggle { display: none; }
.search-panel { justify-self: end; }
.search-panel summary { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; border: 1px solid var(--line); list-style: none; }
.search-panel summary::-webkit-details-marker { display: none; }
.search-icon { position: relative; display: block; width: 13px; height: 13px; margin: -2px 2px 0 0; border: 1.6px solid currentColor; border-radius: 50%; }
.search-icon::after { position: absolute; width: 6px; height: 1.5px; background: currentColor; inset: 10px auto auto 9px; transform: rotate(45deg); content: ''; }
.search-panel .search-form { position: absolute; z-index: 5; top: 100%; right: 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 22px #11243120; }
.search-form { display: flex; flex-wrap: wrap; gap: 7px; }
.search-form label { min-width: 0; flex: 1; }
.search-form input { width: 100%; min-width: 155px; padding: 9px 11px; border: 1px solid #afbcb4; background: white; color: var(--ink); }
.search-form button, .comment-form .submit { padding: 9px 15px; border: 1px solid var(--accent); background: var(--accent); color: white; }

.hero { background: var(--hero); color: #f9f6eb; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; align-items: stretch; min-height: 485px; }
.hero-copy { padding: 69px 40px 66px 0; align-self: center; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #b9d4ca; }
.hero-kicker span { width: 24px; height: 1px; background: #84b3a3; }
.hero h1 { max-width: 11ch; font-size: clamp(3rem, 5.4vw, 5.3rem); letter-spacing: -.042em; line-height: .99; }
.hero-intro { max-width: 42ch; margin: 23px 0 27px; color: #ccd8d9; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 23px; }
.button { display: inline-flex; align-items: center; gap: 17px; padding: 10px 15px; background: #c6dfd3; color: #14352e; border-radius: 3px; font-size: .84rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #e0f1e8; }
.hero-link { padding-block: 8px; color: #edf1e8; font-size: .84rem; font-weight: 600; text-decoration: none; }
.hero-link:hover { text-decoration: underline; }
.hero :focus-visible { outline-color: #c6dfd3; }
.hero-art { position: relative; min-width: 0; min-height: 100%; margin: 0; overflow: hidden; background: #293b46; }
.hero-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 59% 48%; }
.hero-art::after { position: absolute; inset: 0; background: linear-gradient(90deg, #1124317a, #1124310b 38%); pointer-events: none; content: ''; }

.topic-bar { border-bottom: 1px solid var(--line); background: #f0f0e9; }
.topic-inner { display: flex; align-items: center; gap: 19px; padding-block: 15px; }
.topic-inner .eyebrow { color: var(--muted); }
.topic-inner ul { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
.topic-inner a { display: block; padding: 3px 12px; border: 1px solid #cbd4c9; border-radius: 20px; color: #355850; font-size: .78rem; font-weight: 600; text-decoration: none; }
.topic-inner a:hover { background: #dce8de; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr); gap: clamp(32px, 5vw, 77px); padding-block: 48px 75px; scroll-margin-top: 16px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 46px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: clamp(1.66rem, 3vw, 2.35rem); letter-spacing: -.025em; }
.text-link { color: var(--accent); font-size: .8rem; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link span { margin-left: .25em; }
.featured { position: relative; isolation: isolate; overflow: hidden; margin: 19px 0 7px; padding: 25px 28px 27px; background: #e8eee5; border: 1px solid #d8e0d4; }
.featured .eyebrow { color: var(--accent); margin-bottom: 10px; }
.featured h3 { max-width: 24ch; font-size: clamp(1.8rem, 3.1vw, 2.75rem); letter-spacing: -.036em; }
.featured h3 a, .post-row h3 a { text-decoration: none; }
.featured h3 a:hover, .post-row h3 a:hover { color: var(--accent); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block: 8px; color: var(--muted); font-size: .74rem; }
.post-meta a { color: var(--accent); font-weight: 750; text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }
.featured p:not(.eyebrow), .post-row p { max-width: 59ch; margin: 9px 0 12px; color: #42585a; font-size: .92rem; }
.quote-mark { position: absolute; z-index: -1; right: 14px; top: 9px; color: #d5e1d3; font: 200px/.9 var(--serif); }
.post-row { padding: 17px 0 16px; border-bottom: 1px solid var(--line); }
.post-row h3 { font-size: clamp(1.45rem, 3vw, 2.05rem); letter-spacing: -.023em; }
.post-row p { margin-bottom: 0; }

.book-list { margin: 0; padding: 0; list-style: none; }
.book-list li { border-bottom: 1px solid var(--line); }
.book-list a { display: grid; grid-template-columns: 49px minmax(0, 1fr); align-items: center; gap: 13px; padding-block: 14px; text-decoration: none; }
.book-list a:hover strong { text-decoration: underline; }
.book-cover { display: grid; place-items: center; width: 49px; height: 64px; overflow: hidden; border-radius: 2px; border-left: 4px solid #0003; background: #335950; color: #edf1e8; font-family: var(--serif); }
.book-list li:nth-child(2) .book-cover { background: #633e32; }
.book-list li:nth-child(3) .book-cover { background: #344c62; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-list strong { display: block; font: 400 1.09rem/1.17 var(--serif); }
.book-list small { display: block; margin-top: 5px; color: var(--muted); font-size: .74rem; }


.archive-layout, .reading { min-height: 60vh; }
.archive-layout { max-width: 850px; padding-block: 52px 80px; }
.archive-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.archive-heading h1, .article-header h1 { font-size: clamp(2.55rem, 6vw, 4.5rem); letter-spacing: -.045em; }
.archive-heading .search-form, .archive-description { max-width: 39rem; margin-top: 15px; }
.reading { max-width: 760px; padding-block: 47px 75px; }
.article-header { padding-bottom: 22px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.article-header .post-meta { margin-top: 22px; }
.byline { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.article-image { margin: 0 0 26px; }
.entry-content { color: #2d3c42; font: clamp(1.13rem, 2.2vw, 1.29rem)/1.8 var(--serif); overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { margin: 1.45em 0 .5em; color: var(--ink); }
.entry-content a { color: var(--accent); }
.entry-content blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 3px solid #8faf9f; }
.entry-content pre { overflow-x: auto; }
.entry-content figure { max-width: 100%; }
.entry-content iframe { max-width: 100%; }
.entry-content .aligncenter { margin-inline: auto; }
.navigation .nav-links { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 22px; }
.page-numbers.current { color: var(--accent); font-weight: 750; }
.nav-next { margin-inline-start: auto; }
.comments-area { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 25px; }
.comment-form label { display: block; }
.comment-form input:not([type='checkbox']):not([type='submit']), .comment-form textarea { max-width: 100%; border: 1px solid #a3b4a9; padding: 7px; }
.comment-form textarea { width: 100%; }

.site-footer { background: #eeefe8; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding-block: 24px; color: var(--muted); font-size: .82rem; }
.footer-inner .brand { font-size: 22px; color: var(--ink); }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 64px); }
  .hero-grid { min-height: 420px; }
  .hero-copy { padding-block: 51px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 38px); }
  .masthead { grid-template-columns: 1fr auto auto; gap: 12px; min-height: 66px; }
  .site-header .brand { font-size: 22px; }
  .brand-mark { width: 29px; height: 29px; }
  .site-header .search-panel { grid-column: 3; grid-row: 1; }
  .search-panel summary { width: 36px; height: 36px; }
  .menu-toggle { grid-column: 2; grid-row: 1; padding: 6px 8px; border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 3px; font-size: .8rem; }
  .js .menu-toggle { display: block; }
  .primary-nav { grid-column: 1 / -1; padding-bottom: 12px; }
  .js .menu-toggle[aria-expanded='false'] + .primary-nav { display: none; }
  .primary-nav .menu { gap: 4px 16px; }
  .primary-nav a { padding-block: 4px; }
  .primary-nav a[aria-current='page']::after { bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 38px 0 31px; }
  .hero h1 { font-size: clamp(2.7rem, 9vw, 4.4rem); max-width: 12ch; }
  .hero-art { min-height: 0; aspect-ratio: 2.15; }
  .hero-art img { object-position: 58% 46%; }
  .hero-art::after { background: linear-gradient(180deg, #1124312e, transparent 38%); }
  .topic-inner { align-items: flex-start; gap: 12px; }
  .topic-inner > .eyebrow { margin-top: 8px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); padding-block: 34px 50px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.post-row h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); letter-spacing: -.023em; }
.post-row h2 a { text-decoration: none; }
.post-row h2 a:hover { color: var(--accent); }
.search-status:not(:empty) { margin-top: 1rem; color: var(--muted); }
