:root {
  --green: #013329;
  --gold: #d3b689;
  --cream: #fbf3e1;
  --ink: #152e27;
  --line: #deded5;
  --muted: #606c65;
  --serif: Georgia, 'Times New Roman', serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fffdf8;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}
h3 {
  font-size: 1.6rem;
}
.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 32px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 14px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 13px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 12px 30px;
  background: var(--green);
  color: var(--cream);
  border: 1px solid var(--green);
  border-radius: 4px;
  font-weight: 600;
  gap: 10px;
}
.button:hover {
  background: #185244;
}
.button.gold {
  background: var(--gold);
  color: var(--green);
  border-color: var(--gold);
}
.button.outline {
  background: transparent;
  color: var(--green);
}
.full {
  width: 100%;
}
.skip {
  position: fixed;
  left: 10px;
  top: -80px;
  background: white;
  z-index: 30;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #b58b4c;
  outline-offset: 4px;
}
.notice {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  font-size: 13px;
  padding: 7px 16px;
  letter-spacing: 0.05em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 91px;
  max-width: 1150px;
  margin: auto;
  padding: 16px 24px;
}
.brand {
  width: 190px;
  flex-shrink: 0;
}
.brand img {
  width: 190px;
  height: 56px;
  object-fit: contain;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 20px;
  font-size: 14px;
  font-weight: 600;
}
.navlinks a:hover {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.icon {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.icon img {
  filter: brightness(0);
  flex-shrink: 0;
}
.actions .counter {
  font-size: 13px;
}
.menu {
  display: none;
}
.header-home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  color: white;
}
.header-home .notice {
  background: rgba(1, 51, 41, 0.8);
}
.header-home .icon img {
  filter: none;
}
.header-home .brand {
  background: var(--green);
  border-radius: 2px;
}
.hero {
  position: relative;
  min-height: 729px;
  display: flex;
  align-items: center;
  color: white;
  background: #687b74;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1, 35, 28, 0.72),
    rgba(1, 35, 28, 0.18) 64%,
    rgba(1, 35, 28, 0.08)
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  width: 100%;
  margin: 90px auto 0;
  padding: 70px 0 90px;
}
.hero h1 {
  max-width: 570px;
  font-size: clamp(3rem, 4.6vw, 4.3rem);
  line-height: 1.14;
  margin: 22px 0;
}
.hero p {
  max-width: 376px;
  line-height: 1.5;
  margin-bottom: 28px;
}
.hero .eyebrow {
  color: var(--cream);
}
.category-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 34px;
  background: var(--green);
  color: var(--cream);
  padding: 25px 20px;
  font-family: var(--serif);
  font-size: 20px;
}
.category-strip a:hover {
  color: var(--gold);
}
.section {
  padding: 76px 0;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-title h2 {
  margin-bottom: 8px;
}
.textlink {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.card {
  position: relative;
}
.card .photo {
  overflow: hidden;
  background: var(--cream);
  border-radius: 10px;
}
.card .photo img {
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s;
}
.card .photo:hover img {
  transform: scale(1.035);
}
.card .favorite {
  position: absolute;
  right: 14px;
  top: 14px;
  border-radius: 50%;
  background: var(--cream);
  width: 42px;
  height: 42px;
  font-size: 24px;
  color: var(--green);
}
.card h3 {
  font-size: 24px;
  margin: 14px 0 5px;
}
.card p {
  margin-bottom: 7px;
}
.demo-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.collection {
  background: var(--cream);
  border-radius: 16px;
  padding: 42px;
}
.collection .grid {
  gap: 20px;
}
.category-tile {
  border: 1px solid #d4c7ac;
  border-radius: 8px;
  min-height: 100px;
  padding: 24px;
  background: #fffdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 26px;
}
.category-tile span {
  font-family: Arial;
  font-size: 13px;
  color: var(--muted);
}
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--green);
  color: var(--cream);
}
.story img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.story-text {
  padding: 50px 70px;
}
.story h2 {
  color: var(--cream);
}
.story p {
  max-width: 400px;
}
.brand-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.brand-gallery img {
  border-radius: 6px;
  aspect-ratio: 1;
  object-fit: cover;
}
.footer {
  background: var(--green);
  color: var(--cream);
  padding: 55px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer .brand {
  width: 240px;
  margin-bottom: 18px;
}
.footer .brand img {
  width: 240px;
  height: auto;
}
.footer a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}
.footer p {
  max-width: 320px;
  font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid #ffffff30;
  padding-top: 22px;
  margin-top: 38px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.page {
  padding: 36px 0 80px;
  min-height: 60vh;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
.page h1 {
  font-size: 48px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 36px;
}
.filters {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
}
.filters h3 {
  font-family: Arial;
  font-size: 18px;
  margin-bottom: 22px;
}
.filters a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
}
.filters a.active {
  color: var(--green);
  font-weight: 700;
}
.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.catalog-top select {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  max-width: 210px;
}
.catalog .grid {
  gap: 20px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.empty h2 {
  font-size: 32px;
}
.empty p {
  max-width: 480px;
  margin: 0 auto 26px;
}
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-photo {
  width: 100%;
  border-radius: 12px;
}
.product h1 {
  font-size: 46px;
}
.pill {
  display: inline-block;
  background: var(--cream);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 13px;
  margin-bottom: 18px;
}
.quantity {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  border-radius: 30px;
  gap: 16px;
  min-height: 48px;
}
.quantity button {
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.purchase {
  display: flex;
  gap: 14px;
  margin: 28px 0;
}
.purchase .button {
  flex: 1;
}
.details {
  margin: 30px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.details summary {
  cursor: pointer;
  font-weight: 600;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefa;
}
.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:first-child {
  padding-top: 0;
}
.cart-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.cart-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item h3 {
  font-size: 23px;
  margin: 0 0 6px;
}
.cart-item .quantity {
  gap: 4px;
  min-height: 38px;
}
.cart-item .quantity button {
  width: 34px;
  height: 34px;
}
.remove {
  font-size: 14px;
  text-decoration: underline;
  align-self: start;
}
.summary {
  height: fit-content;
}
.summary h2 {
  font-size: 28px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.summary-row.total {
  border-top: 1px solid var(--line);
  margin: 16px 0;
  font-weight: 600;
}
.info {
  background: var(--cream);
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field.wide {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
input,
select,
textarea {
  width: 100%;
  background: white;
  color: var(--ink);
  border: 1px solid #b8c2bb;
  border-radius: 5px;
  padding: 12px;
  min-width: 0;
}
.form-grid + .button {
  margin-top: 24px;
}
.steps {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.confirmation {
  padding: 20px;
  background: var(--cream);
  border-radius: 8px;
  margin-top: 20px;
}
.confirmation h3 {
  font-size: 26px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--cream);
  border: 1px solid var(--gold);
  padding: 13px 22px;
  border-radius: 6px;
  z-index: 50;
  max-width: 90%;
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 520px;
  width: 90%;
  padding: 32px;
  color: var(--green);
}
dialog::backdrop {
  background: #001b16a8;
}
.close {
  float: right;
  font-size: 30px;
}
dialog h2 {
  font-size: 34px;
}
dialog label {
  display: block;
  margin-bottom: 8px;
}
dialog .button {
  margin-top: 16px;
}
.reading {
  max-width: 800px;
}
.reading img {
  width: 100%;
  border-radius: 12px;
  margin: 30px 0;
}
.reading h2 {
  font-size: 32px;
  margin-top: 35px;
}
@media (min-width: 1500px) {
  .hero-content {
    max-width: 1150px;
  }
}
@media (max-width: 1150px) {
  .hero-content {
    padding-left: 8%;
    padding-right: 8%;
  }
  .nav {
    gap: 12px;
  }
  .navlinks {
    gap: 15px;
    margin-left: 0;
  }
  .story-text {
    padding: 35px;
  }
  .grid {
    gap: 18px;
  }
}
@media (max-width: 800px) {
  .wrap {
    padding: 0 20px;
  }
  .nav {
    padding: 12px 20px;
    min-height: 80px;
  }
  .brand,
  .brand img {
    width: 155px;
  }
  .brand img {
    height: 46px;
  }
  .navlinks {
    display: none;
    position: absolute;
    top: 112px;
    left: 0;
    right: 0;
    padding: 24px;
    background: var(--green);
    color: white;
    flex-direction: column;
    align-items: start;
    z-index: 10;
  }
  .navlinks.open {
    display: flex;
  }
  .menu {
    display: block;
    font-size: 24px;
    width: 38px;
  }
  .actions {
    gap: 0;
  }
  .icon {
    min-width: 36px;
  }
  .hero {
    min-height: 720px;
    align-items: end;
  }
  .hero > img {
    object-position: 66% center;
  }
  .hero:after {
    background: linear-gradient(
      0deg,
      rgba(1, 35, 28, 0.95),
      rgba(1, 35, 28, 0.42) 55%,
      rgba(1, 35, 28, 0.2)
    );
  }
  .hero-content {
    margin: 0;
    padding: 230px 24px 65px;
  }
  .hero h1 {
    font-size: 48px;
    max-width: 420px;
  }
  .hero p {
    max-width: 320px;
  }
  .category-strip {
    gap: 18px;
    font-size: 18px;
    padding: 20px;
  }
  .section {
    padding: 48px 0;
  }
  .section-title {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card h3 {
    font-size: 22px;
  }
  .collection {
    padding: 28px 18px;
  }
  .category-tile {
    font-size: 22px;
    flex-direction: column;
    align-items: start;
    gap: 8px;
  }
  .story {
    grid-template-columns: 1fr;
  }
  .story img {
    max-height: 480px;
  }
  .story-text {
    padding: 40px 24px;
  }
  .brand-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top > div:first-child {
    grid-column: 1/-1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .page h1 {
    font-size: 38px;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .filters {
    padding: 15px;
  }
  .filters h3 {
    margin: 0 0 10px;
  }
  .filters a {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
  }
  .catalog-top {
    align-items: start;
    flex-direction: column;
  }
  .catalog-top select {
    max-width: 100%;
  }
  .product {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .product h1 {
    font-size: 38px;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 14px;
  }
  .cart-item img {
    width: 80px;
    height: 90px;
  }
  .cart-item .remove {
    grid-column: 2;
    justify-self: end;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .purchase {
    flex-wrap: wrap;
  }
  .purchase .button {
    min-width: 180px;
  }
  .notice {
    font-size: 12px;
  }
  .footer .brand img {
    height: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
