/* The Interior Index — minimal editorial directory
   Layout modelled on theheadlessclub.com, restyled for the interiors register. */

:root {
  --bg: #ffffff;          /* white */
  --surface: #ffffff;
  --ink: #191713;         /* near-black warm */
  --muted: #6d685f;       /* warm grey */
  --line: #e4ded4;        /* hairline */
  --accent: #191713;
  --badge-bg: #191713;
  --badge-ink: #f6f4f0;
  --radius: 6px;
  --pad: clamp(24px, 4vw, 64px);   /* shared left/right gutter — all sections align to this */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  margin: 0;
  padding: 26px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.logo-dot { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--surface);
}
.nav .nav-cta:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  margin: 48px 0 8px;
  padding: 0 var(--pad);
}
.hero h1 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 34ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}
.hero-sub a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.hero-sub a:hover { border-color: var(--ink); }

/* ---------- Filters ---------- */
.filters {
  margin: 44px 0 8px;
  padding: 0 var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- Grid ---------- */
.grid {
  margin: 24px 0 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px 28px;
}

.card { display: flex; flex-direction: column; }

.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ece7de;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.card-thumb:hover img { transform: scale(1.03); }

/* placeholder tile for anchor slots without a live URL yet */
.card-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #ece7de, #ece7de 12px, #e6e0d5 12px, #e6e0d5 24px);
}
.card-thumb.placeholder span {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 0 20px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
}

.card-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.card-title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.card-open {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}
.card-open:hover { color: var(--ink); }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 100px;
}

/* ---------- Newsletter ---------- */
.newsletter {
  margin: 80px 0 0;
  padding: 64px var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
}
.newsletter-inner { max-width: 480px; margin: 0 auto; }
.newsletter h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}
.newsletter p { color: var(--muted); margin: 0 0 22px; }
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 380px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}
.newsletter-form input:focus { outline: none; border-color: var(--ink); }
.newsletter-form button {
  padding: 12px 22px;
  border: none;
  border-radius: 100px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.newsletter-form button:hover { opacity: .9; }
.newsletter-status { margin-top: 14px !important; font-size: 14px; color: var(--ink); font-weight: 500; }
.newsletter-note { margin-top: 18px !important; font-size: 14px; }
.newsletter-note a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  margin: 0;
  padding: 40px var(--pad) 60px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
}
.footer-social { display: flex; gap: 22px; }
.footer-social a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-social a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom .curated a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Content / About page ---------- */
.content { max-width: 760px; margin: 8px 0 0; padding: 0 var(--pad); }
.content section { padding: 32px 0; border-top: 1px solid var(--line); }
.content section:first-of-type { border-top: none; }
.content h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 18px;
}
.content p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 62ch;
}
.content p:last-child { margin-bottom: 0; }
.content a.inline { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.content a.inline:hover { border-color: var(--ink); }

.criteria-list { list-style: none; margin: 0; padding: 0; }
.criteria-list li { padding: 18px 0; border-top: 1px solid var(--line); display: flex; gap: 18px; }
.criteria-list li:first-child { border-top: none; padding-top: 0; }
.criteria-num { color: var(--muted); font-weight: 600; min-width: 24px; }
.criteria-list strong { display: block; margin-bottom: 4px; }
.criteria-list .desc { color: var(--muted); }

.page-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 100px; font-weight: 500; font-size: 15px; text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: .9; }
.btn-secondary { border: 1px solid var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
