/*
Theme Name: Zwe Khant Lwin
Theme URI: https://zwekhantlwin.fi
Author: Zwe Khant Lwin
Author URI: https://zwekhantlwin.fi
Description: Personal portfolio and blog — Junior Cloud Engineer & BIT student at Haaga-Helia.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: portfolio-minimal
*/

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg:        #F7F5F0;
  --bg-white:  #FFFFFF;
  --text:      #1C1C1A;
  --muted:     #6B6B67;
  --faint:     #B0AFA8;
  --accent:    #0F6E56;
  --accent-dk: #085041;
  --border:    #E2E0D8;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --max-w:     1100px;
  --radius:    6px;
  --trans:     0.18s ease;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent-dk); }
ul, ol { padding-left: 1.5rem; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--muted);
}
code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--border);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
pre {
  background: var(--text);
  color: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0;
}
pre code { background: transparent; color: inherit; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
strong { font-weight: 600; }

/* ─── Layout ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }
.content-area {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  padding: 3.5rem 0 4rem;
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-branding a {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-branding a:hover { color: var(--accent); }

/* ─── Navigation ─────────────────────────────────────────── */
.main-navigation ul { list-style: none; padding: 0; display: flex; gap: 2rem; }
.main-navigation a {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--trans);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--text); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--muted);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--trans);
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4.5rem;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1 { max-width: 680px; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero-bio { font-size: 1.075rem; color: var(--muted); max-width: 520px; line-height: 1.7; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ─── Section label ──────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ─── Front page sections ────────────────────────────────── */
.fp-section { padding: 4rem 0; }
.fp-section + .fp-section { border-top: 1px solid var(--border); }
.fp-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.fp-section-head h2 { font-size: 1.75rem; }
.fp-section-head a { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.fp-section-intro { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

/* ─── Work / project cards ───────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.work-grid-4 { grid-template-columns: repeat(4, 1fr); }
.work-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--trans), transform var(--trans);
}
.work-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.work-card-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.work-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.work-card p { font-size: 0.875rem; color: var(--muted); margin-bottom: 0; line-height: 1.6; }

/* ─── Post list / cards ──────────────────────────────────── */
.posts-list { list-style: none; padding: 0; }
.post-card { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.post-card:first-child { padding-top: 0; }
.post-card:last-child { border-bottom: none; }
.post-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: var(--faint); margin-bottom: 0.6rem; }
.post-meta .category-link { color: var(--accent); font-weight: 600; }
.post-meta .sep { color: var(--border); }
.post-card h2 { font-size: 1.45rem; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); }
.post-excerpt { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.read-more { font-size: 0.825rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; }
.read-more:hover { color: var(--accent-dk); }
.post-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
.post-thumbnail img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.3s ease; }
.post-card:hover .post-thumbnail img { transform: scale(1.02); }

/* ─── Archive / category header ─────────────────────────── */
.archive-header { margin-bottom: 2.5rem; }
.archive-header h1 { font-size: 2rem; margin-top: 0.5rem; letter-spacing: -0.02em; }
.archive-description { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; margin-bottom: 0; }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination { display: flex; gap: 0.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; color: var(--muted); transition: all var(--trans); }
.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─── Single post header ─────────────────────────────────── */
.single-header { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 4rem 2rem 3rem; }
.single-header-inner { max-width: var(--max-w); margin: 0 auto; }
.single-header h1 { max-width: 700px; letter-spacing: -0.025em; margin-bottom: 0; }

/* ─── Single post content ────────────────────────────────── */
.single-content { font-size: 1.0625rem; line-height: 1.8; }
.single-content h2 { margin: 2.5rem 0 1rem; }
.single-content h3 { margin: 2rem 0 0.75rem; }
.single-content ul, .single-content ol { margin-bottom: 1.25rem; }
.single-content li { margin-bottom: 0.4rem; }
.single-content img { border-radius: var(--radius); margin: 2rem 0; }

/* ─── Post tags ──────────────────────────────────────────── */
.post-tags { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.post-tags span { font-size: 0.8rem; color: var(--faint); margin-right: 0.5rem; }
.tag-link { display: inline-block; padding: 0.25rem 0.75rem; border: 1px solid var(--border); border-radius: 20px; font-size: 0.8rem; color: var(--muted); margin: 0.2rem; transition: all var(--trans); }
.tag-link:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Post navigation ────────────────────────────────────── */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.nav-previous, .nav-next { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--trans); }
.nav-next { text-align: right; }
.nav-previous:hover, .nav-next:hover { border-color: var(--accent); }
.nav-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.4rem; }
.nav-title { font-family: var(--font-head); font-size: 1rem; color: var(--text); }

/* ─── Static page ────────────────────────────────────────── */
.page-header { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 3.5rem 2rem 3rem; }
.page-header-inner { max-width: var(--max-w); margin: 0 auto; }
.page-header h1 { letter-spacing: -0.025em; }
.page-content { padding: 3rem 0; font-size: 1.0625rem; line-height: 1.8; }
.page-content h2 { margin: 2.5rem 0 1rem; }
.page-content h3 { margin: 2rem 0 0.75rem; }
.page-content ul, .page-content ol { margin-bottom: 1.25rem; }
.page-content li { margin-bottom: 0.4rem; }

/* ─── Sidebar ────────────────────────────────────────────── */
.widget { margin-bottom: 2.5rem; }
.widget-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); font-family: var(--font-body); }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul a { color: var(--muted); }
.widget ul a:hover { color: var(--accent); }
.about-widget { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.about-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1rem; color: #fff; margin-bottom: 1rem; }
.about-widget p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ─── Quick facts list (about page sidebar) ──────────────── */
.quick-facts { list-style: none; padding: 0; }
.quick-facts li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }
.quick-facts li:last-child { border-bottom: none; }

/* ─── Contact CTA buttons ────────────────────────────────── */
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ─── 404 ────────────────────────────────────────────────── */
.no-results { padding: 6rem 0; text-align: center; }
.no-results .four-oh-four { font-family: var(--font-head); font-size: 7rem; color: var(--border); line-height: 1; margin-bottom: 1.5rem; }
.no-results h2 { margin-bottom: 1rem; }
.no-results p { color: var(--muted); }
.not-found-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 2rem; }

/* ─── Search form ────────────────────────────────────────── */
.search-form { display: flex; gap: 0.5rem; max-width: 400px; margin: 1.5rem auto 0; }
.search-form input[type="search"] { flex: 1; padding: 0.65rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem; background: var(--bg-white); color: var(--text); }

/* ─── Comments ───────────────────────────────────────────── */
.comments-section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.25rem; margin-bottom: 2rem; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 600; font-size: 0.9rem; }
.comment-meta { font-size: 0.8rem; color: var(--faint); margin-bottom: 0.75rem; }
.comment-body p { font-size: 0.95rem; }
.comment-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.comment-form input, .comment-form textarea { width: 100%; padding: 0.65rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem; background: var(--bg-white); color: var(--text); margin-bottom: 1rem; transition: border-color var(--trans); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form textarea { height: 140px; resize: vertical; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--text); color: var(--bg); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.footer-brand { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 0.75rem; }
.footer-about { font-size: 0.875rem; color: rgba(247,245,240,0.55); line-height: 1.6; }
.footer-col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,245,240,0.4); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.875rem; color: rgba(247,245,240,0.65); transition: color var(--trans); }
.footer-links a:hover { color: var(--bg); }
.footer-links .footer-plain { font-size: 0.875rem; color: rgba(247,245,240,0.35); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.8rem; color: rgba(247,245,240,0.4); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { font-size: 0.8rem; color: rgba(247,245,240,0.4); transition: color var(--trans); }
.footer-social a:hover { color: var(--bg); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .work-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .content-area { grid-template-columns: 1fr; gap: 0; }
  .sidebar { border-top: 1px solid var(--border); padding-top: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .header-inner { padding: 1rem 1.25rem; }
  .main-navigation { display: none; }
  .main-navigation.toggled { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; }
  .main-navigation.toggled ul { flex-direction: column; gap: 0.75rem; }
  .menu-toggle { display: block; }
  .hero { padding: 3rem 1.25rem; }
  .container { padding: 0 1.25rem; }
  .content-area { padding: 2rem 0 3rem; }
  .single-header { padding: 2.5rem 1.25rem 2rem; }
  .post-navigation { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .work-grid, .work-grid-4 { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; }
}
