/*
Theme Name:  Notebook — دفتر فيصل
Theme URI:   https://github.com/faisal-asiri
Author:      فيصل عسيري
Author URI:  https://faisal-asiri.com
Description: ثيم مدونة بتصميم الدفتر المحاط بالحلزون — خفيف وأنيق وشخصي
Version:     1.0.0
Text Domain: notebook
Tags:        blog, rtl, handwritten, minimal, custom-colors
*/

/* ═══════════════════════════════════════
   ROOT VARIABLES
═══════════════════════════════════════ */
:root {
  --paper:        #faf6ee;
  --paper-dark:   #f0e9d8;
  --paper-mid:    #f5f0e4;
  --paper-hover:  #f7f1e3;
  --line:         #c9d9f0;
  --line-faint:   #dde8f5;

  --ink:          #1a1a2e;
  --ink-mid:      #2e2e4a;
  --ink-faint:    #3a3a5c;
  --ink-ghost:    #8888aa;

  --blue-ink:     #1a3fb5;
  --blue-light:   #3a6ae0;
  --red-ink:      #c0392b;
  --green-ink:    #1a7a4a;

  --desk:         #2d2420;

  --tape-y:       rgba(255,230,100,0.55);
  --tape-b:       rgba(180,220,255,0.55);
  --tape-p:       rgba(220,180,255,0.5);
  --tape-g:       rgba(180,255,200,0.5);

  --spiral:       #8a8a8a;
  --shadow:       rgba(80,60,30,0.18);

  --radius:       4px 18px 18px 4px;
  --font-hand:    'Kalam', cursive;
  --font-ar:      'Cairo', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --content-width: 820px;
  --sidebar-width: 280px;
  --gap: 32px;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--desk);
  background-image:
    radial-gradient(ellipse at 20% 50%, #3d3028 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, #1a1a2e 0%, transparent 50%);
  min-height: 100vh;
  font-family: var(--font-ar);
  color: var(--ink);
  direction: rtl;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--blue-ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-light); }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════
   DESK SCENE ITEMS (fixed decorations)
═══════════════════════════════════════ */
.desk-decor {
  position: fixed;
  pointer-events: none;
  font-size: 36px;
  opacity: 0.5;
  filter: drop-shadow(2px 3px 6px rgba(0,0,0,0.4));
  z-index: 0;
  animation: desk-float 5s ease-in-out infinite;
}
.desk-decor:nth-child(1) { bottom:60px;  right:70px;  animation-delay:0s;  }
.desk-decor:nth-child(2) { top:90px;     left:70px;   animation-delay:1.2s;}
.desk-decor:nth-child(3) { bottom:120px; left:60px;   animation-delay:2.3s;}
.desk-decor:nth-child(4) { top:60px;     right:130px; animation-delay:0.7s;}
@keyframes desk-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ═══════════════════════════════════════
   SITE WRAPPER
═══════════════════════════════════════ */
.site-wrapper {
  max-width: calc(var(--content-width) + 60px);
  margin: 0 auto;
  padding: 32px 20px 80px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════
   SPIRAL
═══════════════════════════════════════ */
.spiral-binding {
  position: absolute;
  right: -20px;
  top: 40px; bottom: 40px;
  width: 36px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.coil {
  width: 28px; height: 18px;
  border: 3px solid #7a7a7a;
  border-radius: 50%;
  background: linear-gradient(180deg, #aaa 0%, #666 50%, #999 100%);
  box-shadow: 1px 2px 4px rgba(0,0,0,.35), inset 0 1px 2px rgba(255,255,255,.2);
  position: relative;
  flex-shrink: 0;
}
.coil::before {
  content:''; position:absolute; inset:3px 4px;
  border-radius:50%;
  background:linear-gradient(135deg,#c0c0c0,#888);
}

/* ═══════════════════════════════════════
   PAPER SURFACE (shared by all pages)
═══════════════════════════════════════ */
.paper-surface {
  background: var(--paper);
  border-radius: var(--radius);
  position: relative;
  filter: drop-shadow(0 16px 50px rgba(0,0,0,.5)) drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

/* Ruled lines */
.paper-surface::before {
  content:'';
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(
    transparent, transparent 31px,
    var(--line) 31px, var(--line) 32px
  );
  background-position: 0 64px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
/* Red margin line */
.paper-surface::after {
  content:''; position:absolute;
  right: 64px; top:0; bottom:0;
  width: 1.5px;
  background: rgba(200,60,60,.3);
  pointer-events: none;
  z-index: 0;
}

/* Hole punches */
.paper-holes {
  position:absolute;
  right:0; top:0; bottom:0;
  width: 64px;
  display:flex; flex-direction:column;
  justify-content:space-around; align-items:center;
  pointer-events:none; z-index:2;
}
.paper-hole {
  width:18px; height:18px; border-radius:50%;
  background: var(--desk);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5), 0 0 0 2px rgba(160,140,100,.3);
}

/* Top colour stripe */
.paper-stripe {
  position:absolute; top:0; left:0; right:0; height:8px;
  background:linear-gradient(90deg,#1a3fb5,#3a6ae0,#1a3fb5);
  opacity:.75;
  border-radius: 4px 18px 0 0;
  pointer-events:none;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.site-header {
  position: relative;
  z-index: 10;
  margin-bottom: var(--gap);
}

.header-inner {
  padding: 28px 80px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative; z-index: 2;
}

.site-branding {}
.site-title {
  font-family: var(--font-ar);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 40px);
  color: var(--ink);
  line-height: 1;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--blue-ink); }

.site-tagline {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* Main nav */
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  padding: 8px 16px 10px;
  border-radius: 10px 10px 0 0;
  background: var(--paper-dark);
  border: 1.5px solid rgba(0,0,0,.08);
  border-bottom: none;
  transition: all .25s;
  white-space: nowrap;
  position: relative;
  top: 2px;
}
.main-nav a:hover,
.main-nav a.current-menu-item { background: var(--paper); color: var(--blue-ink); }

/* Header tape */
.header-tape {
  position:absolute; top:8px; right:180px;
  background: var(--tape-y);
  font-family: var(--font-hand); font-size:12px;
  padding:4px 18px; transform:rotate(-1.2deg);
  pointer-events:none; z-index:5;
}
.header-tape::before {
  content:''; position:absolute; inset:0;
  background:repeating-linear-gradient(90deg,transparent,transparent 4px,rgba(255,255,255,.08) 4px,rgba(255,255,255,.08) 5px);
}

/* ═══════════════════════════════════════
   LAYOUT: CONTENT + SIDEBAR
═══════════════════════════════════════ */
.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  align-items: start;
}
.content-area.no-sidebar { grid-template-columns: 1fr; }

.main-content  { min-width: 0; }
.sidebar-area  { min-width: 0; }

/* ═══════════════════════════════════════
   POST CARD (archive / index)
═══════════════════════════════════════ */
.post-card {
  background: var(--paper);
  border-radius: var(--radius);
  position: relative;
  margin-bottom: var(--gap);
  overflow: hidden;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
  transition: transform .3s, filter .3s;
}
.post-card:hover {
  transform: translateY(-4px) rotate(-.3deg);
  filter: drop-shadow(0 14px 36px rgba(0,0,0,.4));
}

/* ruled lines on card */
.post-card::before {
  content:'';
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(
    transparent, transparent 31px, var(--line) 31px, var(--line) 32px
  );
  background-position: 0 56px;
  pointer-events:none; z-index:0;
}
.post-card::after {
  content:''; position:absolute;
  right:56px; top:0; bottom:0; width:1.5px;
  background:rgba(200,60,60,.25);
  pointer-events:none; z-index:0;
}

.post-card-stripe {
  height: 6px;
  background:linear-gradient(90deg,#1a3fb5,#3a6ae0,#1a3fb5);
  opacity:.7;
  border-radius: 4px 18px 0 0;
}

.post-card-inner {
  padding: 28px 72px 28px 32px;
  position: relative; z-index: 2;
}

.post-card-holes {
  position:absolute; right:0; top:0; bottom:0; width:56px;
  display:flex; flex-direction:column; justify-content:space-around; align-items:center;
  pointer-events:none; z-index:3;
}

.post-meta-line {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.post-date {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px;
  color: var(--red-ink); opacity: .8;
}
.post-cat a {
  font-family: var(--font-hand);
  font-size: 12px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px;
  background: rgba(26,63,181,.1); color: var(--blue-ink);
  border: 1px dashed var(--blue-ink);
}
.post-read-time {
  font-family: var(--font-hand); font-size: 12px;
  color: var(--ink-ghost);
}

.post-card-title {
  font-family: var(--font-ar); font-weight: 900;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--ink); line-height: 1.3;
  margin-bottom: 10px;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover {
  color: var(--blue-ink);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--red-ink);
  text-underline-offset: 5px;
}

.post-card-excerpt {
  font-family: var(--font-ar); font-size: 14px;
  color: var(--ink-faint); line-height: 2;
  margin-bottom: 16px;
}

.post-card-footer {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
}

.read-more-btn {
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-ar); font-size: 13px; font-weight: 700;
  color: var(--blue-ink);
  border: 2px dashed var(--blue-ink);
  padding: 7px 18px; border-radius: 20px;
  transition: all .2s;
}
.read-more-btn:hover {
  background: var(--blue-ink); color: white;
  transform: translateY(-2px);
}

.post-tags { display:flex; flex-wrap:wrap; gap:6px; }
.post-tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing:1px;
  padding: 3px 10px; border-radius: 3px;
  background: rgba(26,63,181,.08); color: var(--blue-ink);
}

/* sticker on card */
.card-sticker {
  position:absolute; top:16px; left:18px;
  background: #fff8c0; color:#7a5500;
  border: 1.5px solid #f0d060;
  border-radius:8px; padding:5px 12px;
  font-family:var(--font-hand); font-size:12px; font-weight:700;
  transform:rotate(-3deg);
  box-shadow:2px 2px 6px rgba(0,0,0,.1);
  z-index:4;
}

/* ═══════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════ */
.single-post-wrap {
  padding: 40px 80px 50px 40px;
  position: relative; z-index: 2;
}

.single-post-header { margin-bottom: 30px; }

.single-post-title {
  font-family: var(--font-ar); font-weight: 900;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--ink); line-height: 1.25;
  margin-bottom: 12px;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(26,63,181,.35);
  text-underline-offset: 7px;
}

.single-post-meta {
  display:flex; flex-wrap:wrap; gap:14px; align-items:center;
  padding-bottom:14px;
  border-bottom: 1px dashed rgba(0,0,0,.12);
  margin-bottom: 24px;
}

/* Post content typography */
.post-content {
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 2.1;
  color: var(--ink-mid);
}
.post-content p  { margin-bottom: 1.6em; }
.post-content h2 {
  font-size: 22px; font-weight: 900; color: var(--blue-ink);
  margin: 2em 0 .75em;
  font-family: var(--font-ar);
}
.post-content h3 {
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin: 1.5em 0 .6em;
}
.post-content ul, .post-content ol {
  margin: 1em 0 1.5em 1.5em;
  list-style: initial;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .5em; line-height: 1.8; }
.post-content blockquote {
  border-right: 4px solid var(--blue-ink);
  padding: 14px 20px;
  margin: 1.5em 0;
  background: rgba(26,63,181,.05);
  border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--ink-faint);
}
.post-content code {
  font-family: var(--font-mono); font-size: 13px;
  background: rgba(26,63,181,.08);
  padding: 2px 7px; border-radius: 4px;
  color: var(--blue-ink);
}
.post-content pre {
  background: var(--ink); color: #c8d8ff;
  font-family: var(--font-mono); font-size: 13px;
  padding: 20px 24px; border-radius: 10px;
  overflow-x: auto; margin: 1.5em 0;
  line-height: 1.7;
}
.post-content pre code { background:none; color:inherit; padding:0; }
.post-content a {
  color: var(--blue-ink);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}
.post-content a:hover { text-decoration-style: solid; }
.post-content img {
  border-radius: 10px;
  margin: 1.5em 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.post-content strong { color: var(--blue-ink); font-weight: 700; }
.post-content em { color: var(--red-ink); }

/* post nav */
.post-navigation {
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px dashed rgba(0,0,0,.12);
}
.post-nav-btn {
  background: var(--paper-dark); border-radius:10px;
  padding: 14px 18px;
  border: 1.5px solid rgba(0,0,0,.08);
  transition: all .25s;
}
.post-nav-btn:hover { background:var(--paper-hover); transform:translateY(-2px); }
.post-nav-label {
  font-family:var(--font-mono); font-size:9px; letter-spacing:2px;
  color:var(--ink-ghost); display:block; margin-bottom:4px;
}
.post-nav-title {
  font-family:var(--font-ar); font-size:14px; font-weight:700; color:var(--ink);
}

/* author box */
.author-box {
  display:flex; gap:20px; align-items:flex-start;
  background: var(--paper-dark);
  border-radius:14px; padding:22px 24px;
  margin-top: 32px;
  border: 1.5px solid rgba(0,0,0,.07);
  position:relative;
}
.author-avatar { width:64px; height:64px; border-radius:50%; flex-shrink:0; overflow:hidden; }
.author-avatar img { width:100%; height:100%; object-fit:cover; }
.author-name { font-family:var(--font-ar); font-size:16px; font-weight:900; color:var(--ink); }
.author-bio  { font-family:var(--font-ar); font-size:13px; color:var(--ink-faint); margin-top:4px; line-height:1.7; }

/* ═══════════════════════════════════════
   COMMENTS
═══════════════════════════════════════ */
.comments-area {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px dashed rgba(0,0,0,.12);
}
.comments-title {
  font-family:var(--font-ar); font-weight:900; font-size:20px;
  color:var(--blue-ink); margin-bottom:20px;
}
.comment-list { display:flex; flex-direction:column; gap:16px; }
.comment-body {
  background:rgba(255,255,255,.6);
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px; padding:16px 20px;
  box-shadow:1px 2px 6px rgba(0,0,0,.05);
}
.comment-author-name { font-family:var(--font-ar); font-weight:700; color:var(--ink); font-size:14px; }
.comment-date { font-family:var(--font-mono); font-size:10px; color:var(--ink-ghost); letter-spacing:1px; margin-bottom:8px; }
.comment-text { font-family:var(--font-ar); font-size:14px; color:var(--ink-faint); line-height:1.8; }

/* comment form */
.comment-form-wrap { margin-top:24px; }
.comment-form-wrap label {
  display:block; font-family:var(--font-ar); font-size:13px; font-weight:700;
  color:var(--ink-faint); margin-bottom:6px;
}
.comment-form-wrap input,
.comment-form-wrap textarea {
  width:100%; padding:12px 16px;
  background:rgba(255,255,255,.7);
  border:1.5px solid rgba(0,0,0,.1);
  border-radius:10px; outline:none;
  font-family:var(--font-ar); font-size:14px; color:var(--ink);
  transition:.2s; margin-bottom:16px;
  resize: vertical;
}
.comment-form-wrap input:focus,
.comment-form-wrap textarea:focus {
  border-color:var(--blue-ink);
  box-shadow:0 0 0 3px rgba(26,63,181,.1);
}
.submit-btn {
  background:var(--blue-ink); color:white;
  border:none; border-radius:25px;
  padding:13px 32px;
  font-family:var(--font-ar); font-size:15px; font-weight:700;
  cursor:pointer; transition:all .2s;
  box-shadow:0 4px 14px rgba(26,63,181,.3);
}
.submit-btn:hover { background:var(--blue-light); transform:translateY(-2px); }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar-widget {
  background: var(--paper);
  border-radius: var(--radius);
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.28));
}

/* ruled lines on widget */
.sidebar-widget::before {
  content:''; position:absolute; inset:0;
  background-image: repeating-linear-gradient(
    transparent, transparent 31px, var(--line) 31px, var(--line) 32px
  );
  background-position: 0 50px;
  pointer-events:none; z-index:0;
}

.widget-stripe {
  height:5px;
  background:linear-gradient(90deg,#1a3fb5,#3a6ae0);
  opacity:.7; border-radius: 4px 18px 0 0;
}

.widget-inner {
  padding: 20px 24px 22px;
  position:relative; z-index:2;
}

.widget-title {
  font-family: var(--font-ar); font-weight: 900; font-size: 16px;
  color: var(--blue-ink);
  border-bottom: 2px dashed rgba(26,63,181,.2);
  padding-bottom: 10px; margin-bottom: 14px;
}

.widget ul { display:flex; flex-direction:column; gap:8px; }
.widget ul li a {
  font-family:var(--font-ar); font-size:13px; color:var(--ink-faint);
  display:flex; align-items:center; gap:8px;
  padding:6px 0; border-bottom:1px dashed rgba(0,0,0,.07);
  transition:.2s;
}
.widget ul li a:hover { color:var(--blue-ink); padding-right:6px; }
.widget ul li a::before { content:'›'; color:var(--blue-ink); font-size:16px; }

/* search widget */
.widget-search { display:flex; gap:8px; }
.widget-search input {
  flex:1; padding:10px 14px;
  background:rgba(255,255,255,.7);
  border:1.5px solid rgba(0,0,0,.1);
  border-radius:20px; outline:none;
  font-family:var(--font-ar); font-size:13px; color:var(--ink);
  transition:.2s;
}
.widget-search input:focus { border-color:var(--blue-ink); }
.widget-search button {
  background:var(--blue-ink); color:white;
  border:none; border-radius:20px;
  padding:10px 18px;
  font-family:var(--font-ar); font-size:12px; font-weight:700;
  cursor:pointer; transition:.2s;
}
.widget-search button:hover { background:var(--blue-light); }

/* tag cloud */
.tag-cloud { display:flex; flex-wrap:wrap; gap:7px; }
.tag-cloud a {
  font-family:var(--font-mono); font-size:10px; letter-spacing:1px;
  padding:5px 12px; border-radius:4px;
  background:rgba(26,63,181,.08); color:var(--blue-ink);
  border:1px solid rgba(26,63,181,.2);
  transition:.2s;
}
.tag-cloud a:hover { background:var(--blue-ink); color:white; }

/* ═══════════════════════════════════════
   PAGINATION
═══════════════════════════════════════ */
.pagination {
  display:flex; justify-content:center; gap:8px; flex-wrap:wrap;
  margin-top: 32px;
}
.pagination a,
.pagination span {
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:8px;
  font-family:var(--font-mono); font-size:13px; font-weight:700;
  background:var(--paper-dark); color:var(--ink-faint);
  border:1.5px solid rgba(0,0,0,.1);
  transition:.2s;
}
.pagination a:hover { background:var(--blue-ink); color:white; border-color:var(--blue-ink); }
.pagination .current { background:var(--blue-ink); color:white; border-color:var(--blue-ink); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  margin-top: var(--gap);
  position: relative;
}

.footer-inner {
  padding: 36px 80px 32px 40px;
  position:relative; z-index:2;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .site-title { font-size:22px; }
.footer-brand .site-tagline { margin-top:6px; }

.footer-col-title {
  font-family:var(--font-ar); font-weight:900; font-size:14px;
  color:var(--blue-ink); margin-bottom:12px;
}
.footer-links { display:flex; flex-direction:column; gap:8px; }
.footer-links a {
  font-family:var(--font-ar); font-size:13px; color:var(--ink-faint);
  transition:.2s;
}
.footer-links a:hover { color:var(--blue-ink); }

.footer-bottom {
  border-top: 1px dashed rgba(0,0,0,.12);
  padding: 16px 40px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-family:var(--font-hand); font-size:13px; color:var(--ink-ghost);
  position:relative; z-index:2;
}
.footer-love { color:var(--red-ink); font-size:16px; }

/* footer sticker */
.footer-sticker {
  position:absolute; top:-14px; left:60px;
  background:#1a1a2e; color:#c8ff00;
  border:1.5px solid #3a3a5c;
  border-radius:8px; padding:6px 14px;
  font-family:var(--font-hand); font-size:12px; font-weight:700;
  transform:rotate(-2deg);
  box-shadow:2px 3px 8px rgba(0,0,0,.2);
  z-index:5;
}

/* ═══════════════════════════════════════
   ARCHIVE / CATEGORY HEADER
═══════════════════════════════════════ */
.archive-header {
  padding: 32px 80px 24px 40px;
  position:relative; z-index:2;
  border-bottom: 1px dashed rgba(0,0,0,.1);
  margin-bottom: var(--gap);
}
.archive-label {
  font-family:var(--font-mono); font-size:10px; letter-spacing:3px;
  color:var(--red-ink); margin-bottom:6px;
}
.archive-title {
  font-family:var(--font-ar); font-weight:900; font-size:clamp(24px,4vw,36px);
  color:var(--ink);
  text-decoration:underline;
  text-decoration-style:wavy;
  text-decoration-color:rgba(26,63,181,.35);
  text-underline-offset:6px;
}
.archive-desc { font-family:var(--font-ar); font-size:14px; color:var(--ink-faint); margin-top:8px; line-height:1.8; }

/* ═══════════════════════════════════════
   404 PAGE
═══════════════════════════════════════ */
.error-404-wrap {
  text-align:center;
  padding: 60px 40px;
  position:relative; z-index:2;
}
.error-404-num {
  font-family:var(--font-mono); font-size:clamp(80px,15vw,140px);
  font-weight:700; color:var(--blue-ink);
  text-decoration:line-through;
  text-decoration-color:var(--red-ink);
  text-decoration-thickness:4px;
  animation:shake 3s ease-in-out infinite;
}
@keyframes shake {
  0%,100%{transform:rotate(-1deg)} 25%{transform:rotate(1.5deg)}
  50%{transform:rotate(-.5deg)}   75%{transform:rotate(1deg)}
}
.error-title { font-family:var(--font-ar); font-weight:900; font-size:clamp(20px,3vw,28px); color:var(--red-ink); margin-top:12px; }
.error-msg   { font-family:var(--font-ar); font-size:15px; color:var(--ink-faint); margin-top:10px; line-height:1.8; }
.error-home  {
  display:inline-flex; align-items:center; gap:10px;
  margin-top:28px; background:var(--blue-ink); color:white;
  border:none; border-radius:30px; padding:14px 30px;
  font-family:var(--font-ar); font-size:16px; font-weight:700;
  transition:all .2s; box-shadow:0 4px 16px rgba(26,63,181,.3);
}
.error-home:hover { transform:translateY(-3px); background:var(--blue-light); color:white; }

/* ═══════════════════════════════════════
   SEARCH RESULTS
═══════════════════════════════════════ */
.search-banner {
  background:rgba(26,63,181,.06);
  border-radius:10px; padding:16px 20px;
  font-family:var(--font-ar); font-size:14px; color:var(--ink-faint);
  margin-bottom:20px;
  border:1px dashed rgba(26,63,181,.2);
}
.search-banner strong { color:var(--blue-ink); }

/* ═══════════════════════════════════════
   UTILITIES
═══════════════════════════════════════ */
.doodle-divider {
  height:2px;
  background:repeating-linear-gradient(90deg,var(--blue-ink) 0,var(--blue-ink) 8px,transparent 8px,transparent 14px);
  opacity:.25; margin:20px 0;
}
.section-label {
  font-family:var(--font-mono); font-size:10px; letter-spacing:3px;
  color:var(--red-ink); text-transform:uppercase;
}
.blink { animation:blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .content-area { grid-template-columns:1fr; }
  .footer-inner  { grid-template-columns:1fr; gap:24px; }
  .header-inner  { padding:24px 64px 20px 28px; }
  .single-post-wrap { padding:28px 64px 36px 28px; }
  .post-card-inner  { padding:22px 64px 22px 24px; }
  .archive-header   { padding:24px 64px 20px 28px; }
  .paper-surface::after { right:48px; }
  .paper-holes { width:48px; }
  .paper-hole  { width:15px; height:15px; }
  .post-navigation { grid-template-columns:1fr; }
  .desk-decor { display:none; }
}
