/* SMCLRD / Culture subdomain - International standard minimal style
   White + gray, high readability, accessible, print-friendly.
*/

:root{
  --bg:#ffffff;
  --fg:#111827;         /* near-black */
  --muted:#6b7280;      /* gray */
  --muted-2:#9ca3af;    /* light gray */
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow:0 1px 2px rgba(0,0,0,.06);
  --radius:14px;
  --max:980px;
  --link:#111827;
  --link-hover:#374151;
  --accent:#111827;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font:16px/1.65 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

a{color:var(--link); text-decoration:underline; text-underline-offset:3px}
a:hover{color:var(--link-hover)}
a:focus-visible{outline:2px solid #111827; outline-offset:3px; border-radius:8px}

header, main, footer{
  width:100%;
}

header{
  border-bottom:1px solid var(--border);
  background:#fff;
}

header > *{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 18px;
}

h1{
  margin:0;
  font-size:36px;
  letter-spacing:-.02em;
}
.subtitle{
  margin:.35rem 0 0 0;
  color:var(--muted);
  font-size:16px;
}
.muted{color:var(--muted)}
.updated{
  color:var(--muted);
  font-size:13px;
  margin:18px 0 0 0;
}

.topnav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.topnav a{
  display:inline-block;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  text-decoration:none;
  color:var(--fg);
  background:#fff;
}
.topnav a:hover{
  background:#f9fafb;
}
.topnav a.muted{
  color:var(--muted);
}

main{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 18px 42px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 18px;
  margin:14px 0;
}

.card h2{
  margin:0 0 8px 0;
  font-size:20px;
  letter-spacing:-.01em;
}
.card h3{
  margin:14px 0 6px 0;
  font-size:16px;
}
.card-title{
  margin-top:14px;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
}

.section-lead{
  margin:10px 0 12px;
  font-size:16px;
  color:#1f2937;
}

ul{padding-left:18px; margin:10px 0}
li{margin:6px 0}

hr{
  border:0;
  border-top:1px solid var(--border);
  margin:0;
}

footer{
  border-top:1px solid var(--border);
  background:#fff;
}
footer > *{
  max-width:var(--max);
  margin:0 auto;
  padding:20px 18px;
  color:var(--muted);
  font-size:14px;
}
footer a{color:var(--muted); text-decoration:underline}
footer a:hover{color:var(--fg)}

.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:12px}
.btn-primary, .btn-ghost{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.62rem 1rem;
  border-radius:12px;
  border:1px solid var(--border);
  text-decoration:none;
  font-weight:600;
  background:#fff;
  color:var(--fg);
}
.btn-primary{
  border-color:#111827;
}
.btn-primary:hover{background:#f9fafb}
.btn-ghost{color:var(--muted)}
.btn-ghost:hover{background:#f9fafb;color:var(--fg)}

.grid{
  display:grid;
  gap:14px;
}
@media (min-width: 900px){
  .grid{grid-template-columns:1fr 1fr}
}

/* Print-friendly */
@media print{
  header, footer, .topnav{display:none !important}
  main{max-width:none; padding:0}
  .card{box-shadow:none}
}

.permalink { text-decoration: none; margin-left: .4rem; opacity: .5; }
.permalink:hover { opacity: 1; }

/* Updates: permalink + archive */
.permalink { text-decoration: none; margin-left: .4rem; opacity: .55; }
.permalink:hover { opacity: 1; }

details.archive summary { cursor: pointer; }
details.archive { margin-top: 1rem; }
.archive-list article { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(0,0,0,.08); }

/* Updates: permalink + archive */
.permalink {
  text-decoration: none;
  margin-left: .4rem;
  opacity: .55;
  font-weight: 600;
}

.permalink:hover { opacity: 1; }

/* Archive block */
details.archive { margin-top: 1rem; }
details.archive summary { cursor: pointer; user-select: none; }
details.archive summary strong { margin-right: .4rem; }

.archive-list article {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(0,0,0,.10);
}

/* (Optional) make archive summary look like a compact header */
details.archive summary {
  padding: .6rem .8rem;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: .6rem;
  background: rgba(0,0,0,.02);
}

/* Updates tags */
.tag{
  display:inline-block;
  padding:.12rem .45rem;
  margin-right:.35rem;
  border:1px solid rgba(0,0,0,.15);
  border-radius:.5rem;
  font-size:.75rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:rgba(0,0,0,.02);
}


/* Updates tag bar */
.tagbar .tag-links{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:.6rem 0 .4rem;
}
.tagbar .taglink{
  display:inline-block;
  padding:.38rem .7rem;
  border:1px solid rgba(0,0,0,.12);
  border-radius:.7rem;
  text-decoration:none;
  color:inherit;
  background:rgba(0,0,0,.02);
}
.tagbar .taglink:hover{ background:rgba(0,0,0,.04); }
.tagbar .rss-by-tag{ margin-top:.35rem; }

.tag-section{ margin-top:.9rem; }

/* Tag grouped lists */
.tag-list article{
  margin-top:.75rem;
  padding-top:.75rem;
  border-top:1px solid rgba(0,0,0,.10);
}
.tag-list .muted{ margin: .4rem 0; }

/* Active tag link */
.taglink.active,
.tagbar .taglink[aria-current="page"]{
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.22);
  font-weight: 600;
}
