/*
Theme Name:  Inkwell — Arsitektur Kehidupan
Theme URI:   https://rahmamuzakkir.com
Author:      Rahma Muzakkir
Description: Personal blog theme — mobile-first, responsive. Profile-focused home, category-driven blog, orange editorial palette.
Version:     2.0
License:     GNU General Public License v2 or later
Text Domain: inkwell
*/

/* ================================================
   TOKENS
================================================ */
:root {
  --bg:       #FFF8F3;
  --surface:  #FFFFFF;
  --text:     #2A1206;
  --muted:    #7A5A48;
  --accent:   #C94E09;
  --a2:       #F06418;
  --al:       #FEE8D6;
  --border:   #F0D8C8;

  --fd: 'Barlow Condensed', Impact, sans-serif;
  --fb: 'Barlow', system-ui, sans-serif;
  --fm: 'Barlow Semi Condensed', system-ui, sans-serif;

  --t: .2s ease;
  --max: 1140px;
  --pad: 1.25rem;

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
}

/* ================================================
   RESET & BASE — Mobile-first
================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* space for mobile bottom nav */
  padding-bottom: calc(var(--nav-h) + var(--sab) + 12px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: var(--fb); font-size: 16px; }

/* ================================================
   LAYOUT
================================================ */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.divider { height: 1px; background: var(--border); }

/* ================================================
   TYPOGRAPHY
================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--fd);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

/* Content headings (post titles etc.) — no caps */
.entry-title,
.post-title,
.profile-statement,
.sneak-feat-title,
.sneak-mini-title,
.sgd-title,
.bct,
.ptitle,
.ntitle,
.footer-logo,
.pname,
.widget-title-text,
h1.content-title,
.post-nav-title {
  text-transform: none;
  letter-spacing: -.02em;
}

p { margin-bottom: 1.3rem; }
p:last-child { margin-bottom: 0; }

/* ================================================
   UTILITY CLASSES
================================================ */
.eyebrow {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--a2);
  margin-bottom: .6rem;
  display: block;
}

.sl {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--fm);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.sl::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--a2);
  flex-shrink: 0;
}

.badge {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--al);
  padding: .22rem .55rem;
  border-radius: 3px;
  white-space: nowrap;
}

.muted-txt { font-size: .75rem; color: var(--muted); }

.rm {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 2px;
  transition: color var(--t), border-color var(--t);
  cursor: pointer;
}
.rm::after { content: '→'; transition: transform var(--t); }
.rm:hover { color: var(--a2); border-color: var(--a2); }
.rm:hover::after { transform: translateX(3px); }

/* ================================================
   READING PROGRESS
================================================ */
#inkwell-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 3px;
  background: var(--a2);
  z-index: 9999;
  transition: width .08s linear;
}

/* ================================================
   TOP HEADER
================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 248, 243, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-top: var(--sat);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  min-height: 52px;
}

.site-branding { cursor: pointer; }

.site-title {
  font-family: var(--fd);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
  transition: color var(--t);
}
.site-title:hover { color: var(--a2); }

.site-tagline {
  display: block;
  font-family: var(--fb);
  font-size: .62rem;
  font-weight: 500;
  color: var(--a2);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop nav (hidden mobile) */
.desktop-nav { display: none; align-items: center; gap: 2.5rem; }

.desktop-nav a {
  font-family: var(--fm);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t);
  position: relative;
  padding-bottom: 3px;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1.5px;
  background: var(--a2);
  transition: width var(--t);
}
.desktop-nav a:hover,
.desktop-nav a.current-menu-item { color: var(--text); }
.desktop-nav a.current-menu-item::after,
.desktop-nav a:hover::after { width: 100%; }

.header-search-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--al);
  cursor: pointer;
  transition: background var(--t);
  border: none;
  color: var(--accent);
}
.header-search-btn:hover { background: var(--border); }

/* ================================================
   BOTTOM NAV — Mobile & Tablet
================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  height: calc(var(--nav-h) + var(--sab));
  padding-bottom: var(--sab);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
}

.nav-items {
  display: flex;
  width: 100%;
  padding-top: 6px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  cursor: pointer;
  transition: color var(--t);
  color: var(--muted);
  min-height: 44px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.nav-item.current-menu-item,
.nav-item:focus { color: var(--accent); }

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}
.nav-item.current-menu-item .nav-icon { transform: scale(1.1); }

.nav-label {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--fm);
}

/* ================================================
   HERO
================================================ */
.hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(180, 60, 0, .15) 0%,
    rgba(30, 10, 2, .62) 52%,
    rgba(20, 5, 0, .90) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.25rem 2rem;
  color: #fff;
}

.hero-eyebrow {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .85rem;
  display: block;
}

.hero-name {
  font-family: var(--fd);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #fff;
}
.hero-name em {
  font-style: normal;
  color: var(--a2);
}

.hero-quote {
  font-family: var(--fb);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  border-left: 3px solid var(--a2);
  padding-left: 1rem;
  margin-bottom: 1.75rem;
  max-width: 420px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--a2);
  color: #fff;
  padding: .78rem 1.75rem;
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  border: none;
  min-height: 44px;
  transition: background var(--t);
  text-decoration: none;
}
.hero-cta:hover { background: var(--accent); }

/* ================================================
   PROFILE SECTION
================================================ */
.profile-section {
  padding: 2.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.profile-photo-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.profile-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--al);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.profile-name {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: none;
}

.profile-role {
  font-size: .72rem;
  color: var(--muted);
  font-family: var(--fm);
  letter-spacing: .05em;
  margin-top: .2rem;
  display: block;
}

.profile-bismillah {
  font-family: var(--fb);
  font-style: italic;
  font-weight: 400;
  font-size: .92rem;
  color: var(--accent);
  padding: 1rem;
  background: var(--al);
  border-left: 3px solid var(--a2);
  margin-bottom: 1.25rem;
}

.profile-statement {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.profile-body {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.profile-values { display: flex; flex-wrap: wrap; gap: .45rem; }

.val-tag {
  font-size: .63rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 30px;
  transition: all var(--t);
}
.val-tag:hover {
  border-color: var(--a2);
  color: var(--accent);
  background: var(--al);
}

/* ================================================
   CATEGORIES
================================================ */
.categories-section {
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
}
.categories-section .sl { padding-inline: 1.25rem; margin-bottom: 1.25rem; }

.cat-scroll {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding: 0 1.25rem .5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .85rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--t);
  border-radius: 10px;
  min-width: 76px;
  min-height: 72px;
  scroll-snap-align: start;
  justify-content: center;
  text-decoration: none;
}
.cat-item:hover {
  border-color: var(--a2);
  background: var(--al);
}

.cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-name {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  font-family: var(--fm);
}

/* ================================================
   SNEAK PEEK / RECENT POSTS (HOME)
================================================ */
.sneak-section {
  padding: 2rem 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.sneak-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.sneak-featured { cursor: pointer; margin-bottom: 1.5rem; }

.sneak-featured-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--border);
  margin-bottom: .85rem;
}
.sneak-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.sneak-featured:hover .sneak-featured-img img { transform: scale(1.02); }

.sneak-meta { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; flex-wrap: wrap; }

.sneak-featured-title {
  font-family: var(--fd);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .4rem;
  text-transform: none;
}
.sneak-featured:hover .sneak-featured-title { color: var(--a2); }

.sneak-featured-excerpt {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: .75rem;
}

/* Mini scroll (mobile) */
.sneak-mini-scroll {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  margin: 0 -1.25rem;
  padding: 0 1.25rem .5rem;
}
.sneak-mini-scroll::-webkit-scrollbar { display: none; }

.sneak-mini { flex-shrink: 0; width: 155px; cursor: pointer; scroll-snap-align: start; }

.sneak-mini-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 6px;
  background: var(--border);
  margin-bottom: .6rem;
}
.sneak-mini-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.sneak-mini:hover .sneak-mini-img img { transform: scale(1.04); }

.sneak-mini-title {
  font-family: var(--fd);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: none;
}
.sneak-mini:hover .sneak-mini-title { color: var(--a2); }

/* Desktop grid (hidden mobile) */
.sneak-grid-desktop { display: none; }
.sgd-card { cursor: pointer; }
.sgd-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 8px;
  background: var(--border);
  margin-bottom: .75rem;
}
.sgd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.sgd-card:hover .sgd-img img { transform: scale(1.04); }
.sgd-title {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .35rem;
  text-transform: none;
}
.sgd-card:hover .sgd-title { color: var(--a2); }

/* ================================================
   BLOG PAGE
================================================ */
.blog-page-header {
  padding: 2rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.blog-page-header h1 {
  font-size: 2.2rem;
  margin-bottom: .3rem;
}

.filter-scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .9rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.filter-scroll::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: .42rem 1rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-family: var(--fm);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  min-height: 36px;
  display: flex;
  align-items: center;
  background: var(--surface);
  text-decoration: none;
}
.filter-chip.active,
.filter-chip:hover {
  background: var(--a2);
  color: #fff;
  border-color: var(--a2);
}

.blog-body { }
.blog-main { }
.blog-sidebar { display: none; }

/* Blog post card */
.post-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t);
  text-decoration: none;
  color: inherit;
}
.post-card:hover { background: var(--al); }

.post-card-img {
  width: 100px; height: 70px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--border);
  flex-shrink: 0;
}
.post-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.04); }

.post-card-meta { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; flex-wrap: wrap; }

.post-card-title {
  font-family: var(--fd);
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: none;
}
.post-card:hover .post-card-title { color: var(--a2); }

.post-card-read { font-size: .72rem; color: var(--a2); font-weight: 600; }

/* Sidebar */
.widget { margin-bottom: 2rem; }
.widget-title-text {
  font-family: var(--fm);
  font-size: .63rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .9rem;
  font-weight: 600;
  display: block;
}

.sidebar-search { display: flex; border: 1px solid var(--border); }
.sidebar-search input {
  flex: 1;
  border: none;
  background: var(--surface);
  padding: .58rem .75rem;
  font-size: .875rem;
  outline: none;
  color: var(--text);
}
.sidebar-search button {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: .58rem 1rem;
  cursor: pointer;
  font-size: .875rem;
  transition: background var(--t);
}
.sidebar-search button:hover { background: var(--a2); }

.widget ul { list-style: none; display: flex; flex-direction: column; }
.widget ul li {
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--muted); transition: color var(--t); }
.widget ul li a:hover { color: var(--a2); }

/* ================================================
   SINGLE POST
================================================ */
.single-post { padding-bottom: 3rem; }

.post-hero {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }

.post-header { padding: 1.5rem 1.25rem 1.25rem; }

.post-header-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}

.post-title {
  font-family: var(--fd);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .9rem;
  text-transform: none;
}

.post-subtitle {
  font-family: var(--fb);
  font-style: italic;
  font-weight: 300;
  font-size: .95rem;
  color: var(--muted);
  border-left: 3px solid var(--a2);
  padding-left: 1rem;
  line-height: 1.7;
}

.post-content {
  padding: 1.5rem 1.25rem 0;
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 300;
}
.post-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 .9rem;
}
.post-content p { margin-bottom: 1.4rem; }
.post-content blockquote {
  border-left: 3px solid var(--a2);
  padding-left: 1rem;
  margin: 1.75rem 0;
  font-family: var(--fb);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--muted);
}
.post-content a { color: var(--a2); text-decoration: underline; text-decoration-color: rgba(240,100,24,.3); }
.post-content a:hover { text-decoration-color: var(--a2); }

.post-footer {
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1.75rem;
}

.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.post-tag {
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .28rem .65rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
  transition: all var(--t);
  cursor: pointer;
  min-height: 32px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.post-tag:hover { background: var(--a2); color: #fff; border-color: var(--a2); }

/* Author box */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--al);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--a2);
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .15rem;
  text-transform: none;
}
.author-bio { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* Post nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.post-nav-box {
  padding: 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--t);
  min-height: 44px;
  text-decoration: none;
  display: block;
  color: inherit;
}
.post-nav-box:hover { border-color: var(--a2); background: var(--al); }
.post-nav-box.right { text-align: right; }
.post-nav-label {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
  font-family: var(--fm);
  font-weight: 600;
  display: block;
}
.post-nav-title {
  font-family: var(--fd);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: none;
}

/* ================================================
   CONTACT PAGE
================================================ */
.contact-page-header {
  padding: 2rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.contact-page-header h1 { font-size: 2.2rem; }

.contact-body { }
.contact-intro {
  padding: 1.25rem 1.25rem .25rem;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
}

.contact-form { padding: 1rem 1.25rem 2rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: .82rem 1rem;
  font-size: 16px;
  color: var(--text);
  transition: border-color var(--t);
  outline: none;
  border-radius: 8px;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--a2); }
.form-group textarea { min-height: 120px; line-height: 1.65; }

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--a2);
  color: #fff;
  border: none;
  padding: 1rem;
  font-family: var(--fd);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  min-height: 52px;
  transition: background var(--t);
  margin-top: .5rem;
}
.btn-submit:hover { background: var(--accent); }

.contact-info-cards {
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.25rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 64px;
}
.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
}
.info-label {
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
  font-family: var(--fm);
  font-weight: 600;
  display: block;
}
.info-value { font-size: .88rem; color: var(--text); font-weight: 500; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0 1.25rem 1.5rem;
  margin-top: .75rem;
}
.social-link {
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .32rem .75rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--t);
  min-height: 34px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--fm);
  font-weight: 600;
}
.social-link:hover { border-color: var(--a2); color: var(--accent); background: var(--al); }

/* ================================================
   FOOTER
================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem 2rem;
}

.footer-logo {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: .5rem;
  cursor: pointer;
  display: inline-block;
  color: var(--text);
  text-decoration: none;
}
.footer-logo:hover { color: var(--a2); }

.footer-tagline {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 320px;
  font-weight: 300;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col-title {
  font-family: var(--fm);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .85rem;
  font-weight: 600;
  display: block;
}

.footer-nav { }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-nav a { font-size: .85rem; color: var(--muted); transition: color var(--t); }
.footer-nav a:hover { color: var(--a2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-copy { font-size: .72rem; color: var(--muted); }

.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { font-size: .72rem; color: var(--muted); transition: color var(--t); }
.footer-social a:hover { color: var(--a2); }

/* ================================================
   ANIMATIONS
================================================ */
@keyframes inkwellFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade { opacity: 0; animation: inkwellFadeUp .5s ease forwards; }
.anim-d1   { animation-delay: .1s; }
.anim-d2   { animation-delay: .2s; }
.anim-d3   { animation-delay: .32s; }

/* ================================================
   TABLET ≥ 768px
================================================ */
@media (min-width: 768px) {
  :root { --pad: 2rem; }

  body { padding-bottom: 0; }/* bottom nav still shows at tablet */

  .header-inner { padding: 1rem 2rem; }

  .desktop-nav { display: flex; }
  .header-search-btn { display: none; }

  /* Hero */
  .hero { height: 70vh; }
  .hero-content { padding: 2rem 2rem 3rem; }
  .hero-name { font-size: 4rem; }
  .hero-quote { font-size: 1.05rem; }

  /* Profile: 2 cols */
  .profile-section {
    padding: 3.5rem 2rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3.5rem;
    align-items: start;
  }
  .profile-photo-row {
    grid-column: 1;
    margin-bottom: 0;
    display: block;
  }
  .profile-photo {
    width: 220px; height: 280px;
    border-radius: 4px;
    margin-bottom: .9rem;
  }
  .profile-text-col { grid-column: 2; }
  .profile-statement { font-size: 1.4rem; }

  /* Categories: wrap grid */
  .cat-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0 2rem;
    gap: .75rem;
  }
  .cat-item { flex-shrink: initial; min-width: 90px; }

  /* Sneak: hide mini scroll, show desktop grid */
  .sneak-section { padding: 2.5rem 2rem 3rem; }
  .sneak-mini-scroll { display: none; }
  .sneak-featured-title { font-size: 1.25rem; }
  .sneak-grid-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  /* Blog */
  .blog-page-header { padding: 2.5rem 2rem 1.5rem; }
  .filter-scroll { padding: .9rem 2rem; flex-wrap: wrap; overflow-x: visible; }
  .blog-body { display: flex; gap: 3rem; padding: 0 2rem 3rem; align-items: start; }
  .blog-sidebar { display: block; width: 240px; flex-shrink: 0; position: sticky; top: 80px; }
  .post-card { padding: 1.25rem 0; grid-template-columns: 140px 1fr; gap: 1.25rem; }
  .post-card-img { width: 140px; height: 95px; }

  /* Single post */
  .post-hero { aspect-ratio: 21/9; }
  .post-header { padding: 2rem 2rem 1.5rem; }
  .post-title { font-size: 2.2rem; }
  .post-subtitle { font-size: 1.1rem; }
  .post-content { padding: 1.75rem 2rem 0; font-size: 1.05rem; }
  .post-footer { padding: 1.75rem 2rem 0; margin-top: 2rem; }

  /* Contact: 2 col */
  .contact-page-header { padding: 2.5rem 2rem 1.5rem; }
  .contact-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    padding: 0 2rem 3rem;
    align-items: start;
    margin-top: 1.5rem;
  }
  .contact-intro { padding: 0 0 1rem; }
  .contact-form { padding: 0; }
  .btn-submit { width: auto; min-width: 200px; }
  .contact-info-cards { padding: 0; margin-top: 0; }
  .social-links { padding: 0; margin-top: .75rem; }

  /* Footer */
  .site-footer { padding: 3rem 2rem 2rem; }
  .footer-cols { grid-template-columns: 2fr 1fr 1fr; }
}

/* ================================================
   DESKTOP ≥ 1024px — hide bottom nav
================================================ */
@media (min-width: 1024px) {
  :root { --pad: 2.5rem; }

  body { padding-bottom: 0; }
  .bottom-nav { display: none; }

  .header-inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

  /* Hero */
  .hero { height: 88vh; max-height: 820px; }
  .hero-content { max-width: var(--max); margin-inline: auto; padding: 2rem var(--pad) 4rem; }
  .hero-name { font-size: 5.5rem; }
  .hero-quote { font-size: 1.1rem; max-width: 520px; }

  /* Profile */
  .profile-section { max-width: var(--max); margin-inline: auto; padding: 4.5rem var(--pad); grid-template-columns: 280px 1fr; gap: 5rem; }
  .profile-photo { width: 280px; height: 350px; }
  .profile-statement { font-size: 1.6rem; }

  /* Categories */
  .categories-section .sl { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
  .cat-scroll { max-width: var(--max); margin-inline: auto; padding: 0 var(--pad) .5rem; overflow-x: visible; flex-wrap: wrap; }
  .cat-item { min-width: 105px; padding: .95rem 1.25rem; }

  /* Sneak peek */
  .sneak-section { max-width: var(--max); margin-inline: auto; padding: 3rem var(--pad) 4rem; }
  .sneak-featured-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
  .sneak-featured { margin-bottom: 0; }
  .sneak-featured-img { aspect-ratio: 16/10; margin-bottom: .9rem; }
  .sneak-featured-excerpt { font-size: .9rem; }
  .sneak-featured-title { font-size: 1.5rem; }
  .sneak-grid-desktop { grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 0; }

  /* Blog */
  .blog-page-header { max-width: var(--max); margin-inline: auto; padding: 3rem var(--pad) 1.5rem; }
  .filter-scroll { max-width: var(--max); margin-inline: auto; padding: .9rem var(--pad); }
  .blog-body { max-width: var(--max); margin-inline: auto; padding: 0 var(--pad) 4rem; gap: 4rem; }
  .blog-sidebar { width: 280px; }
  .post-card { padding: 1.5rem 0; grid-template-columns: 180px 1fr; gap: 1.5rem; }
  .post-card-img { width: 180px; height: 120px; }
  .post-card-title { font-size: 1.1rem; -webkit-line-clamp: unset; }

  /* Single post */
  .post-hero { max-height: 520px; aspect-ratio: unset; }
  .post-header { max-width: 760px; margin-inline: auto; padding: 2.5rem var(--pad) 1.5rem; }
  .post-title { font-size: 2.8rem; }
  .post-subtitle { font-size: 1.15rem; }
  .post-content { max-width: 760px; margin-inline: auto; padding: 2rem var(--pad) 0; font-size: 1.0625rem; line-height: 1.95; }
  .post-footer { max-width: 760px; margin-inline: auto; padding: 2rem var(--pad) 0; margin-top: 2.5rem; }

  /* Contact */
  .contact-page-header { max-width: var(--max); margin-inline: auto; padding: 3rem var(--pad) 1.5rem; }
  .contact-body { max-width: var(--max); margin-inline: auto; padding: 0 var(--pad) 4rem; grid-template-columns: 1fr 320px; gap: 5rem; }

  /* Footer */
  .site-footer { padding: 4rem var(--pad) 2.5rem; }
  .footer-inner { max-width: var(--max); margin-inline: auto; }
}

@media (min-width: 1280px) {
  .hero-name { font-size: 6.5rem; }
}
