:root {
  color-scheme: light;
  --paper: #f8f5f0;
  --white: #fffdfa;
  --ink: #282223;
  --muted: #62575a;
  --wine: #572c3b;
  --line: #e1d8d2;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--wine); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.11; }
.wrap { width: min(100% - 5rem, 86rem); margin-inline: auto; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 3; padding: .5rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-inner { min-height: 79px; padding-block: .75rem; }
.wordmark { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .7rem; width: max-content; text-decoration: none; }
.wordmark strong, .wordmark small { display: block; text-transform: uppercase; }
.wordmark strong { font: 400 1.09rem/1.1 var(--serif); letter-spacing: .09em; }
.wordmark small { margin-top: .3rem; font: 500 .65rem/1 var(--sans); letter-spacing: .37em; }
.site-header nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .35rem clamp(1rem, 3vw, 2.5rem); }
.site-header nav a { text-decoration: none; font-size: .94rem; }
.site-header nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: .93fr 1.07fr; align-items: stretch; min-height: 490px; margin-top: 2.2rem; background: #eee4dd; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: clamp(1.75rem, 5vw, 5.3rem); }
.hero h1 { color: #3c2931; font-size: clamp(2.55rem, 4.52vw, 5rem); line-height: .99; letter-spacing: -.057em; }
.hero p { max-width: 26rem; margin-top: 1.5rem; color: #55484b; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.button { display: inline-block; padding: .83rem 1.23rem; margin-top: 1.65rem; background: var(--wine); border-radius: .18rem; color: #fff; text-decoration: none; font-size: .94rem; }
.button:hover { background: #703b4e; color: #fff; }
.hero-photo { width: 100%; height: 100%; min-height: 0; aspect-ratio: 1.20; object-fit: cover; }

.catalog { padding-block: 3.4rem 4.7rem; }
.catalog-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.5rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.catalog-intro p, .section-heading p { color: var(--muted); }
.catalog-intro p { font-size: .92rem; }
.category-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.category-nav a { padding: .48rem .75rem; border: 1px solid #d1bfc3; border-radius: .2rem; color: var(--wine); font-size: .9rem; text-decoration: none; }
.category-nav a:hover { background: #eee3e5; }
.category { margin-top: 2.5rem; }
.category + .category { margin-top: 4.8rem; }
.section-heading { margin-bottom: 1.4rem; }
.section-heading h2 { font-size: clamp(2rem, 3.6vw, 3.45rem); letter-spacing: -.036em; }
.section-heading p { margin-top: .55rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { min-width: 0; background: var(--white); border: 1px solid var(--line); }
.product-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #ede4db; }
.card-info { padding: 1rem 1.05rem 1.16rem; }
.card-title { display: flex; justify-content: space-between; gap: .35rem .7rem; align-items: baseline; }
.card-title h3 { font-size: clamp(1.27rem, 2vw, 1.58rem); }
.price { flex-shrink: 0; color: var(--wine); font-variant-numeric: tabular-nums; font-weight: 600; }
.description { margin-top: .36rem; color: var(--muted); }
.material { margin-top: .65rem; font-size: .875rem; color: #675157; }

.site-footer { padding-block: 2.7rem; background: #30242b; color: #f6eeea; }
.footer-inner { align-items: flex-start; }
.footer-inner address { font-style: normal; font-size: .91rem; line-height: 1.75; }
.footer-inner nav { display: grid; gap: .23rem; font-size: .91rem; }
.site-footer a:hover { color: #f0c8d1; }
.site-footer :focus-visible { outline-color: #f0c8d1; }

.document { width: min(100%, 47rem); padding-block: 2.7rem 4.8rem; margin-inline: auto; min-height: 58vh; }
.document h1 { font-size: clamp(2.65rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -.045em; margin: 1rem 0 1.5rem; }
.document h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-block: 1.7em .5em; }
.document p + p { margin-top: .85rem; }
.document .back { font-size: .94rem; color: var(--wine); }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { min-height: 0; }
  .hero-copy { padding: 1.9rem; }
  .card-title { flex-wrap: wrap; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 670px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: .7rem; padding-block: .8rem; }
  .site-header nav { justify-content: flex-start; gap: .25rem 1rem; }
  .site-header nav a { font-size: .875rem; }
  .hero { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero-copy { padding: 1.7rem 1.25rem 1.85rem; }
  .hero h1 { font-size: clamp(2.45rem, 8.3vw, 3.65rem); }
  .hero p { margin-top: 1rem; }
  .button { margin-top: 1.1rem; }
  .hero-photo { aspect-ratio: 6 / 4; }
  .catalog { padding-block: 2.2rem 3rem; }
  .category + .category { margin-top: 3.3rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .card-info { padding: .72rem .62rem .85rem; }
  .description { font-size: .9rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .document { padding-block: 1.9rem 3.5rem; }
}

@media (max-width: 345px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Order cards, service information, and request form */
.card { display: flex; flex-direction: column; }
.card-info { display: flex; flex: 1; flex-direction: column; }
.card-info .material { margin-bottom: .85rem; }
button.button { border: 0; font-family: inherit; cursor: pointer; }
.order-button { align-self: flex-start; margin-top: auto; padding-block: .62rem; }
button.button:disabled { cursor: default; opacity: .65; }

.order-info { background: #f0e7df; border-block: 1px solid #e7dcd3; }
.order-conditions { padding-block: clamp(2.2rem, 4.7vw, 4.1rem); }
.order-conditions > h2, .company h2 { font-size: clamp(2.1rem, 3.6vw, 3.45rem); letter-spacing: -.04em; }
.order-conditions > h2 { margin-bottom: clamp(1.1rem, 2.4vw, 2rem); }
.service-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) repeat(2, minmax(0, 1fr)); gap: clamp(.7rem, 1.5vw, 1.25rem); }
.service-card { min-width: 0; padding: clamp(1.05rem, 2.1vw, 1.8rem); border: 1px solid #dccbc5; border-radius: .34rem; background: var(--white); }
.service-card h3 { color: var(--ink); font-size: clamp(1.35rem, 2.05vw, 1.9rem); letter-spacing: -.025em; }
.service-list { margin: .85rem 0 0; }
.service-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem .55rem; padding-block: .39rem; }
.service-list dt { min-width: 0; }
.service-list dd { margin: 0; color: var(--wine); font-weight: 600; white-space: nowrap; }
.delivery-times { padding-top: .45rem; border-top: 1px solid var(--line); }
.delivery-times dt { color: var(--muted); }
.service-highlight { margin: .85rem 0 .9rem; padding: .55rem 0 .85rem; border-bottom: 1px solid var(--line); }
.service-highlight > p + p { margin-top: .45rem; }
.service-figure { color: var(--wine); font: 400 clamp(2.2rem, 3.3vw, 3.35rem)/1 var(--serif); letter-spacing: -.054em; }
.service-body { color: var(--muted); }
.service-body p + p { margin-top: .62rem; }
.service-body a { display: inline-block; margin-top: .7rem; color: var(--wine); }
.service-details { margin-top: .85rem; border-block: 1px solid #d7c7c2; }
.service-details summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .78rem .1rem; list-style: none; color: var(--wine); font-weight: 600; cursor: pointer; }
.service-details summary::-webkit-details-marker { display: none; }
.service-toggle { position: relative; flex: 0 0 1.65rem; height: 1.65rem; border: 1px solid #ccafb9; border-radius: 50%; }
.service-toggle::before, .service-toggle::after { position: absolute; inset: 50% auto auto 50%; width: .65rem; height: 1px; background: currentColor; content: ""; transform: translate(-50%, -50%); }
.service-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.service-details[open] .service-toggle::after { display: none; }
.service-details-body { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: 1rem 2.3rem; max-width: 67rem; padding: .25rem 0 1.2rem; }
.service-details-body h3 { margin-bottom: .55rem; font-size: 1.35rem; }
.service-details-body ol { margin: 0; padding-left: 1.3rem; }
.service-details-body li + li { margin-top: .25rem; }
.company { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: start; gap: 1.2rem 3rem; padding-block: clamp(2.2rem, 5vw, 4.6rem); }
.company p { max-width: 40rem; color: var(--muted); }
.company p + p { margin-top: .7rem; }

.order-dialog { width: min(100% - 2rem, 29rem); max-height: calc(100% - 2rem); padding: clamp(1.2rem, 5vw, 2rem); border: 1px solid var(--line); border-radius: .4rem; background: var(--white); color: var(--ink); overflow-y: auto; }
.order-dialog::backdrop { background: rgb(37 23 30 / .62); }
.order-dialog h2 { margin-right: 1.8rem; font-size: clamp(1.85rem, 6vw, 2.5rem); letter-spacing: -.034em; }
.order-product { margin-top: .45rem; color: var(--muted); }
.dialog-close { position: absolute; top: .75rem; right: .85rem; width: 2.3rem; height: 2.3rem; padding: 0; border: 0; background: transparent; color: var(--wine); font: 1.6rem/1 var(--sans); cursor: pointer; }
.order-form { margin-top: 1rem; }
.order-form > label { display: block; margin-bottom: .26rem; }
.order-form > input { display: block; width: 100%; min-height: 2.8rem; margin-bottom: .8rem; padding: .48rem .65rem; border: 1px solid #bba9af; border-radius: .2rem; background: #fff; color: var(--ink); font: inherit; }
.form-consent { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); align-items: start; gap: .24rem .55rem; font-size: .87rem; }
.form-consent input { width: 1rem; height: 1rem; margin: .15rem 0 0; accent-color: var(--wine); }
.form-consent a { grid-column: 2; color: var(--wine); }
.form-submit { width: 100%; margin-top: 1.1rem; }
.form-status:not(:empty) { margin-top: .85rem; }
.form-status.is-error { color: #8b2440; }

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card--shipping { grid-column: 1 / -1; }
  .shipping-details { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.6rem; }
  .delivery-times { padding: 0 0 0 1.4rem; border: 0; border-left: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .company { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .service-grid, .shipping-details, .service-details-body { grid-template-columns: 1fr; }
  .shipping-details { gap: 0; }
  .delivery-times { padding: .45rem 0 0; border: 0; border-top: 1px solid var(--line); }
}
