/* =====================================================
   Ömer Doğu — Kurumsal / Kişisel Site (v2.0 PRO)
   Tema: Modern Gece Mavisi + %100 Mobil ve Tarayıcı Uyumu
   ===================================================== */

:root {
  /* --- ANA RENK PALETİ --- */
  --bg:             #192c43;
  --bg-alt:         #1e344e;
  --surface:        #27415f;
  --surface-2:      #305173;
  --border:         #486789;
  --border-soft:    #385575;
  --text:           #f3f4f6;
  --text-muted:     #c1d2e3;
  --text-soft:      #b3c9dc;
  --text-faint:     #9fb7cc;
  --accent:         #3b82f6;
  --accent-soft:    #60a5fa;
  --accent-dim:     rgba(59, 130, 246, 0.12);
  --accent-contrast: #ffffff;
  --danger:         #ef4444;
  --success:        #10b981;
  
  /* --- Yarıçap ve Gölgeler --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-2: 0 16px 38px -12px rgba(3, 7, 18, 0.5);
  --container: 1160px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { 
  box-sizing: border-box; 
  /* iOS Safari'de tıklama gecikmesini önler ve stabil dokunma hissi verir */
  -webkit-tap-highlight-color: transparent;
}

html { 
  scroll-behavior: smooth; 
  /* iOS cihazlarda yatay döndürmede fontların kontrolsüz büyümesini engeller */
  -webkit-text-size-adjust: 100%; 
  /* Firefox Scrollbar Desteği */
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(800px 400px at 10% 20%, rgba(96, 165, 250, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* İçerik koruma kuralları */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  
  /* Mobilde sağa sola gereksiz kaymaları (horizontal overflow) engeller */
  overflow-x: hidden; 
}

/* Chrome, Edge ve Safari için özel Scrollbar Tasarımı */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-soft); }

/* Form alanları her zaman seçilebilir ve düzenlenebilir kalmalı */
input, textarea, select { 
  -webkit-user-select: text; 
  -moz-user-select: text; 
  user-select: text; 
}

img { 
  max-width: 100%; 
  height: auto;
  display: block; 
  -webkit-user-drag: none; 
  user-drag: none; 
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Akıllı Mobil Sınırlar (Notch/Çentik Uyumlu Konteyner) */
.container { 
  max-width: var(--container); 
  margin: 0 auto; 
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); 
}

::selection { background: var(--accent-soft); color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap; /* Mobilde buton yazılarının kırılmasını önler */
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); background: var(--accent-dim); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ---------- Top navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 29, 0.8);
  /* Safari için backdrop-filter desteği ön eki */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: var(--accent-contrast);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.brand-logo-img { height: 34px; max-width: 150px; width: auto; object-fit: contain; }

.profile-photo {
  width: 148px; height: 148px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface); box-shadow: var(--shadow-2); flex-shrink: 0;
}
.hero-with-photo { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .7rem; color: var(--text-muted); letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 16px; border-radius: 999px; font-size: .92rem; color: var(--text-muted);
  transition: all .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent-soft); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); cursor: pointer; }

/* Mobil Menü (Önemli Tarayıcı Güncellemeleri Yapıldı) */
@media (max-width: 1280px) {
  .nav-links { 
    position: fixed; 
    inset: 76px 0 0 0; 
    background: var(--bg-alt); 
    flex-direction: column; 
    align-items: stretch; 
    padding: 20px; 
    gap: 8px; 
    border-top: 1px solid var(--border-soft); 
    transform: translateY(-8px); 
    opacity: 0; 
    pointer-events: none; 
    transition: all .25s ease-in-out;
    /* Mobilde kısa ekranlarda taşan menü linklerinin kaydırılabilmesini sağlar */
    overflow-y: auto;
    max-height: calc(100vh - 76px); 
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 18px; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn span.label { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-soft); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent-soft); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; color: #ffffff; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 62ch; margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-soft); }
.hero-meta .item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .item strong { font-family: var(--font-head); font-size: 1.4rem; color: #ffffff; }
.hero-meta .item span { color: var(--text-faint); font-size: .82rem; }

/* Mobil için Hero Düzeni (Görsel ve metnin ortalanıp alt alta gelmesi sağlanır) */
@media (max-width: 768px) {
  .hero-with-photo {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }
  .hero h1 { margin: 0 auto 0.5em; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; width: 100%; }
  .hero-actions .btn { width: 100%; } /* Küçük ekranlarda butonlar tam genişlik alır */
  .hero-meta { justify-content: center; gap: 24px; width: 100%; }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #ffffff; }
.section-head p { color: var(--text-muted); margin-top: 6px; max-width: 60ch; }
.section-sub { color: var(--accent-soft); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

.divider { border: none; border-top: 1px solid var(--border-soft); margin: 0; }

/* ---------- Cards (Grid Sistemleri Mobilde Kusursuzlaştırıldı) ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) { 
  .grid-3 { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 640px) { 
  .grid-3, .grid-2 { grid-template-columns: 1fr; } 
  section { padding: 56px 0; } /* Mobilde dikey boşluklar biraz daraltıldı */
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; color: #ffffff; }
.card p { color: var(--text-muted); font-size: .95rem; }

.icon-badge {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-dim); color: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.2rem;
}

/* ---------- Tags / chips ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .76rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border-soft);
  transition: all .15s ease;
}
.tag:hover { border-color: var(--accent-soft); color: #ffffff; }
.tag.accent { background: var(--accent-dim); color: var(--accent-soft); border-color: transparent; }

/* ---------- Project cards ---------- */
.project-card { display: flex; flex-direction: column; height: 100%; position: relative; }
.project-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.project-card .lang-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-soft); display: inline-block; margin-right: 6px; }
.project-card .meta-row { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--text-faint); border-top: 1px solid var(--border-soft); }
.project-card a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Article list ---------- */
.article-item {
  display: grid; grid-template-columns: 132px 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--border-soft);
}
.article-item:first-child { padding-top: 0; }
.article-item .date-block { text-align: left; }
.article-item .date-block .d { font-family: var(--font-head); font-size: 1.6rem; color: var(--accent-soft); font-weight: 700; }
.article-item .date-block .m { font-size: .78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.article-item h3 { font-size: 1.1rem; margin-bottom: 8px; color: #ffffff; }
.article-item h3 a:hover { color: var(--accent-soft); }
.article-item p { color: var(--text-muted); font-size: .94rem; }
.article-item .src { font-size: .78rem; color: var(--text-faint); margin-top: 10px; display: block; }

@media (max-width: 640px) { 
  .article-item { 
    grid-template-columns: 1fr; 
    gap: 12px; 
  } 
  .article-item .date-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
}

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-row button {
  font: inherit; cursor: pointer; font-size: .82rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-soft);
  background: transparent; color: var(--text-muted);
  transition: all .2s ease;
}
.filter-row button.active, .filter-row button:hover { border-color: var(--accent); color: var(--accent-soft); background: var(--accent-dim); }

/* ---------- Timeline (about page) ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-dim); }
.timeline-item h4 { margin-bottom: 2px; font-size: 1.05rem; color: #ffffff; }
.timeline-item .org { color: var(--accent-soft); font-size: .9rem; font-weight: 600; }
.timeline-item .date { color: var(--text-faint); font-size: .8rem; margin-bottom: 10px; }
.timeline-item p { color: var(--text-muted); font-size: .94rem; }

/* ---------- Skills ---------- */
.skill-group h4 { color: var(--accent-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }

/* ---------- Contact (Mobil Uyumlu Form ve İletişim) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.contact-item .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-item strong { display: block; font-size: .98rem; color: #ffffff; }
.contact-item span { color: var(--text-muted); font-size: .88rem; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.form-field input, .form-field textarea {
  width: 100%; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 16px; font: inherit; resize: vertical;
  transition: all .2s ease;
  /* iOS cihazlarında varsayılan form gölgesini sıfırlar */
  -webkit-appearance: none;
  appearance: none;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-dim); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 48px 0; margin-top: 48px; background: rgba(10, 15, 29, 0.4); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
@media (max-width: 540px) {
  .footer-row { flex-direction: column; text-align: center; gap: 24px; }
}
.footer-row .socials { display: flex; gap: 12px; }
.footer-row .socials a {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: all .2s ease;
}
.footer-row .socials a:hover { color: var(--accent-soft); border-color: var(--accent-soft); background: var(--accent-dim); transform: translateY(-2px); }
.footer-note { color: var(--text-faint); font-size: .82rem; }

/* ---------- Utilities ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(0.4, 0, 0.2, 1), transform .7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius-md); }

.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-soft); background: var(--surface); }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px;
  background: linear-gradient(0deg, rgba(10,15,29,0.85), transparent);
  color: #fff; font-size: .85rem;
}

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 10, 20, 0.95);
  display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px;
  /* Safari blur desteği ön eki */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(90vw, 1000px); max-height: 80vh; border-radius: var(--radius-md); box-shadow: var(--shadow-2); }
.lightbox-caption { color: #fff; margin-top: 16px; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,.1); color: #fff;
  border: none; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ---------- Gizlilik / KVKK / GDPR ---------- */
.lang-tabs { display: flex; gap: 8px; margin: 24px 0 8px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.lang-tab {
  padding: 12px 20px; border: none; background: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .2s;
}
.lang-tab:hover { color: #ffffff; }
.lang-tab.active { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }
.lang-panel { padding-top: 20px; }
.prose h2 { font-size: 1.2rem; margin: 28px 0 12px; color: #ffffff; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.8; color: var(--text-soft); }
.prose ul { padding-left: 22px; margin: 12px 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: #ffffff; }
/* ── Dil değiştirici (i18n) ───────────────────────────── */
.lang-switch{display:inline-flex;align-items:center;gap:4px;margin-right:6px;font-size:.82rem;font-weight:600;color:var(--text-muted,#64748b);}
.lang-switch a{padding:2px 6px;border-radius:6px;color:var(--text-muted,#64748b);text-decoration:none;transition:background .15s,color .15s;}
.lang-switch a:hover{color:var(--accent,#2563eb);}
.lang-switch a.active{color:#fff;background:var(--accent,#2563eb);}
@media (max-width:640px){.lang-switch{margin-right:2px;}}

/* ── Sosyal Akış (feed) ───────────────────────────────── */
.feed-embed-card{display:flex;flex-direction:column;gap:10px;}
.feed-embed-head{display:flex;align-items:center;gap:8px;font-size:.8rem;color:var(--text-muted,#64748b);}
.feed-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;background:var(--surface-2,#f1f5f9);font-size:.8rem;font-weight:700;}
.feed-badge-label{font-weight:600;}
.feed-date{margin-left:auto;}
.feed-embed-title{font-size:1rem;margin:0;}
.feed-embed-body{overflow:hidden;}
.feed-embed-body iframe,.feed-embed-body .instagram-media,.feed-embed-body .twitter-tweet{max-width:100%!important;}

/* Keep long professional titles inside the header without changing profile data. */
.site-header .container { max-width: 1440px; }
.nav { gap: 16px; }
.nav .brand { min-width: 0; max-width: min(240px, 43vw); }
.nav .brand-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .brand-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .brand-logo-img { width: 34px; height: 34px; flex-shrink: 0; }
.nav-links a { white-space: nowrap; }
@media (min-width: 1281px) { .nav-links { gap: 0; } .nav-links a { padding: 10px; font-size: .86rem; } }
@media (max-width: 640px) { .nav { gap: 8px; } .nav-actions { gap: 6px; } }

/* Brighter slate palette and deliberate controls. */
.site-header { background: rgba(27, 47, 70, .96); border-bottom: 1px solid #496581; }
.card { background: linear-gradient(150deg, #2b4867, #233c59); border-color: #486580; }
.btn { border-radius: 12px; min-height: 44px; font-weight: 650; letter-spacing: .01em; }
.btn-primary { background: linear-gradient(120deg, #2368bf, #167b86); border: 1px solid #70b4e4; box-shadow: 0 5px 16px #071a2b44; }
.btn-primary:hover { background: linear-gradient(120deg, #2d75d1, #15717d); transform: translateY(-2px); box-shadow: 0 9px 22px #071a2b66; }
.btn-ghost { border: 1px solid #86a4c0; background: #34557366; }
.btn-ghost:hover { background: #436c8a; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #8fd8ff; outline-offset: 4px; }
.consent-panel { display: grid !important; grid-template-columns: 24px minmax(0, 1fr); gap: 14px !important; padding: 20px; border-radius: 16px; background: #31527388; border: 1px solid #6483a0; }
.consent-panel input[type=checkbox] { width: 22px; height: 22px; min-width: 22px; margin: 2px 0 0 !important; padding: 0; accent-color: #2987db; }
.consent-panel label { margin: 0; color: #d7e5ef; }
.consent-panel strong { display: block; color: #fff; font-size: .95rem; margin-bottom: 7px; }
.consent-panel a { display: inline-block; margin-top: 8px; color: #a7ddff !important; text-decoration: underline; text-underline-offset: 3px; }
.feed-controls { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.feed-controls button { min-width: 46px; min-height: 44px; border-radius: 12px; border: 1px solid #7eabc8; color: #fff; background: #315574; font-size: 1.25rem; cursor: pointer; }
.feed-controls button:disabled { opacity: .4; cursor: default; }
.feed-embeds { display: flex; overflow-x: auto; gap: 24px; scroll-snap-type: x mandatory; padding: 6px 4px 22px; scrollbar-color: #7ab9d9 #233d57; }
.feed-embeds .feed-embed-card { flex: 0 0 min(520px, 88vw); min-width: 0; max-width: 100%; scroll-snap-align: start; padding: 24px; border-radius: 20px; }
.feed-embed-title { overflow-wrap: anywhere; font-size: 1.12rem; min-height: 2.8em; }
.feed-embed-body { min-width: 0; overflow: hidden; border-radius: 14px; background: #fff; }
.feed-embed-body iframe { display: block; width: 100% !important; max-width: 100% !important; height: 560px !important; border: 0; }
.feed-source-note { color: #c4d9e7; font-size: .78rem; margin: 0; }
.feed-card-link { align-self: flex-start; margin-top: auto; }
.lang-menu { position: relative; }
.lang-menu summary { cursor: pointer; list-style: none; padding: 8px 12px; border: 1px solid #7499ba; border-radius: 10px; font-size: .85rem; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { background: #365c7e; }
.lang-menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 165px; display: grid; padding: 8px; background: #274562; border: 1px solid #6f94b5; border-radius: 14px; box-shadow: var(--shadow-2); z-index: 200; }
.lang-menu-list a { padding: 8px 12px; border-radius: 8px; }
.lang-menu-list a:hover, .lang-menu-list a[aria-current=true] { background: #3d698b; color: #fff; }
html[lang^=zh], html[lang=ja] { word-break: normal; overflow-wrap: anywhere; }
html[lang^=zh] body, html[lang=ja] body { line-height: 1.9; }
@media(max-width:640px) { .feed-embeds .feed-embed-card { flex-basis: calc(100vw - 56px); padding: 18px; } .feed-embed-body iframe { height: 490px !important; } .section-head:has(.feed-controls) { gap: 12px; flex-wrap: wrap; } .consent-panel { padding: 16px; gap: 10px !important; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }

/* Warm, natural reading surfaces. */
:root { --bg: #f7f5ef; --bg-alt: #eeede6; --surface: #ffffff; --surface-2: #e7eeeb; --border: #b8c8c4; --border-soft: #d6ded8; --text: #233e43; --text-muted: #51696d; --text-soft: #60767a; --text-faint: #6c7f80; --accent: #216958; --accent-soft: #257664; --accent-dim: #21695812; --danger: #b42328; --success: #18704e; --shadow-1: 0 4px 18px #304f4210; --shadow-2: 0 16px 40px #304f421a; }
body { background: radial-gradient(ellipse at 85% 5%, #efe5d444, transparent 45%), var(--bg); }
.site-header { background: #fffdf8f2; border-bottom-color: #d8dfd8; }
.hero h1, .hero-meta .item strong, .section-head h2, .card h3, .article-item h3, .timeline-item h4, .contact-item strong, .prose h2, .prose strong { color: var(--text); }
.card { background: linear-gradient(150deg, #fffefb, #f4f6f0); border-color: #d2ddd5; box-shadow: var(--shadow-1); }
.btn-primary { color: #fff; background: linear-gradient(120deg, #226d5b, #245f65); border-color: #195c50; box-shadow: 0 5px 14px #224c3c22; }
.btn-primary:hover { color: #fff; background: linear-gradient(120deg, #195c4c, #204f54); box-shadow: 0 7px 20px #224c3c33; }
.btn-ghost { color: #275d52; background: #eaf0e8; border-color: #a5bdb0; }
.btn-ghost:hover { color: #194e42; background: #dbe8de; }
.nav-links a:hover, .nav-links a.active { background: #e4eee7; color: #205c4e; }
.brand-mark { background: #286b5b; }
.site-footer { background: #eceee6; border-color: #d4ddd4; }
.tag:hover { color: #205c4e; }
.form-field input, .form-field textarea { background: #fffefb; border-color: #b3c4bd; }
.consent-panel { background: #edf3e9; border: 2px solid #a8bfaa; border-radius: 18px; box-shadow: 0 3px 12px #24442b08; }
.consent-panel label { color: #425b4c; font-size: .9rem !important; cursor: pointer; }
.consent-panel strong { color: #254a38; font-weight: 700; }
.consent-panel input[type=checkbox] { appearance: auto !important; -webkit-appearance: checkbox !important; width: 24px; height: 24px; min-width: 24px; accent-color: #226b4d; cursor: pointer; border-radius: 5px; }
.consent-panel:has(input:checked) { background: #e1eedf; border-color: #3f8353; }
.consent-panel a { color: #1f654d !important; }
.lang-menu summary { border-color: #a7bdb3; color: #245b4b; background: #f4f7ee; }
.lang-menu[open] summary { background: #e6eee1; }
.lang-menu-list { color: #25473f; background: #fffdf8; border-color: #c1cfc4; }
.lang-menu-list a:hover, .lang-menu-list a[aria-current=true] { color: #205e49; background: #e4eee1; }
.feed-controls button { color: #255d4d; background: #e9f0e3; border-color: #9ab5a2; }
.feed-embeds { scrollbar-color: #7ba68b #e3e9dc; }
.feed-source-note { color: #526b60; }
.feed-embed-head { color: #4c6b5c; }
.feed-badge { color: #276354; background: #dceae1; }
.contact-item { padding: 20px 0; }
.contact-item .icon-badge { background: #e8eede; border-color: #ccdacb; }
.hero { padding-top: 74px; }
html[lang^=zh] { --font-body: 'Microsoft YaHei', 'PingFang SC', sans-serif; --font-head: 'Microsoft YaHei', 'PingFang SC', sans-serif; }
html[lang=ja] { --font-body: 'Yu Gothic', Meiryo, sans-serif; --font-head: 'Yu Gothic', Meiryo, sans-serif; }
html[lang^=zh] .hero h1, html[lang=ja] .hero h1 { max-width: 22em; }

:root { --bg:#f2f6fa; --bg-alt:#e7eff6; --surface-2:#e3edf7; --accent:#27689e; --accent-soft:#235f91; --text:#23435b; --text-muted:#516c80; --border-soft:#d1deea; }
body { background:linear-gradient(140deg,#f5f8fb,#edf4fa); }
.site-header { background:#fafdfff5; }
.card { background:linear-gradient(150deg,#ffffff,#edf4fa); border-color:#cbddea; }
.btn-primary { background:linear-gradient(120deg,#286ba5,#237a8b); border-color:#225f92; }
.btn-primary:hover { background:#215985; }
.site-footer { background:#e7eff6; }
.consent-panel { background:#eaf2fb; border-color:#8fb1cf; }
.consent-panel label,.consent-panel strong { color:#264e70; }
.consent-panel:has(input:checked) { background:#dcecfb; border-color:#226bab; box-shadow:0 0 0 3px #2777b519; }
.consent-panel input[type=checkbox] { appearance:none!important; -webkit-appearance:none!important; display:grid; place-content:center; width:26px; height:26px; min-width:26px; border:2px solid #467ba7; border-radius:5px; background:#fff; box-shadow:0 2px 4px #24476a15; }
.consent-panel input[type=checkbox]:checked { background:#246db0; border-color:#246db0; }
.consent-panel input[type=checkbox]:checked::after { content:''; width:7px; height:13px; border:solid white; border-width:0 3px 3px 0; transform:rotate(45deg) translate(-1px,-1px); }
.prose { background:#ffffff99; border:1px solid #cfdeeb; border-radius:20px; padding:clamp(18px,4vw,36px); }
.nav-actions { flex-shrink:0; }
@media(min-width:641px) and (max-width:1280px) { .nav-actions .btn span.label { display:inline; } }
@media(max-width:480px) { .nav .brand { max-width:36vw; } .nav-actions { gap:5px; } .lang-menu summary { padding:8px; } .hero { padding-top:44px; } .hero h1 { font-size:2rem; } }

.adr-resources { margin-top:28px; padding:22px; border:1px solid #b8d1e5; border-radius:18px; background:#ffffffb3; max-width:900px; }
.adr-resources h2 { margin:0 0 14px; font-size:1.12rem; }
.adr-resource-actions { display:flex; flex-wrap:wrap; gap:12px; }
.adr-resources p { color:var(--text-muted); font-size:.87rem; margin:14px 0 0; }
@media(max-width:480px) { .adr-resource-actions a { width:100%; text-align:center; } }
