/* ═══════════════════════════════════════════════════════════════
   UJIYARI — Layout
═══════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--content { max-width: var(--max-width-content); }
.container--full    { max-width: var(--max-width-full); }

/* ── Page wrapper ──────────────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-main {
  flex: 1;
  padding-bottom: var(--space-20);
}

/* ── Two-column layout ─────────────────────────────────────── */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--space-10);
  align-items: start;
}

.layout-with-sidebar--article {
  gap: var(--space-8);
}

.layout-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

/* ── Content grid ──────────────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

/* ── Section ───────────────────────────────────────────────── */
.section { margin-bottom: var(--space-16); padding-top: var(--space-4); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);   /* explicit — not inherited */
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
}

.section-title--accent {
  position: relative;
  padding-left: var(--space-4);
}

.section-title--accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, var(--color-accent), var(--color-brand-light));
  border-radius: var(--radius-full);
}

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--color-brand-dark) 0%, var(--color-brand) 50%, var(--color-brand-mid) 100%);
  padding: var(--space-10) 0 var(--space-12);
  margin-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}

/* Decorative orb */
.page-header::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(232,131,10,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Wave bottom edge */
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.page-header__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.page-header__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-brand-dark);
  color: rgba(255,255,255,0.6);
  padding: var(--space-12) 0 var(--space-6);
  font-size: var(--text-sm);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand-light), var(--color-accent), var(--color-brand-light));
}

.footer-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-6);
}

.footer-brand {
  min-width: 0;
}

.footer-logo img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-tagline {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-2);
  max-width: 240px;
  line-height: var(--leading-relaxed);
}

.footer-author__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-3);
  font-weight: var(--font-semibold);
}

.footer-author__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}

.footer-author__top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: nowrap;
}

.footer-author__avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(10,102,194,0.7);
  display: block;
}

.footer-author__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-author__name {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: rgba(255,255,255,0.92);
  line-height: 1.2;
}

.footer-author__role {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.3;
}

.footer-author__linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: #0a66c2;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: #fff;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.footer-author__linkedin:hover {
  background: #004182;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-3);
  font-weight: var(--font-semibold);
  white-space: nowrap;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--color-white); }

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
