/* common.css - Ponty Records base */

:root{
  --bg:#f5f5f7;
  --surface:#fff;
  --text:#171717;
  --muted:#6f6f73;
  --line:#e6e6ea;
  --border:#e6e6ea;
  --accent:#65a6de;
  --accent-dark:#4f95ce;
  --shadow:0 18px 50px rgba(0,0,0,.08);
  --max:1120px;
}

*{box-sizing:border-box;}

html,body{
  margin:0;
  padding:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Yu Gothic",YuGothic,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  line-height:1.75;
  letter-spacing:.02em;
}

a{color:inherit;text-decoration:none;}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;}
img{display:block;width:100%;height:auto;max-width:100%;}

.container{
  width:min(var(--max),calc(100% - 32px));
  margin:0 auto;
}

/* Hero */

.hero{padding:54px 0 30px;}
.hero.is-compact{padding:48px 0 32px;}

.hero-kicker{
  margin:0 0 8px;
  color:#6f6f73;
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
}

.hero-title{
  margin:0;
  color:#171717;
  font-size:clamp(34px,5vw,56px);
  line-height:1.05;
  letter-spacing:-.05em;
}

.home-hero{padding:56px 0 38px;}

.home-hero .hero-kicker{
  display:block;
  margin:0 0 8px;
  color:#6f6f73;
  font-size:12px;
  font-weight:800;
  letter-spacing:.24em;
  text-transform:uppercase;
}

.home-hero .hero-title{
  margin:0;
  color:#171717;
  font-size:clamp(56px,7vw,80px);
  line-height:.95;
  font-weight:900;
  letter-spacing:-.06em;
}

/* Section */

.section{padding:24px 0 54px;}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 14px;
}

.section-title{
  margin:0;
  color:#171717;
  font-size:22px;
  line-height:1.25;
  letter-spacing:-.04em;
  font-weight:850;
}

.section-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 13px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:#4b5563;
  font-size:12px;
  font-weight:800;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 30px;
}

#sectionTitle{
  margin-top:10px;
  margin-bottom:18px;
}

.chip{
  appearance:none;
  border:1px solid var(--line);
  background:#fff;
  color:#4b5563;
  min-height:34px;
  padding:0 13px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.035);
}

.chip.active{
  background:#171717;
  border-color:#171717;
  color:#fff;
}

/* List Cards */

.card-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.card{display:block;height:100%;}

.card-shell{
  height:100%;
  overflow:hidden;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(0,0,0,.06);
  border-radius:24px;
  box-shadow:var(--shadow);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.card:hover .card-shell{
  transform:translateY(-4px);
  box-shadow:0 16px 38px rgba(0,0,0,.12);
}

.card-photo{
  margin:10px 10px 0;
  overflow:hidden;
  border-radius:17px;
  background:#eef2f7;
  aspect-ratio:1/1;
}

.card-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 35%;
  display:block;
}

/* magazine */
#magazineGrid .card-photo,
.card-photo.is-cover{
  aspect-ratio:2/3;
  margin:10px;
  background:transparent;
}

#magazineGrid .card-photo img,
.card-photo.is-cover img{
  object-fit:cover;
  object-position:center;
  background:none;
}

/* Dogs / breed / diary */
#dogGrid .card-photo,
#breedGrid .card-photo{
  aspect-ratio:1/1;
}

#diaryGrid .card-photo,
.card-photo.is-diary{
  aspect-ratio:3/2;
}

.card-meta{
  padding:12px 14px 0;
  min-height:28px;
  color:#8a8a93;
  font-size:9px;
  line-height:1.3;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-align:center;
}

.card-title{
  margin:3px 12px 16px;
  color:#171717;
  font-size:16px;
  line-height:1.35;
  font-weight:800;
  letter-spacing:-.02em;
  text-align:center;
}

.card-text,
#diaryGrid .card-text{
  display:none;
}

.empty{
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  color:var(--muted);
  font-size:13px;
}

/* Related / Profile cards */

.profile-grid,
.related-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  padding-bottom:48px;
}

.profile-card,
.related-card{
  display:block;
  overflow:hidden;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(0,0,0,.06);
  border-radius:22px;
  box-shadow:var(--shadow);
}

.profile-photo,
.related-photo{
  margin:10px 10px 0;
  border-radius:16px;
  overflow:hidden;
  background:#eef2f7;
  aspect-ratio:1/1;
}

.related-photo.magazine{aspect-ratio:2/3;}

.profile-photo img,
.related-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 35%;
}

.profile-body,
.related-body{
  padding:12px 14px 16px;
  text-align:center;
}

.profile-breed,
.related-kicker{
  margin:0;
  font-size:9px;
  line-height:1.3;
  color:#8a8a93;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.profile-name,
.related-title{
  margin:5px 0 0;
  font-size:17px;
  line-height:1.35;
  font-weight:700;
  color:#171717;
}

.back-area{padding:0 0 46px;}

.back-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  color:#4b5563;
  font-size:13px;
  font-weight:600;
  box-shadow:0 5px 18px rgba(0,0,0,.04);
}

.footer{
  border-top:1px solid var(--line);
  padding:28px 20px 38px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

@media (max-width:960px){
  .card-grid,
  .profile-grid,
  .related-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:760px){
  .container{width:calc(100% - 24px);}

  .home-hero{padding:40px 0 28px;}
  .home-hero .hero-title{font-size:clamp(42px,10vw,56px);}
  .hero-title{font-size:clamp(28px,8vw,40px);}

  .section{padding:18px 0 42px;}
  .section-title{font-size:20px;}

  .toolbar{
    gap:7px;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:3px;
    scrollbar-width:none;
  }

  .toolbar::-webkit-scrollbar{display:none;}

  .chip{
    flex:0 0 auto;
    min-height:32px;
    padding:0 12px;
    font-size:11px;
  }

  .card-grid{gap:11px;}
  .card-shell{border-radius:18px;}
  .card-photo{margin:7px 7px 0;border-radius:13px;}
  .card-title{font-size:15px;}
}
