/*
Theme Name: unattachedblog
Author: You
Version: 1.0
Text Domain: unattachedblog
*/

:root{
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #0b4f6c;
  --max: 1200px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header{
  background: #0a3550;
  color: #fff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand{
  display:flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.brand h1{ margin:0; font-size: 34px; letter-spacing: .2px; }
.brand .tagline{ margin:0; color: rgba(255,255,255,.75); font-size: 14px; }

.navbar{
  background: #0b4f6c;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.navbar .menu{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 0;
  margin:0;
  list-style:none;
}
.navbar .menu a{
  color:#fff;
  padding: 6px 10px;
  border-radius: 8px;
  display:inline-block;
}
.navbar .menu a:hover{ background: rgba(255,255,255,.12); text-decoration:none; }

.main{
  padding: 18px 0 34px;
}

.layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.post{
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.post:last-child{ border-bottom: none; }
.post-title{ margin: 0 0 6px; font-size: 28px; }
.post-meta{ color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.post .wp-post-image{
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 10px 0 14px;
}

.sidebar .widget{
  margin-bottom: 14px;
}
.sidebar h2{
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: .2px;
  color: #0f172a;
}
.widget ul{ margin:0; padding-left: 18px; }
.widget li{ margin: 6px 0; }

.thumb-list{
  list-style: none;
  padding: 0;
  margin: 0;
}
.thumb-item{
  display:flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.thumb-item:last-child{ border-bottom:none; }
.thumb{
  width: 58px;
  height: 44px;
  border-radius: 10px;
  overflow:hidden;
  flex: 0 0 auto;
  background: #e8eef6;
  border: 1px solid var(--line);
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.thumb-title{
  font-size: 14px;
  line-height: 1.25;
}

.ppp-form{
  display:flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.ppp-form label{
  font-size: 13px;
  color: var(--muted);
}
.ppp-form select{
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.pagination{
  margin-top: 14px;
}
.nav-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-links a, .nav-links .current{
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:#fff;
}
.nav-links .current{
  background: #0b4f6c;
  color: #fff;
  border-color: #0b4f6c;
}

.site-footer{
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px){
  .layout{ grid-template-columns: 1fr; }
}
