:root {
  --paper: #f0dfbd;
  --paper-clean: #fffaf2;
  --paper-deep: #d7ba8d;
  --ink: #2d2025;
  --muted: #725849;
  --plum: #5b342b;
  --plum-strong: #34222c;
  --button-ink: #342c2c;
  --social-ink: #493933;
  --gold: #ad7935;
  --gold-soft: #e3c68c;
  --line: rgba(133, 91, 48, 0.26);
  --white: rgba(255, 246, 226, 0.9);
  --shadow: 0 18px 60px rgba(86, 47, 30, 0.2);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top left, rgba(255, 244, 214, 0.86), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(155, 92, 54, 0.2), transparent 28rem),
    linear-gradient(135deg, #f3e3c2, var(--paper));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.boutique-hero {
  position: relative;
  display: grid;
  min-height: 80vh;
  padding-top: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(80, 42, 33, 0.72), rgba(156, 99, 51, 0.5), rgba(218, 176, 104, 0.26)),
    linear-gradient(0deg, rgba(240, 223, 189, 0.8), rgba(94, 55, 44, 0.04) 42%, rgba(91, 52, 43, 0.46)),
    url("/assets/velvet-hero-still-life.png?v=warm-gold-20260616") center / cover no-repeat;
}

.boutique-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(77, 37, 27, 0.26), transparent 23rem),
    linear-gradient(180deg, transparent 55%, rgba(255, 250, 242, 0.98));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: min(760px, calc(100% - 40px));
  min-height: 80vh;
  margin: 0 auto;
  padding: 12px 0 52px;
  text-align: center;
  color: #fffaf0;
}

.hero-logo {
  width: clamp(148px, 13vw, 190px);
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: -4px;
  filter:
    brightness(0) saturate(100%) invert(97%) sepia(11%) saturate(360%) hue-rotate(336deg) brightness(104%) contrast(96%)
    drop-shadow(0 18px 38px rgba(55, 28, 22, 0.46))
    drop-shadow(0 0 20px rgba(255, 250, 242, 0.18));
}

.hero-copy h1,
.mini-preview h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--plum-strong);
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(50px, 5vw, 82px);
  line-height: 0.9;
  color: #fff9ec;
  text-shadow:
    0 2px 0 rgba(90, 53, 31, 0.22),
    0 10px 34px rgba(51, 26, 20, 0.62);
}

.tagline,
.mini-preview p {
  margin: 0;
  max-width: 620px;
  color: #554540;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.18;
}

.hero-copy .tagline {
  color: rgba(238, 218, 184, 0.94);
  text-shadow: 0 4px 22px rgba(46, 23, 18, 0.66);
}

.etsy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  min-width: min(440px, 100%);
  border: 0;
  border-radius: 8px;
  padding: 0 28px;
  color: #fff8ed;
  background: var(--button-ink);
  box-shadow: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 29px;
  font-weight: 700;
  touch-action: manipulation;
}

.etsy-button.compact {
  min-width: 0;
  min-height: 56px;
  padding: 0 26px;
  font-size: 23px;
}

.etsy-button i {
  color: #f7ead2;
  font-size: 19px;
}

.social-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: clamp(10px, 1.3vw, 18px);
  width: min(560px, 100%);
  margin-top: 8px;
}

.social-row[data-count="1"] {
  width: min(160px, 100%);
}

.social-row[data-count="2"] {
  width: min(300px, 100%);
}

.social-row[data-count="3"] {
  width: min(440px, 100%);
}

.social-row a {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 4px 2px;
  color: #fff8ed;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 14px rgba(255, 250, 242, 0.6);
  touch-action: manipulation;
}

.social-row i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--button-ink);
  background: rgba(255, 250, 242, 0.9);
  box-shadow: none;
  font-size: 21px;
}

.hero-image {
  display: none;
}

.intent-band {
  --transition-height: 56px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 0;
  margin-top: -1px;
  background: var(--paper-clean);
}

.intent-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--transition-height) * -1);
  height: var(--transition-height);
  background: linear-gradient(
    180deg,
    rgba(255, 250, 242, 0),
    rgba(255, 250, 242, 0.36) 34%,
    rgba(255, 250, 242, 0.82) 76%,
    var(--paper-clean)
  );
  pointer-events: none;
}

.intent-band article {
  position: relative;
  min-height: 208px;
  padding: 38px clamp(24px, 4vw, 72px);
  border-right: 1px solid rgba(93, 64, 45, 0.12);
}

.intent-band article:last-child {
  border-right: 0;
}

.intent-band h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3.2vw, 45px);
  line-height: 1;
  font-weight: 600;
  color: #4d3026;
}

.intent-band p {
  margin: 0;
  max-width: 390px;
  color: #6a5549;
  font-size: 15px;
  line-height: 1.7;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  min-height: 100vh;
}

.admin-preview {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 70px);
  border-right: 1px solid var(--line);
}

.mini-preview {
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid rgba(181, 138, 71, 0.25);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.preview-image {
  height: 210px;
  background: url("/assets/velvet-hero-still-life.png") center / cover no-repeat;
}

.mini-preview img {
  width: 148px;
  height: 148px;
  object-fit: contain;
  margin-top: 28px;
}

.mini-preview h1 {
  margin: 10px auto 8px;
  max-width: 460px;
  font-size: 52px;
  line-height: 0.96;
}

.mini-preview p {
  margin: 0 auto 24px;
  max-width: 320px;
  font-size: 22px;
}

.mini-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 30px 24px 36px;
  color: var(--plum);
  font-size: 24px;
}

.admin-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 76px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(181, 138, 71, 0.42);
  padding-bottom: 18px;
  color: var(--plum);
}

.panel-heading span {
  color: var(--gold);
  font-size: 24px;
}

.panel-heading h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  font-weight: 600;
}

.login-form,
.settings-form {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.link-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

label {
  display: grid;
  gap: 9px;
  color: #3d302d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  font-weight: 700;
}

.visibility-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  min-width: 122px;
  border: 1px solid rgba(181, 138, 71, 0.38);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--plum);
  background: rgba(255, 248, 236, 0.64);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  touch-action: manipulation;
}

.visibility-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--plum);
}

input:not([type="checkbox"]) {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(92, 70, 58, 0.28);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 252, 247, 0.8);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  outline: none;
}

input:not([type="checkbox"]):focus {
  border-color: rgba(181, 138, 71, 0.8);
  box-shadow: 0 0 0 4px rgba(181, 138, 71, 0.15);
}

.password-row {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-top: 6px;
}

.save-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 8px;
  padding: 0 24px;
  font-weight: 800;
  touch-action: manipulation;
}

.save-button {
  border: 0;
  color: #fff7e7;
  background: var(--plum);
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--plum);
  background: rgba(255, 252, 247, 0.72);
}

.form-message {
  margin: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}

.form-message.success {
  color: #31503d;
  background: rgba(214, 233, 211, 0.76);
}

.form-message.error {
  color: #73333e;
  background: rgba(243, 214, 217, 0.82);
}

.load-error {
  display: grid;
  min-height: 100vh;
  place-items: center;
  color: var(--plum);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .boutique-hero,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .boutique-hero {
    min-height: 80vh;
  }

  .admin-preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .boutique-hero {
    padding-top: 0;
    min-height: 78svh;
    background-position: center;
  }

  .hero-copy {
    width: min(100% - 32px, 560px);
    min-height: 78svh;
    justify-content: flex-start;
    padding: 44px 0 24px;
    gap: 12px;
  }

  .hero-logo {
    width: 172px;
  }

  .hero-copy h1 {
    font-size: 58px;
  }

  .tagline {
    max-width: 330px;
    font-size: 21px;
  }

  .etsy-button {
    width: 100%;
    min-height: 60px;
    padding: 0 18px;
    font-size: 23px;
  }

  .social-row {
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 0;
  }

  .social-row[data-count="1"],
  .social-row[data-count="2"],
  .social-row[data-count="3"] {
    width: 100%;
  }

  .social-row[data-count="1"] {
    grid-template-columns: 1fr;
  }

  .social-row[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-row[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    padding: 0 8px;
    color: var(--social-ink);
    background: rgba(255, 250, 242, 0.9);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-shadow: none;
  }

  .social-row i {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    color: var(--social-ink);
    background: transparent;
    box-shadow: none;
    font-size: 18px;
  }

  .social-row a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .intent-band {
    --transition-height: 64px;
    grid-template-columns: 1fr;
  }

  .intent-band article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 20px;
  }

  .admin-preview {
    padding: 20px;
  }

  .mini-preview h1 {
    font-size: 43px;
  }

  .admin-panel {
    padding: 28px 18px 42px;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .link-setting {
    grid-template-columns: 1fr;
  }

  .visibility-toggle {
    width: 100%;
    justify-content: flex-start;
    min-height: 58px;
  }

  input:not([type="checkbox"]),
  .save-button,
  .ghost-button {
    min-height: 58px;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  .intent-band {
    --transition-height: 32px;
  }

  .hero-copy {
    padding: 28px 0 18px;
    gap: 9px;
  }

  .hero-logo {
    width: 112px;
  }

  .hero-copy h1 {
    max-width: 300px;
    font-size: 44px;
    line-height: 0.9;
  }

  .tagline {
    max-width: 285px;
    font-size: 18px;
    line-height: 1.12;
  }

  .etsy-button {
    min-height: 54px;
    font-size: 21px;
  }

  .social-row {
    gap: 8px;
  }

  .social-row a {
    min-height: 52px;
    gap: 5px;
    padding: 0 5px;
    font-size: 11px;
  }

  .social-row i {
    font-size: 16px;
  }
}
