/*
Theme Name: Panduan Konbini
Theme URI: https://konbini-guide.com/
Author: Panduan Konbini
Description: Custom WordPress theme for Panduan Konbini, designed for Indonesian readers learning about Japanese convenience stores.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: panduan-konbini
*/

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #1d2522;
  --muted: #647069;
  --line: #dfe8e1;
  --red: #d92d34;
  --green: #198f65;
  --yellow: #f1b33c;
  --blue: #3268a8;
  --shadow: 0 18px 48px rgba(31, 45, 37, .12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--red);
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, .9);
  border-bottom: 1px solid rgba(223, 232, 225, .9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

.custom-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--green));
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(217, 45, 52, .18);
  font-size: 18px;
}

.brand-name {
  display: grid;
  gap: 4px;
}

.brand-title {
  font-size: 18px;
}

.brand-tagline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2f3a35;
  font-size: 14px;
  font-weight: 700;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav a:hover,
.nav a:focus-visible,
.nav .current-menu-item > a,
.nav .current_page_item > a {
  color: var(--ink);
  background: #eef6f1;
  outline: none;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(29, 37, 34, .16);
}

.header-action:hover,
.header-action:focus-visible {
  color: #fff;
  background: var(--green);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
}

.menu-button span::before {
  transform: translateY(-6px);
}

.menu-button span::after {
  transform: translateY(4px);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: #e8f0ea;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, .96) 0%, rgba(251, 250, 246, .88) 34%, rgba(251, 250, 246, .24) 66%, rgba(251, 250, 246, .08) 100%),
    var(--hero-image, none) center / cover no-repeat;
  content: "";
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(251, 250, 246, 0), var(--bg));
  content: "";
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 92px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(260px, 380px);
  gap: 48px;
  align-items: end;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-title {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 96px);
  line-height: .92;
  font-weight: 900;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: #35423b;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
}

.button.primary,
.wp-block-button__link {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 30px rgba(217, 45, 52, .22);
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--line);
}

.quick-panel {
  align-self: end;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(223, 232, 225, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.quick-panel header {
  padding: 18px 18px 0;
}

.quick-panel h2 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.25;
}

.quick-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.quick-list {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
}

.quick-list a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
}

.quick-list b {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.quick-list small {
  color: var(--muted);
  font-size: 12px;
}

.quick-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: var(--radius);
  font-weight: 900;
}

.quick-list a:nth-child(2) .quick-icon {
  background: var(--green);
}

.quick-list a:nth-child(3) .quick-icon {
  color: #372b12;
  background: var(--yellow);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #f1f7f3;
}

.section-inner,
.content-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-label {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title,
.page-title,
.archive-title {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.text-link {
  color: var(--red);
  font-weight: 900;
  white-space: nowrap;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 32px;
  align-items: start;
}

.featured-card,
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-card {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(280px, 1.04fr);
}

.article-visual {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(217, 45, 52, .12), rgba(25, 143, 101, .14)),
    #fff;
}

.article-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.visual-stack {
  width: min(260px, 84%);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  transform: rotate(-4deg);
}

.visual-stack span {
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(31, 45, 37, .12);
}

.visual-stack span:nth-child(1) {
  background: var(--red);
}

.visual-stack span:nth-child(2) {
  background: var(--green);
  transform: translateY(28px);
}

.visual-stack span:nth-child(3) {
  background: var(--yellow);
  transform: translateY(-16px);
}

.visual-stack span:nth-child(4) {
  background: var(--blue);
}

.article-body,
.post-card-body {
  padding: 34px;
}

.meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pill,
.cat-pill {
  padding: 5px 8px;
  color: #fff;
  background: var(--red);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.article-body h3,
.post-card h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.article-body p,
.post-card p,
.archive-description,
.entry-content {
  color: #46534d;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.widget,
.side-block {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.widget ul {
  margin: 0;
  padding-left: 18px;
}

.avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: var(--radius);
  font-size: 28px;
  font-weight: 900;
}

.side-block h3,
.widget-title {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.side-block p,
.side-block li,
.widget li,
.widget p {
  color: var(--muted);
  font-size: 14px;
}

.tag-cloud,
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-cloud a,
.tagcloud a {
  padding: 7px 9px;
  color: #425049;
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px !important;
  font-weight: 800;
}

.series-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.series-card {
  min-height: 254px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.series-card.is-live {
  border-color: rgba(217, 45, 52, .32);
  box-shadow: 0 14px 32px rgba(217, 45, 52, .12);
}

.series-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
}

.series-card.is-live .series-number {
  background: var(--red);
}

.series-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.22;
}

.series-card p {
  color: var(--muted);
  font-size: 14px;
}

.status {
  width: fit-content;
  padding: 6px 8px;
  color: #264035;
  background: #e3f3eb;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.series-card:not(.is-live) .status {
  color: #5c4214;
  background: #fff1c9;
}

.category-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-link {
  min-height: 148px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius);
}

.category-link:nth-child(2) {
  background: var(--red);
}

.category-link:nth-child(3) {
  background: var(--blue);
}

.category-link h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.15;
}

.category-link p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
}

.page-hero {
  padding: 78px 0 42px;
  background: #f1f7f3;
  border-bottom: 1px solid var(--line);
}

.page-hero .content-wrap {
  max-width: 920px;
}

.entry-layout {
  padding: 56px 0 72px;
}

.entry-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 32px;
  align-items: start;
}

.entry-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--ink);
  line-height: 1.2;
}

.entry-content a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content figure {
  margin-right: 0;
  margin-left: 0;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  color: var(--ink);
  background: #f1f7f3;
  border-left: 5px solid var(--green);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--line);
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card-thumb {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  background: #eef6f1;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagination {
  margin-top: 32px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.pagination .current {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-field {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.search-submit {
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  padding: 40px 0;
  color: #dce6e0;
  background: #1d2522;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .header-action,
  .nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav.is-open {
    position: absolute;
    inset: 72px 16px auto;
    display: grid;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav.is-open ul {
    display: grid;
    align-items: stretch;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 250, 246, .96) 0%, rgba(251, 250, 246, .84) 54%, rgba(251, 250, 246, .36) 100%),
      var(--hero-image, none) center / cover no-repeat;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 58px 0 74px;
  }

  .hero-title {
    max-width: 10ch;
  }

  .content-grid,
  .entry-shell {
    grid-template-columns: 1fr;
  }

  .series-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner,
  .hero-inner,
  .section-inner,
  .content-wrap,
  .footer-inner {
    width: min(var(--max), calc(100% - 24px));
  }

  .brand-tagline {
    display: none;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .article-visual {
    min-height: 220px;
  }

  .article-body,
  .post-card-body {
    padding: 24px;
  }

  .series-grid,
  .post-grid,
  .category-band {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
}
