:root {
  --warm-ivory: #f8f4ec;
  --soft-white: #fffdf8;
  --charcoal: #292827;
  --burgundy: #5a0929;
  --berry: #a92855;
  --terracotta: #bd6c50;
  --terracotta-dark: #a95840;
  --teal: #287b82;
  --sage: #e8ebdd;
  --tan-border: #a68c72;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--soft-white);
  color: var(--charcoal);
  font-family: "Cormorant Garamond", Georgia, serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 5;
  height: 102px;
  padding: 0 clamp(44px, 7.5vw, 96px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #fffdf8;
}

.logo-link {
  position: absolute;
  top: 18px;
  left: clamp(75px, 7.7vw, 92px);
  width: 230px;
  z-index: 6;
  border-radius: 50%;
}

.brand-logo {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.2vw, 44px);
  padding-right: 2px;
}

.nav-link {
  position: relative;
  padding: 8px 0 11px;
  color: var(--charcoal);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: var(--terracotta);
  transition: width 140ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--terracotta);
}

.nav-toggle {
  display: none;
}

.hero {
  height: 642px;
  display: grid;
  grid-template-columns: 43% 57%;
  background:
    radial-gradient(circle at 21% 50%, rgba(255, 255, 255, 0.94), rgba(255, 253, 248, 0.74) 39%, rgba(248, 244, 236, 0.92) 68%),
    linear-gradient(90deg, #f9f5ee 0%, #fffdf8 43%, transparent 43%);
}

.hero-copy {
  min-width: 0;
  padding: 150px 22px 56px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.brand-wordmark {
  margin: 0;
  color: var(--charcoal);
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(50px, 6.05vw, 68px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.13;
  text-align: center;
  text-transform: uppercase;
}

.brand-wordmark span {
  display: block;
  white-space: nowrap;
}

.brand-wordmark b {
  color: var(--berry);
  font-family: "Allura", cursive;
  font-size: 1.17em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0;
  text-transform: none;
  vertical-align: -0.07em;
}

.ornament {
  width: min(308px, 44vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--terracotta);
}

.ornament span {
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.ornament b {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.hero-ornament {
  margin: 34px auto 29px;
}

.handmade {
  margin: 0;
  color: var(--teal);
  font-family: "Caveat", cursive;
  font-size: clamp(35px, 4.15vw, 50px);
  font-weight: 500;
  line-height: 0.99;
  text-align: center;
}

.work-button {
  margin-top: 48px;
  min-width: 224px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 29px 13px;
  border: 1px solid rgba(90, 9, 41, 0.28);
  border-radius: 2px;
  background: var(--terracotta);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.work-button:hover,
.work-button:focus-visible {
  background: var(--terracotta-dark);
}

.hero-image {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.gallery-section {
  padding: 34px 43px 17px;
  background: var(--soft-white);
}

.section-heading {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(24px, 2.25vw, 29px);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.gallery-ornament {
  width: min(570px, 70vw);
  margin: 21px auto 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.gallery-tile {
  margin: 0;
  height: 276px;
  overflow: hidden;
  background: var(--warm-ivory);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.social-section {
  position: relative;
  min-height: 332px;
  padding: 41px 44px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 17%, rgba(255, 255, 255, 0.66), transparent 22%),
    radial-gradient(circle at 92% 67%, rgba(255, 255, 255, 0.52), transparent 24%),
    linear-gradient(180deg, #e8ebdd, #dfe4d7);
}

.social-section::before,
.social-section::after {
  content: "\2727";
  position: absolute;
  color: rgba(255, 253, 248, 0.92);
  font-size: 45px;
  line-height: 1;
}

.social-section::before {
  left: 50px;
  top: 44px;
}

.social-section::after {
  right: 49px;
  bottom: 73px;
}

.social-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(64px, 12vw, 160px);
}

.social-heading {
  font-size: clamp(26px, 2.45vw, 32px);
}

.sparkle {
  color: var(--teal);
  font-size: 24px;
  line-height: 1;
}

.social-grid {
  width: min(695px, 100%);
  margin: 35px auto 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 66px;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  text-decoration: none;
}

.social-icon {
  width: 99px;
  height: 100px;
  border-radius: 20px;
  transition: transform 140ms ease, opacity 140ms ease;
}

.social-link:hover .social-icon,
.social-link:focus-visible .social-icon {
  transform: translateY(-2px);
  opacity: 0.92;
}

.social-label {
  color: var(--charcoal);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-message {
  margin: 0 -44px;
  text-align: center;
}

.footer-ornament {
  width: 100%;
  margin: 0 auto 22px;
  gap: 22px;
}

.footer-message p {
  margin: 0;
  padding-bottom: 12px;
  color: var(--charcoal);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.15;
  text-transform: uppercase;
}

.anchor-target {
  position: relative;
  top: -90px;
  display: block;
  height: 0;
}

.placeholder-main {
  min-height: calc(100vh - 102px);
  padding: clamp(118px, 13vw, 170px) 24px clamp(70px, 8vw, 104px);
  background:
    radial-gradient(circle at 20% 32%, rgba(255, 255, 255, 0.92), rgba(255, 253, 248, 0.52) 38%, transparent 60%),
    linear-gradient(180deg, #f8f4ec 0%, #fffdf8 58%, #e8ebdd 100%);
}

.placeholder-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.placeholder-title {
  margin: 0;
  color: var(--charcoal);
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.placeholder-copy {
  margin: 30px auto 0;
  max-width: 480px;
  color: var(--teal);
  font-family: "Caveat", cursive;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
}

.content-main,
.admin-main {
  min-height: calc(100vh - 102px);
  padding: clamp(118px, 12vw, 156px) clamp(22px, 5vw, 58px) clamp(58px, 7vw, 90px);
  background:
    radial-gradient(circle at 20% 32%, rgba(255, 255, 255, 0.92), rgba(255, 253, 248, 0.52) 38%, transparent 60%),
    linear-gradient(180deg, #f8f4ec 0%, #fffdf8 58%, #e8ebdd 100%);
}

.content-panel,
.shop-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.contact-form,
.admin-form {
  display: grid;
  gap: 18px;
}

.contact-form label,
.admin-form label,
.product-editor label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(166, 140, 114, 0.48);
  border-radius: 2px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--charcoal);
  font: 600 18px/1.2 "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

.form-status,
.quiet-copy {
  margin: 0;
  color: var(--teal);
  font-size: 18px;
  font-weight: 600;
}

.shop-heading-block {
  text-align: center;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(166, 140, 114, 0.28);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-body {
  padding: 18px;
  display: grid;
  gap: 13px;
}

.product-body h2,
.cart-panel h2,
.admin-card h2 {
  margin: 0;
  color: var(--burgundy);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.product-body p {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.product-meta,
.cart-row,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--charcoal);
  font-size: 18px;
  font-weight: 700;
}

.product-button,
.cart-checkout {
  width: 100%;
  min-width: 0;
  margin-top: 4px;
}

.cart-panel {
  margin-top: 22px;
  padding: 22px;
  display: grid;
  gap: 14px;
  background: rgba(232, 235, 221, 0.82);
  border-top: 1px solid rgba(189, 108, 80, 0.4);
  border-bottom: 1px solid rgba(189, 108, 80, 0.4);
}

.admin-body {
  background: var(--soft-white);
}

.admin-top-nav {
  padding-right: 0;
}

.admin-login {
  width: min(440px, 100%);
  margin: 0 auto;
  text-align: center;
}

.admin-dashboard {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-stats article,
.admin-card {
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(166, 140, 114, 0.32);
  padding: 18px;
}

.dashboard-stats span {
  display: block;
  color: var(--burgundy);
  font-size: 34px;
  font-weight: 700;
}

.dashboard-stats p {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-card {
  display: grid;
  gap: 17px;
  align-content: start;
}

.admin-card-wide {
  grid-column: 1 / -1;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(166, 140, 114, 0.28);
}

legend {
  color: var(--burgundy);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-editor {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(166, 140, 114, 0.28);
}

.product-editor img {
  width: 150px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-editor-fields {
  display: grid;
  gap: 12px;
}

.checkbox-label {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: auto;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--burgundy);
  cursor: pointer;
  font: 700 15px/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-list article {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(166, 140, 114, 0.28);
}

.admin-list time {
  color: rgba(41, 40, 39, 0.62);
  font-size: 14px;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .site-header {
    height: 96px;
    padding-inline: 28px;
  }

  .placeholder-main {
    min-height: calc(100vh - 96px);
    padding-top: 92px;
  }

  .logo-link {
    left: 32px;
    width: 190px;
  }

  .primary-nav {
    gap: 24px;
  }

  .hero {
    grid-template-columns: 45% 55%;
    min-height: 560px;
  }

  .hero-copy {
    padding: 132px 22px 44px;
  }

  .brand-wordmark {
    font-size: clamp(42px, 5.8vw, 58px);
  }

  .gallery-section {
    padding-inline: 28px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-tile {
    height: 300px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: 118px;
    padding: 14px 20px 18px;
    align-items: center;
    justify-content: space-between;
  }

  .logo-link {
    position: relative;
    top: auto;
    left: auto;
    width: 132px;
    flex: 0 0 auto;
    margin-bottom: -42px;
  }

  .nav-toggle {
    width: 43px;
    height: 43px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(166, 140, 114, 0.48);
    border-radius: 2px;
    background: transparent;
    color: var(--charcoal);
  }

  .nav-toggle-line {
    width: 20px;
    height: 1px;
    background: currentColor;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: flex-end;
    gap: 17px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(166, 140, 114, 0.32);
    box-shadow: 0 14px 28px rgba(41, 40, 39, 0.08);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .placeholder-main {
    min-height: calc(100vh - 118px);
  }

  .content-main,
  .admin-main {
    min-height: calc(100vh - 118px);
    padding-top: 88px;
  }

  .contact-layout,
  .admin-grid,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-heading {
    display: grid;
  }

  .hero {
    height: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 92px 24px 45px;
  }

  .brand-wordmark {
    font-size: clamp(43px, 13vw, 64px);
  }

  .hero-image {
    height: 480px;
  }

  .gallery-section {
    padding: 38px 18px;
  }

  .section-heading {
    font-size: 23px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-tile {
    height: min(62vw, 305px);
  }

  .social-section {
    padding: 40px 24px 0;
  }

  .social-heading-wrap {
    gap: 30px;
  }

  .social-grid {
    width: min(360px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 48px;
  }

  .footer-message {
    margin-inline: -24px;
  }
}

@media (max-width: 430px) {
  .logo-link {
    width: 118px;
  }

  .hero-copy {
    padding-top: 84px;
  }

  .hero-image {
    height: 392px;
  }

  .handmade {
    font-size: 34px;
  }

  .work-button {
    min-width: 210px;
    font-size: 16px;
  }

  .social-heading-wrap {
    gap: 16px;
  }

  .social-icon {
    width: 92px;
    height: 93px;
  }

  .shop-grid,
  .field-pair,
  .product-editor {
    grid-template-columns: 1fr;
  }

  .product-editor img {
    width: 100%;
    max-height: 280px;
  }
}
