@font-face {
  font-family: Archivo;
  src: url("/assets/archivo-latin-wdth-normal-DY7AcnAa.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
}

@font-face {
  font-family: Archivo;
  src: url("/assets/archivo-latin-ext-wdth-normal-7khWdh9v.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

:root {
  color: #073f2f;
  background: #fff;
  font-family: Archivo, Arial, sans-serif;
  font-synthesis: none;
  --green: #073f2f;
  --green-action: #0b6b45;
  --green-hover: #084d33;
  --muted: #526b62;
  --line: #c9d8d2;
  --light: #f4f8f6;
  --warning: #9c2828;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: inherit; }

button, input, textarea, select { font: inherit; }

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

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .8rem;
  min-height: 4.75rem;
  padding: .5rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand {
  justify-self: start;
  color: var(--green);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 760;
  letter-spacing: -.065em;
  text-decoration: none;
}

.navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .2rem;
  text-underline-offset: .35em;
  text-decoration: none;
}

.navigation a:is(:hover, [aria-current]) { text-decoration: underline; }

.languages {
  display: flex;
  justify-self: end;
}

.languages button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.languages button[aria-pressed="true"] {
  color: var(--green);
  font-weight: 700;
  background: var(--light);
}

.container {
  width: 100%;
  max-width: 105rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(2.5rem, 6vw, 6rem);
}

h1, h2, p { margin: 0; }

h1 {
  font-size: clamp(2.75rem, 6.2vw, 6rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-stretch: 82%;
  font-weight: 690;
}

.hero-copy h1 { max-width: 11ch; }

.hero-copy .button { margin-top: clamp(1.5rem, 3vw, 3rem); }

.hero-art {
  position: relative;
  min-height: clamp(29rem, 46vw, 45rem);
  border-inline-start: 1px solid var(--line);
}

.hero-art img {
  position: absolute;
  display: block;
  object-fit: cover;
}

.hero-growth {
  width: 78%;
  height: 94%;
  right: 0;
  bottom: 0;
  object-position: center 48%;
}

.hero-drop {
  width: 35%;
  height: 57%;
  left: 0;
  top: 0;
  object-position: center 41%;
  border: 1px solid rgb(255 255 255 / 60%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: .65rem .95rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--green);
  background: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.button:hover { background: var(--light); }

.primary {
  border-color: var(--green-action);
  color: #fff;
  background: var(--green-action);
}

.primary:hover { background: var(--green-hover); }

.danger { color: var(--warning); }

button:disabled { opacity: .6; cursor: wait; }

.catalogue, .admin {
  padding-block: clamp(2.5rem, 7vw, 7rem);
}

.catalogue h1, .admin h1 { margin-bottom: clamp(1.5rem, 4vw, 3rem); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.25rem;
  padding-block: 1.25rem;
  margin-bottom: 2rem;
  border-block: 1px solid var(--line);
}

.filters label { flex: 0 1 14rem; max-width: 100%; }

label {
  display: grid;
  gap: .42rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .65rem .75rem;
  color: var(--green);
  background: #fff;
  font-weight: 400;
}

textarea { resize: vertical; }

small { color: var(--muted); font-weight: 400; line-height: 1.4; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1.4rem;
  align-items: start;
}

.product-card {
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.product-photo {
  aspect-ratio: 4 / 3;
  background: var(--light);
  border-bottom: 1px solid var(--line);
}

.product-photo img { width: 100%; height: 100%; object-fit: contain; }

.product-details { display: grid; gap: .66rem; padding: 1.15rem; }

.product-details h2 { font-size: 1.45rem; letter-spacing: -.03em; }

.product-meta, .product-sizes { color: var(--muted); font-size: .9rem; }

.product-description { white-space: pre-line; line-height: 1.5; }

.empty, .status { color: var(--muted); line-height: 1.5; }

.status:not(:empty) { margin-block: .8rem; }

.error { color: var(--warning); }

.admin { max-width: 72rem; }

.admin h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }

.admin-content, .product-form, .login { display: grid; gap: 1.25rem; }

.login { max-width: 23rem; }

.actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--line);
}

.admin-row:first-child { border-top: 1px solid var(--line); }

.admin-identity, .upload {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.admin-identity h2 { font-size: 1.1rem; overflow-wrap: anywhere; }

.thumbnail {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  background: var(--light);
  border: 1px solid var(--line);
}

.product-form { max-width: 46rem; }

.product-form fieldset {
  min-inline-size: 0;
  border: 1px solid var(--line);
  margin: 0;
  padding: 1rem;
}

.product-form legend { padding-inline: .35rem; color: var(--muted); }

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  align-items: start;
}

.form-fields label:has(textarea) { grid-column: 1 / -1; }

.translations { border-block: 1px solid var(--line); }

.translations summary {
  cursor: pointer;
  padding-block: .85rem;
  font-weight: 600;
}

.translations .form-fields { padding-bottom: 1rem; }

@media (max-width: 720px) {
  .site-header { min-height: 4.25rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(3rem, 11vw, 5rem); }
  .hero-art { min-height: min(112vw, 36rem); }
}

@media (max-width: 465px) {
  .form-fields { grid-template-columns: minmax(0, 1fr); }
  .filters label { flex-basis: 100%; }
  .upload { align-items: start; flex-direction: column; }
}
