:root {
  --ink: #17151f;
  --muted: #625e6f;
  --paper: #fffaf3;
  --surface: #ffffff;
  --cyan: #00b8ff;
  --coral: #ff4f64;
  --lime: #bbf246;
  --violet: #6c3df4;
  --sun: #ffd23f;
  --line: rgba(23, 21, 31, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  scroll-padding-top: 96px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
}

body {
  min-width: 320px;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 56px) 14px;
  background: rgba(255, 250, 243, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--violet);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--sun);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  gap: 5px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(23, 21, 31, 0.36);
}

.nav-backdrop[hidden] {
  display: none;
}

main {
  display: grid;
  gap: 0;
}

.hero {
  position: relative;
  overflow: clip;
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(32px, 6vw, 76px) clamp(16px, 4vw, 56px);
  background:
    linear-gradient(120deg, rgba(0, 184, 255, 0.22), transparent 42%),
    linear-gradient(310deg, rgba(255, 79, 100, 0.24), transparent 48%),
    var(--paper);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.15;
}

.hero-copy > p:not(.eyebrow),
.intro > p,
.contact-section p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions,
.form-actions,
.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.primary {
  color: var(--ink);
  background: var(--lime);
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
}

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: min(70vh, 640px);
}

.vessel {
  position: absolute;
  border: 4px solid var(--ink);
  box-shadow: 10px 12px 0 rgba(23, 21, 31, 0.16);
}

.vessel-one {
  inset: 8% 20% auto auto;
  width: min(42vw, 340px);
  aspect-ratio: 0.72;
  background: radial-gradient(circle at 60% 24%, #fff 0 8%, transparent 9%), var(--coral);
  border-radius: 48% 52% 42% 44% / 18% 18% 72% 72%;
}

.vessel-two {
  left: 4%;
  bottom: 8%;
  width: min(36vw, 280px);
  aspect-ratio: 0.9;
  background: var(--cyan);
  border-radius: 44% 56% 18% 20% / 18% 18% 82% 82%;
}

.vessel-three {
  right: 4%;
  bottom: 4%;
  width: min(30vw, 220px);
  aspect-ratio: 1;
  background: var(--sun);
  border-radius: 50%;
}

.intro,
.products-section,
.manage-section,
.contact-section {
  overflow-x: clip;
  scroll-margin-top: 96px;
  padding: clamp(44px, 7vw, 92px) clamp(16px, 4vw, 56px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  color: white;
  background: var(--ink);
}

.intro .eyebrow,
.intro p {
  color: var(--lime);
}

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

.source-note {
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-right: 8px;
  padding-bottom: 10px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 7px 8px 0 rgba(23, 21, 31, 0.15);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eee;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.availability {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.product-body {
  padding: 18px;
}

.product-category {
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-description {
  min-height: 4.8em;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.product-meta {
  justify-content: space-between;
}

.price {
  font-weight: 900;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  background: var(--sun);
  font-size: 1.3rem;
  font-weight: 900;
}

.icon-button.delete {
  background: var(--coral);
  color: white;
}

.manage-section {
  background: #e8fbff;
}

.product-form,
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.wide,
.contact-form label,
.form-actions {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px 13px;
  background: white;
}

textarea {
  resize: vertical;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: 22px;
  height: 22px;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  background: var(--sun);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.contact-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 7px 8px 0 rgba(23, 21, 31, 0.18);
}

.contact-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.contact-photo figcaption {
  padding: 10px 12px;
  color: white;
  background: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.map-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 7px 8px 0 rgba(23, 21, 31, 0.18);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

.contact-form {
  grid-column: 1 / -1;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 24px clamp(16px, 4vw, 56px);
  color: white;
  background: var(--violet);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    min-height: 76px;
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .brand {
    max-width: calc(100% - 64px);
  }

  .brand span:last-child {
    font-size: 0.98rem;
    line-height: 1.1;
  }

  .menu-toggle {
    display: grid;
  }

  body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav {
    position: fixed;
    top: 84px;
    right: 14px;
    left: 14px;
    z-index: 31;
    display: grid;
    gap: 10px;
    padding: 14px;
    background: var(--surface);
    border: 3px solid var(--ink);
    border-radius: 8px;
    box-shadow: 7px 8px 0 rgba(23, 21, 31, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.nav-open nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  nav a {
    min-height: 52px;
    padding: 0 12px;
    border-radius: 8px;
    background: #e8fbff;
    font-size: 1.05rem;
  }

  nav a:nth-child(2) {
    background: #fff3ba;
  }

  nav a:nth-child(3) {
    background: #f0ffe0;
  }

  nav a:nth-child(4) {
    background: #ffe6ea;
  }

  .hero,
  .intro,
  .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
    gap: 20px;
    padding-top: 42px;
  }

  .hero-art {
    order: -1;
    width: min(100%, 430px);
    min-height: clamp(220px, 54vw, 330px);
    justify-self: center;
  }

  .vessel-one {
    inset: 3% 10% auto auto;
  }

  .vessel-two {
    left: 4%;
    bottom: 6%;
  }

  .vessel-three {
    right: 2%;
    bottom: 5%;
  }

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

@media (max-width: 600px) {
  h1 {
    max-width: 9.4ch;
    font-size: clamp(2.75rem, 13vw, 4.15rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.85rem);
    line-height: 1.04;
  }

  .hero-copy > p:not(.eyebrow),
  .intro > p,
  .contact-section p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-art {
    width: min(100%, 340px);
    min-height: 226px;
  }

  .vessel {
    border-width: 3px;
    box-shadow: 6px 8px 0 rgba(23, 21, 31, 0.16);
  }

  .vessel-one {
    inset: 5% 8% auto auto;
    width: min(42vw, 150px);
  }

  .vessel-two {
    left: 4%;
    bottom: 7%;
    width: min(39vw, 142px);
  }

  .vessel-three {
    right: 0;
    bottom: 18%;
    width: min(28vw, 98px);
  }

  .intro,
  .products-section,
  .manage-section,
  .contact-section {
    padding: 48px 16px;
  }

  .product-grid,
  .product-form,
  .contact-form,
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-photo img {
    max-height: 420px;
  }

  .map-card iframe {
    min-height: 230px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .product-grid {
    gap: 16px;
    padding-right: 0;
  }

  .product-description {
    min-height: auto;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-meta > div {
    display: flex;
    gap: 10px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .brand span:last-child {
    max-width: 14ch;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.3rem);
  }

  .hero-art {
    width: min(100%, 310px);
    min-height: 210px;
  }

  .vessel-one {
    width: min(42vw, 136px);
  }

  .vessel-two {
    width: min(39vw, 128px);
  }

  .vessel-three {
    width: min(27vw, 88px);
  }
}
