/* Howaclawa Distinctive Editorial Theme */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;800&family=Manrope:wght@400;500;700&display=swap');

:root {
  --color-bg: #090909;
  --color-bg-elevated: #101010;
  --color-surface: #151515;
  --color-text: #f8f5ef;
  --color-text-muted: #9c968f;
  --color-accent: #e85d04;
  --color-accent-soft: #ff9f43;
  --color-border: #2b2622;
  --color-glow: rgba(232, 93, 4, 0.2);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection {
  background: rgba(255, 159, 67, 0.28);
  color: #fff4e8;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 14% -10%, rgba(255, 159, 67, 0.17), transparent 55%),
    radial-gradient(1000px 680px at 88% 8%, rgba(232, 93, 4, 0.14), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, rgba(255, 110, 45, 0.10), transparent 62%);
  pointer-events: none;
  z-index: -2;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: -1;
}

.site-container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  background: #1b120c;
  color: var(--color-accent-soft);
  border: 1px solid var(--color-accent);
  text-decoration: none;
}

.site-header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: rgba(9, 9, 9, 0.84);
  backdrop-filter: blur(14px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }

.site-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.site-title:hover { color: var(--color-accent-soft); }

.about-banner {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  margin: 0 0 1.2rem;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-pill {
  border: 1px solid var(--color-border);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  transition: 180ms ease;
}

.nav-pill:hover {
  color: var(--color-accent-soft);
  border-color: #5d402e;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.08);
}

.nav-pill.is-active {
  color: #140d08;
  border-color: transparent;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
}

.hero {
  padding: 6.2rem 0 4.5rem;
  position: relative;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 360px);
  align-items: center;
  gap: 1.4rem;
}

.hero-content--centered {
  max-width: 760px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-orb {
  width: clamp(220px, 28vw, 360px);
  height: clamp(220px, 28vw, 360px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 159, 67, 0.35);
  box-shadow: 0 0 0 10px rgba(232, 93, 4, 0.08), 0 18px 60px rgba(0, 0, 0, 0.42);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--color-accent);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: var(--font-display);
  color: var(--color-accent-soft);
  font-size: 1.15rem;
  margin-bottom: 1.6rem;
}

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.cta {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.cta-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-soft) 100%);
  color: #1c1008;
}

.cta-primary:hover { filter: brightness(1.08); }

.cta-ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.cta-ghost:hover { border-color: var(--color-accent-soft); color: var(--color-accent-soft); }

.home-content { padding: 1rem 0 6rem; }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 0 1.8rem;
}

.signal-item {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(20, 20, 20, 0.8);
}

.signal-label {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.64rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.signal-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: #f6d9bf;
}

.evidence-bar {
  margin: 0 0 1.8rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed #5a402f;
  background: linear-gradient(160deg, rgba(255, 159, 67, 0.08), rgba(232, 93, 4, 0.02));
}

.evidence-bar p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.evidence-bar strong {
  color: var(--color-text);
}

.section-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.latest-inline {
  margin-bottom: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg-elevated);
}

.latest-inline-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.latest-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

.latest-inline-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  line-height: 1.2;
  margin: 0;
}

.fresh-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 159, 67, 0.35);
  background: rgba(255, 159, 67, 0.12);
  color: #ffd9b8;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-inline-link p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 68ch;
}

.featured-post {
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(160deg, rgba(255, 159, 67, 0.08), rgba(232, 93, 4, 0.02));
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.featured-link { text-decoration: none; color: inherit; display: block; }
.featured-link h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.featured-link time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

.featured-link p { color: var(--color-text-muted); max-width: 70ch; }

.home-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  margin-bottom: 2.8rem;
  align-items: stretch;
}

.home-top-grid .featured-post {
  margin-bottom: 0;
  height: 100%;
}

.now-panel {
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  background: linear-gradient(155deg, rgba(255, 159, 67, 0.07), rgba(232, 93, 4, 0.02));
  height: 100%;
}

.now-panel p {
  margin-bottom: 0.7rem;
  color: var(--color-text-muted);
}

.now-panel strong {
  color: var(--color-text);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  color: var(--color-text-muted);
  font-size: 0.74rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-preview {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg-elevated);
  transition: transform 180ms ease, border-color 180ms ease;
}

.post-preview:hover {
  transform: translateY(-3px);
  border-color: #4f3a2d;
}

.post-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1.2rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.post-date {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.post-excerpt { color: var(--color-text-muted); font-size: 0.92rem; }

.post-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.post-tag {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-soft);
  background: rgba(255, 159, 67, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(255, 159, 67, 0.2);
}

.latest-posts { margin-bottom: 3.5rem; }

.posts-year {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.6rem 0 0.8rem;
  color: #f2d2ba;
}

.archive-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.archive-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0.3rem 0 0.6rem;
}

.archive-desc {
  color: var(--color-text-muted);
  max-width: 50ch;
  margin: 0 auto;
}

.post-preview--wide {
  margin-bottom: 0.9rem;
}

.build-log {
  margin-bottom: 2rem;
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px dashed #4a382d;
  background: linear-gradient(160deg, rgba(255, 159, 67, 0.06), rgba(232, 93, 4, 0.01));
}

.build-log p {
  margin-bottom: 0.55rem;
  color: var(--color-text-muted);
}

.build-log strong {
  color: var(--color-text);
}

.build-log ol {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}

.build-log li {
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.build-log a {
  color: #ffd2ad;
  text-decoration: none;
}

.build-log a:hover {
  text-decoration: underline;
}

.about-preview {
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.about-preview p { margin-bottom: 0.9rem; color: var(--color-text-muted); }
.about-preview p:first-of-type { color: var(--color-text); font-size: 1.05rem; }

.about-link {
  color: var(--color-accent-soft);
  text-decoration: none;
  font-weight: 700;
}

.about-link:hover { text-decoration: underline; }

.about-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0.3rem 0 1rem;
}

.about-lead {
  font-size: 1.15rem;
  color: #efe5dc;
  max-width: 70ch;
  margin-bottom: 1.6rem;
}

.about-page {
  max-width: 760px;
}

.about-page p {
  margin-bottom: 1rem;
}

.about-closing {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  color: var(--color-text-muted);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.post-content {
  max-width: 72ch;
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.post-content .post-header {
  margin-bottom: 2.1rem;
  text-align: center;
}

.sources-box {
  margin: 1.2rem auto 0;
  max-width: 560px;
  padding: 0.95rem 1rem;
  border: 1px dashed #5a402f;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 159, 67, 0.08), rgba(232, 93, 4, 0.02));
  text-align: left;
}

.sources-title {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.sources-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sources-box li {
  margin-bottom: 0.25rem;
  color: #f3dfcc;
}

.sources-box a {
  color: #ffd2ad;
  text-decoration: none;
}

.sources-box a:hover {
  text-decoration: underline;
}

.post-navigation {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1rem;
}

.post-nav-link {
  padding: 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-elevated);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.post-nav-link:hover {
  transform: translateY(-2px);
  border-color: #4f3a2d;
}

.post-nav-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.post-nav-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
}

.post-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 3.3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.post-content .post-meta {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  justify-content: center;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.2;
  margin-top: 2.8rem;
  margin-bottom: 0.9rem;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}

.post-content p {
  margin-bottom: 1.3rem;
  color: #f2ede7;
  line-height: 1.82;
  text-wrap: pretty;
}

.post-content > p:first-of-type {
  font-size: 1.14rem;
  line-height: 1.75;
  color: #fbf5ef;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.4rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content a { color: var(--color-accent-soft); }
.post-content a:hover { color: var(--color-accent); }

.post-content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-content code {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 159, 67, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.9rem;
}

.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.9rem 1.1rem;
  margin: 1.6rem 0;
  color: #f1dfcf;
  font-style: italic;
  background: rgba(255, 159, 67, 0.07);
  border-radius: 8px;
}

article.post-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin: 1.4rem 0;
}

.post-content hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .hero { padding: 4.8rem 0 3.3rem; }
  .hero-shell { grid-template-columns: 1fr; gap: 1rem; }
  .hero-art { justify-content: flex-start; }
  .hero-orb {
    width: clamp(150px, 42vw, 220px);
    height: clamp(150px, 42vw, 220px);
  }
  .signal-strip { grid-template-columns: 1fr; }
  .home-top-grid { grid-template-columns: 1fr; }
  .latest-inline-head { align-items: flex-start; flex-direction: column; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .posts-grid { grid-template-columns: 1fr; }
  .featured-post, .about-preview, .now-panel { padding: 1.35rem; }
  .post-content { padding: 1.4rem 0 4rem; }
  .post-content h2 { font-size: 1.6rem; }
  .post-content h3 { font-size: 1.2rem; }
  .about-banner { max-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}