/* ============================================
   Taruno News — tabloid-quick / youth-oriented
   ============================================ */

:root {
  --primary: #8F1D2C;
  --accent: #F15B5B;
  --bg: #FFF4F4;
  --text: #321015;
  --muted: #C66A72;
  --border: #E8B4B8;
  --white: #FFFFFF;
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 28px;
  --space-xl: 40px;
  --radius-pill: 999px;
  --radius-card: 18px;
  --container: 960px;
  --font-sans: "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  --line-tight: 1.2;
  --line-body: 1.45;
  --transition: 0.15s ease;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: var(--line-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- typography: compact-news --- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: var(--line-tight);
  color: var(--primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 1.625rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; }

p {
  margin-bottom: var(--space-sm);
}

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

.lead {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

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

/* bracket-label tags */
.tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.tag::before { content: "["; }
.tag::after { content: "]"; }

/* filled-accent button */
.btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--accent);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--primary);
  color: var(--white);
}

.text-link {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* --- layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.site-main {
  padding: var(--space-md) 0 var(--space-xl);
}

.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-sm { margin-top: var(--space-sm); }

/* --- compact-topbar header --- */
.topbar {
  background: var(--primary);
  color: var(--white);
  border-bottom: 3px solid var(--accent);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 44px;
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.topbar-meta {
  display: none;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.nav-toggle {
  padding: 0.25rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--white);
  border-radius: var(--radius-pill);
}

/* category-tags-row nav */
.cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cat-nav-inner::-webkit-scrollbar {
  display: none;
}

.cat-nav a {
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-decoration: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  transition: background var(--transition), border-color var(--transition);
}

.cat-nav a:hover,
.cat-nav a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--primary);
  padding: var(--space-sm);
  border-bottom: 3px solid var(--accent);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-nav a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.topbar-wrap {
  position: relative;
}

/* --- hero: stacked-headlines-no-image --- */
.hero-stack {
  padding: var(--space-md) 0 var(--space-sm);
  border-bottom: 2px solid var(--primary);
  margin-bottom: var(--space-md);
}

.hero-stack__label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.hero-stack h1 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.hero-headlines {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.hero-headline-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-top: 1px dashed var(--border);
}

.hero-headline-item:first-child {
  border-top: none;
}

.hero-headline-item .tag {
  flex-shrink: 0;
}

.hero-headline-item a {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: var(--line-tight);
}

.hero-headline-item a:hover {
  color: var(--accent);
}

.hero-headline-item .muted {
  flex-shrink: 0;
  margin-left: auto;
}

/* --- bento-grid with image-overlay cards --- */
.bento-feed {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
}

.bento-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 140px;
  background: var(--primary);
}

.bento-card--wide {
  grid-column: span 4;
  min-height: 200px;
}

.bento-card--tall {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 280px;
}

.bento-card--half {
  grid-column: span 3;
}

.bento-card--third {
  grid-column: span 2;
}

.bento-card__thumb {
  position: absolute;
  inset: 0;
}

.bento-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.bento-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-sm);
  background: linear-gradient(0deg, rgba(50, 16, 21, 0.92) 0%, rgba(50, 16, 21, 0.35) 55%, transparent 100%);
}

.bento-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 4px;
}

.bento-card__meta .muted {
  color: rgba(255, 255, 255, 0.65);
}

.bento-card__title {
  font-size: 0.875rem;
  font-weight: 800;
  line-height: var(--line-tight);
}

.bento-card__title a {
  color: var(--white);
  text-decoration: none;
}

.bento-card__title a:hover {
  color: var(--accent);
}

.bento-card__excerpt {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-card .tag {
  color: var(--accent);
}

/* --- compact-dense-list --- */
.dense-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--primary);
}

.dense-list__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-sm);
  align-items: start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.dense-list__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-card);
  overflow: hidden;
  flex-shrink: 0;
}

.dense-list__thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.dense-list__body h3 {
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.dense-list__body h3 a {
  color: var(--text);
  text-decoration: none;
}

.dense-list__body h3 a:hover {
  color: var(--accent);
}

.dense-list__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 2px;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* --- article: image-heavy --- */
.page-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.article-hero-image {
  margin-bottom: var(--space-md);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.article-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-content h2 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  padding-left: var(--space-sm);
  border-left: 3px solid var(--accent);
}

.article-content ul,
.article-content ol {
  margin: var(--space-sm) 0;
  padding-left: var(--space-md);
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: var(--space-xs);
}

.article-content blockquote {
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  border-left: 4px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.article-inline-image {
  margin: var(--space-md) 0;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.article-inline-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 320px;
}

/* sidebar: author-widget-only, minimal-name-only */
.sidebar-author {
  padding: var(--space-sm);
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border);
}

.sidebar-author__label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.sidebar-author__name {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary);
}

/* --- institutional pages --- */
.prose-section {
  max-width: 680px;
}

.prose-section h2 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.contact-grid {
  display: grid;
  gap: var(--space-md);
}

.contact-card {
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border);
}

.contact-card h2 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

/* --- footer: stacked-links --- */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-brand {
  margin-bottom: var(--space-md);
}

.footer-brand .site-logo {
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  font-size: 0.8125rem;
  line-height: var(--line-body);
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
}

.footer-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-stack-group h4 {
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.footer-stack-group ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-stack-group a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-stack-group a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom > p {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-xs);
}

/* cookie: inline-footer-note */
.cookie-notice {
  display: none;
  font-size: 0.625rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.cookie-notice.is-visible {
  display: block;
}

.cookie-notice a {
  color: var(--accent);
}

.cookie-accept {
  display: inline;
  padding: 0;
  margin-left: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  text-decoration: underline;
  color: var(--accent);
  background: none;
}

.cookie-accept:hover {
  color: var(--white);
}

/* --- responsive --- */
@media (min-width: 640px) {
  .topbar-meta {
    display: block;
  }

  .footer-stack {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .footer-stack-group {
    min-width: 140px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  h1 { font-size: 2rem; }

  .hero-stack h1 {
    font-size: 2.125rem;
  }

  .article-layout {
    grid-template-columns: 1fr 200px;
    align-items: start;
  }

  .sidebar-author {
    position: sticky;
    top: var(--space-sm);
  }
}

@media (max-width: 767px) {
  .bento-card--wide,
  .bento-card--tall,
  .bento-card--half,
  .bento-card--third {
    grid-column: span 6;
    grid-row: span 1;
    min-height: 160px;
  }
}
