/* HonestShelf Gallery — dimensional editorial showroom.
   Porcelain #F7F4EE · Deep Forest #182B2A · Soft Sage #A7B9A5 ·
   Champagne #D8B88A (highlights only, never body text) · Warm Stone #E7E0D5.
   Depth is CSS-only: layered gradients, podiums, soft shadows, hover lift. */

:root {
  --porcelain: #f7f4ee;
  --forest: #182b2a;
  --forest-soft: #33504c;
  --sage: #a7b9a5;
  --sage-deep: #5f7d5c;
  --champagne: #d8b88a;
  --stone: #e7e0d5;
  --card: #ffffff;
  --ink-soft: #45524e;
  --radius: 18px;
  --shadow-soft: 0 2px 6px rgba(24, 43, 42, 0.06), 0 14px 34px rgba(24, 43, 42, 0.08);
  --shadow-lift: 0 4px 10px rgba(24, 43, 42, 0.08), 0 22px 44px rgba(24, 43, 42, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 85% -80px, rgba(216, 184, 138, 0.20), transparent 60%),
    radial-gradient(900px 480px at -120px 240px, rgba(167, 185, 165, 0.25), transparent 60%),
    var(--porcelain);
  color: var(--forest);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, .wordmark {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff;
  padding: 0.6rem 1rem; z-index: 50; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* header */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1160px; margin: 0 auto; padding: 1.1rem 1.4rem;
}
.wordmark { font-size: 1.9rem; text-decoration: none; color: var(--forest); letter-spacing: 0.01em; }
.wordmark-dot { color: var(--sage-deep); }
.site-nav { display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--forest-soft); text-decoration: none; font-size: 0.98rem; }
.site-nav a:hover { color: var(--forest); text-decoration: underline; }
.nav-cta {
  border: 1px solid var(--sage-deep); border-radius: 999px; padding: 0.34rem 0.95rem;
  background: rgba(255, 255, 255, 0.55);
}

main { max-width: 1160px; margin: 0 auto; padding: 0 1.4rem 3rem; }

/* hero */
.hero { position: relative; padding: 3.2rem 0 2.4rem; max-width: 820px; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 700;
  color: var(--sage-deep); margin-bottom: 1rem;
}
.hero-sub { font-size: 1.14rem; color: var(--ink-soft); max-width: 640px; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-sculpt { position: absolute; right: -30px; top: 10px; width: 300px; height: 240px; pointer-events: none; }
.sculpt { position: absolute; border-radius: 28px; box-shadow: var(--shadow-soft); }
.sculpt.s1 { width: 190px; height: 150px; right: 30px; top: 30px; background: linear-gradient(145deg, #ffffff, var(--stone)); transform: rotate(-4deg); }
.sculpt.s2 { width: 130px; height: 100px; right: 130px; top: 110px; background: linear-gradient(145deg, var(--sage), #c3d2c0); transform: rotate(5deg); }
.sculpt.s3 { width: 84px; height: 84px; right: 8px; top: 128px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #eed9b4, var(--champagne)); }
@media (max-width: 900px) { .hero-sculpt { display: none; } }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; border-radius: 999px; cursor: pointer;
  font-size: 1rem; font-weight: 600; padding: 0.62rem 1.35rem; border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn-primary { background: var(--forest); color: #fdfbf7; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--forest-soft); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-quiet { background: rgba(255,255,255,0.7); color: var(--forest); border-color: var(--sage); }
.btn-quiet:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-large { padding: 0.8rem 1.7rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 1.6rem 0 2.6rem; }
.principle {
  background: var(--card); border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft); border-top: 4px solid var(--sage);
}
.principle h2 { font-size: 1.25rem; }
.principle p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* sections + collections */
.section-block { margin: 2.8rem 0; }
.section-head { margin-bottom: 1.2rem; }
.section-head p { color: var(--ink-soft); margin: 0; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.collection-card {
  background: var(--card); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-soft); transition: transform 180ms ease, box-shadow 180ms ease;
}
.collection-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.collection-card h3 a { color: var(--forest); text-decoration: none; }
.collection-card h3 a:hover { text-decoration: underline; }
.collection-card p { color: var(--ink-soft); }
.collection-meta { font-size: 0.92rem; }

.card-label {
  text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.74rem; font-weight: 700;
  color: var(--sage-deep); margin: 0 0 0.6rem;
}

/* shelves */
.shelf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.shelf {
  background: linear-gradient(160deg, #fff, var(--stone)); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow-soft); text-decoration: none; color: var(--forest);
  display: flex; flex-direction: column; gap: 0.25rem; min-height: 96px; justify-content: center;
}
.shelf span { font-family: Georgia, serif; font-size: 1.12rem; font-weight: 600; }
.shelf em { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); }
.shelf-live { outline: 2px solid var(--sage); transition: transform 180ms ease, box-shadow 180ms ease; }
.shelf-live:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
@media (max-width: 860px) { .shelf-grid { grid-template-columns: 1fr 1fr; } }

/* season band */
.season-band {
  margin: 3rem 0 1rem; background: var(--forest); color: #f2efe7; border-radius: 24px;
  padding: 2.2rem 2.4rem; box-shadow: var(--shadow-lift);
}
.season-band h2 { color: #fff; }
.season-band p { color: #d9ddd3; max-width: 640px; }
.season-band .btn-quiet { background: transparent; color: #f2efe7; border-color: var(--sage); }

/* profile */
.profile-head { display: flex; gap: 1.6rem; align-items: flex-start; padding: 2.2rem 0 0.6rem; flex-wrap: wrap; }
.avatar {
  width: 96px; height: 96px; border-radius: 28px; flex: none;
  background: linear-gradient(145deg, var(--sage), #c9d8c6);
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--forest);
  box-shadow: var(--shadow-soft);
}
.profile-bio { color: var(--ink-soft); max-width: 620px; }
.follow-note { margin-left: 0.7rem; font-size: 0.92rem; color: var(--ink-soft); }

/* list page */
.list-head { padding: 2.2rem 0 0.4rem; max-width: 760px; }
.list-desc { font-size: 1.1rem; color: var(--ink-soft); }
.disclosure-strip {
  background: var(--stone); border-radius: 12px; padding: 0.8rem 1.1rem; font-size: 0.94rem;
  color: var(--forest-soft); margin-top: 1.2rem;
}
.list-section { margin: 2.4rem 0; }
.list-section-title { margin-bottom: 1.1rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--stone); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card-top { display: flex; gap: 1rem; align-items: flex-start; }
.podium {
  width: 74px; height: 74px; flex: none; border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, transparent 55%),
    linear-gradient(160deg, var(--stone), #d9cfbc);
  box-shadow: inset 0 -10px 16px rgba(24, 43, 42, 0.10), var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
}
.podium-initials { font-family: Georgia, serif; font-weight: 600; font-size: 1.35rem; color: var(--forest-soft); }
.card-head { min-width: 0; }
.card-name { margin-bottom: 0.15rem; }
.card-name a { color: var(--forest); text-decoration: none; }
.card-name a:hover { text-decoration: underline; }
.card-brand { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.card-why { color: var(--ink-soft); margin-top: 1rem; }
.card-limit {
  background: rgba(216, 184, 138, 0.16); border-left: 3px solid var(--champagne);
  border-radius: 0 10px 10px 0; padding: 0.6rem 0.85rem; font-size: 0.95rem;
}
.limit-label { font-weight: 700; color: var(--forest); }
.card-best { font-size: 0.95rem; }
.best-label { font-weight: 700; }
.card-actions { margin-top: auto; padding-top: 0.6rem; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.card-note { font-size: 0.85rem; color: var(--ink-soft); }

/* prose */
.prose { max-width: 720px; padding: 2.2rem 0 1rem; }
.prose h2 { margin-top: 1.8rem; }
.prose p { color: var(--ink-soft); }
.prose p strong, .prose li strong { color: var(--forest); }

/* admin */
.admin-wrap { max-width: 860px; padding: 2.2rem 0; }
.admin-form { display: grid; gap: 0.9rem; max-width: 560px; margin: 1.2rem 0 2rem; }
.admin-form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.admin-form input, .admin-form textarea, .admin-form select {
  font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--sage);
  border-radius: 10px; background: #fff; color: var(--forest); font-weight: 400;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
  outline: 2px solid var(--sage-deep); outline-offset: 1px;
}
.form-error { background: #f7e3e0; border-left: 3px solid #b0552f; padding: 0.6rem 0.9rem; border-radius: 0 10px 10px 0; }
.admin-table { border-collapse: collapse; width: 100%; margin: 1rem 0 2rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); }
.admin-table th, .admin-table td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--stone); font-size: 0.95rem; }
.admin-table th { background: var(--stone); }
.admin-stat { font-size: 1.05rem; }
.admin-hint { color: var(--ink-soft); font-size: 0.94rem; }
.admin-logout { margin-top: 1rem; }

/* footer */
.site-foot { max-width: 1160px; margin: 2rem auto 0; padding: 1.8rem 1.4rem 2.6rem; border-top: 2px solid var(--stone); }
.foot-brand { font-family: Georgia, serif; font-size: 1.3rem; font-weight: 600; }
.foot-tag { font-family: -apple-system, sans-serif; font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); margin-left: 0.5rem; }
.foot-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: 0.8rem 0; }
.foot-nav a { color: var(--forest-soft); text-decoration: none; font-size: 0.95rem; }
.foot-nav a:hover { text-decoration: underline; }
.foot-note { font-size: 0.88rem; color: var(--ink-soft); max-width: 640px; }

@media (max-width: 640px) {
  .site-head { flex-direction: column; align-items: flex-start; }
  .card-grid, .collection-grid { grid-template-columns: 1fr; }
  .shelf-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card:hover, .collection-card:hover, .shelf-live:hover, .btn:hover { transform: none !important; }
}
