/* Structured list aesthetic: light separators, readable spacing */
:root{
--bg: #ffffff;
--text: #0b0b0b;
--muted: #6b7280;
--accent: #0f172a;
--sep: #e6e6e6;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";background:var(--bg);color:var(--text);}


.header {
  display: flex;
  flex-direction: column;  /* stack elements vertically */
  align-items: center;     /* center horizontally */
  padding: 1rem 1.25rem;
  gap: 0.5rem;             /* spacing between title and search */
  border-bottom: 1px solid var(--sep);
}
.header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}
.controls{
  margin-left:1rem;
}
#search {
  display: block;
  width: 100%;           /* fill width of parent */
  max-width: 600px;      /* optional cap */
  box-sizing: border-box;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--sep);
  border-radius: 6px;
}
main{
  padding:1rem 1.25rem
  width:90%;
  max-width: 1200px;
  margin: 0 auto;
}
.count{
  color:var(--muted);
  font-size:0.9rem;
  margin-bottom:0.5rem
}
.list{
  display:block
}
.resource{
  padding:0.75rem 0;
  border-bottom:1px solid var(--sep);
}
.res-head{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:0.5rem;
  justify-content:space-between;
}
.res-title{
  font-weight:600;
  color:var(--accent);
  text-decoration:none;
}
.res-title:hover{
  text-decoration:underline;
}
.meta{
  color:var(--muted);
  font-size:0.85rem;
}
.summary{
  margin:0.4rem 0;
  color:var(--text);
}
.tagline{
  color:var(--muted);
  font-size:0.85rem;
}
.tag{
  background:#f3f4f6;
  padding:0.15rem 0.35rem;
  border-radius:4px;
  margin-right:0.35rem;
}

@media (max-width:600px){
#search{width:100%}
.res-head{flex-direction:column;align-items:flex-start}
}
