:root {
  color-scheme: light;
  --paper: #f7f0e3;
  --cream: #fff9ed;
  --forest: #1a3025;
  --forest-dark: #12251c;
  --forest-light: #315341;
  --text: #24392d;
  --muted: #536052;
  --line: #d8c9af;
  --gold: #c49854;
  --gold-light: #f1d397;
  --gold-dark: #805720;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Trebuchet MS', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.55 var(--body); color: var(--text); background: var(--paper); }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid #a77229; outline-offset: 4px; }
img { display: block; width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.section { scroll-margin-top: 24px; }
.skip { position: fixed; z-index: 5; top: 12px; left: 12px; color: var(--forest); background: white; padding: 12px 18px; transform: translateY(-140%); }
.skip:focus { transform: none; }

.ornament {
  display: block;
  width: 118px;
  aspect-ratio: 184 / 51;
  flex: none;
  color: var(--gold);
  background-color: currentColor;
  /* Frame the ornament below the lettering in the original brand mark. */
  mask: url('assets/auyl-berekesi-logo.png') center bottom / 167.4% 368.6% no-repeat;
}
.ornamental-rule { display: flex; align-items: center; gap: 18px; }
.ornamental-rule::before, .ornamental-rule::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .5; }
.ornamental-rule .ornament { width: 92px; color: inherit; }

.site-header { background: var(--cream); border-top: 4px solid var(--forest); border-bottom: 1px solid var(--gold); }
.header-inner { min-height: 112px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { display: block; width: 145px; }
.brand img { height: auto; }
.site-header .brand { justify-self: center; grid-column: 2; grid-row: 1; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(15px, 2.1vw, 31px); grid-column: 1; grid-row: 1; }
.site-header nav a, .site-footer a:not(.brand) { text-underline-offset: 6px; text-decoration: none; font-size: .94rem; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; }
.bag-button { display: inline-flex; grid-column: 3; grid-row: 1; justify-self: end; align-items: center; gap: 10px; min-height: 44px; background: none; padding: 7px 13px; border: 1px solid #b89b6e; border-radius: 50px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.bag-button:hover { background: #f2e8d5; }
.bag-icon { position: relative; border: 1.5px solid currentColor; border-radius: 2px; display: inline-block; width: 14px; height: 13px; margin-top: 4px; }
.bag-icon::before { content: ''; position: absolute; width: 6px; height: 6px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; top: -6px; left: 2.5px; }
.bag-count { display: grid; place-items: center; min-width: 22px; min-height: 22px; color: white; background: var(--forest-light); border-radius: 50%; font-size: .75rem; }

.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 76% 45%, #35513b 0%, var(--forest) 51%, var(--forest-dark) 100%); color: var(--cream); }
.hero-inner { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(28px, 4.5vw, 72px); padding-block: 44px 29px; }
.hero-body { padding: 20px 0 26px 14px; }
.hero-ornament { width: 142px; color: var(--gold-light); margin: 0 0 20px; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.hero-eyebrow { color: var(--gold-light); margin-bottom: 17px; }
h1 { font-size: clamp(3.05rem, 5.9vw, 6rem); line-height: .97; letter-spacing: -.067em; }
h1 em { color: var(--gold-light); font-weight: inherit; }
.hero-description { max-width: 355px; margin: 25px 0 24px; color: #f1ebdc; font-size: 1.08rem; }
.hero-media { position: relative; padding: 7px; border: 1px solid var(--gold); border-radius: 48% 48% 5px 5px / 33% 33% 5px 5px; overflow: hidden; box-shadow: 0 17px 40px #0a160d69; }
.hero-image { height: auto; aspect-ratio: 1.24; object-fit: cover; object-position: center; border-radius: inherit; }
.hero .ornamental-rule { color: var(--gold); padding-bottom: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 23px; border: 1px solid transparent; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: .94rem; }
.primary-light { background: linear-gradient(113deg, #e5ba73, #f2d99f); color: #29291b; border-color: #f1d397; box-shadow: inset 0 0 0 3px #52391a17; }
.primary-light:hover { background: #ffe2ab; }
.primary-dark { background: var(--forest); color: white; border-color: #1a3025; }
.primary-dark:hover { background: #365741; }

.catalog { padding-block: 68px 48px; }
.section-heading { text-align: center; margin: 0 auto 26px; }
.section-description { color: var(--muted); max-width: 530px; margin: 15px auto 0; }
h2 { font-size: clamp(2.65rem, 4.65vw, 4.55rem); line-height: 1.01; letter-spacing: -.058em; }
.section-heading h2, .story h2 { margin-top: 8px; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { background: transparent; border: 1px solid #c6ae87; border-radius: 30px; min-height: 42px; padding: 7px 17px; font-size: .9rem; }
.filter:hover { border-color: var(--forest); }
.filter[aria-pressed="true"] { color: var(--cream); background: var(--forest-light); border-color: var(--forest-light); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.product { display: flex; flex-direction: column; min-width: 0; background: var(--cream); border: 1px solid var(--line); padding: 7px; border-radius: 55px 55px 5px 5px; box-shadow: 0 5px 16px #58360d0c; }
.product-photo { overflow: hidden; background: #e4d8bc; border-radius: 48px 48px 2px 2px; }
.product-photo img { height: auto; aspect-ratio: 1.59; object-fit: cover; transition: transform .3s ease; }
.product:hover img { transform: scale(1.035); }
.product-info { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 13px 12px; }
.product h3 { font-size: clamp(1.4rem, 2.55vw, 1.95rem); line-height: 1.1; letter-spacing: -.04em; }
.product p { color: var(--muted); margin-top: 6px; font-size: .93rem; }
.product-button { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #b58d50; border-radius: 50%; background: transparent; padding: 0; font-size: 1.37rem; line-height: 1; }
.product-button:hover { background: #f0e3c8; }
.product-button[data-saved="true"] { background: var(--forest-light); color: white; border-color: var(--forest-light); }

.story-rule { color: #a57736; }
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(34px, 6vw, 87px); padding-block: 46px 86px; }
.story-photo { padding: 8px; border: 1px solid #b18b55; border-radius: 5px 70px 5px 70px; }
.story-photo img { aspect-ratio: 1.27; height: auto; object-fit: cover; border-radius: 2px 62px 2px 62px; background: #ded9cb; }
.story-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 17px; }
.press { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 23px; }
.press a, .saved-items button { font-size: .89rem; font-weight: 700; text-underline-offset: 4px; }

.site-footer { color: var(--cream); background: var(--forest-dark); border-top: 1px solid var(--gold); padding-top: 15px; }
.site-footer .ornamental-rule { color: var(--gold); }
.footer-inner { min-height: 134px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.site-footer .brand { width: 132px; padding: 9px; background: var(--cream); border-radius: 4px; border: 1px solid var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer-inner p { color: #e7dec9; }

.list-dialog { position: fixed; width: min(430px, calc(100% - 24px)); max-width: none; height: min(650px, calc(100% - 24px)); max-height: none; margin: 12px 12px 12px auto; inset: 0; border: 1px solid var(--gold); border-radius: 8px; padding: 0; background: var(--cream); color: var(--text); box-shadow: 0 16px 48px #1115; }
.list-dialog::backdrop { background: #1a241c83; }
.dialog-content { padding: 25px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-heading h2 { font-size: 2.5rem; }
.dialog-content > p { color: var(--muted); margin-top: 12px; }
.saved-items { padding: 0; margin-block: 20px; list-style: none; }
.saved-items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.saved-items button { padding: 5px 0 5px 8px; border: 0; background: transparent; text-decoration: underline; }
#manual-copy { display: block; margin-top: 12px; padding: 10px; width: 100%; font: inherit; }
.copy-status:empty { display: none; }
.toast { position: fixed; z-index: 3; right: 24px; bottom: 24px; max-width: calc(100% - 48px); background: var(--forest); color: white; padding: 12px 17px; border-radius: 4px; border: 1px solid var(--gold); box-shadow: 0 5px 20px #1113; }

@media (max-width: 1040px) {
  .wrap { width: calc(100% - 64px); }
  .hero-body { padding-inline-start: 0; }
  .product-grid { gap: 15px; }
  .product-info { padding-inline: 7px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: auto; padding-block: 10px 8px; grid-template-columns: 1fr auto; gap: 9px; }
  .site-header .brand { grid-column: 1; grid-row: 1; width: 118px; justify-self: start; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 24px; padding-top: 8px; border-top: 1px solid var(--line); }
  .bag-button { grid-column: 2; grid-row: 1; gap: 8px; padding-inline: 10px; }
  .hero-inner { grid-template-columns: 1fr; gap: 14px; padding-block: 23px 17px; }
  .hero-body { text-align: center; padding: 0 0 12px; }
  .hero-ornament { width: 100px; margin: 0 auto 13px; }
  .hero-eyebrow { margin-bottom: 12px; }
  h1 { font-size: clamp(3rem, 10vw, 5.3rem); }
  .hero-description { margin: 16px auto 17px; }
  .hero-media { max-width: 560px; width: 100%; justify-self: center; padding: 5px; border-radius: 44% 44% 4px 4px / 35% 35% 4px 4px; }
  .hero-image { aspect-ratio: 1.63; object-position: center 57%; }
  .hero .ornamental-rule { padding-bottom: 11px; }
  .catalog { padding-block: 48px 38px; }
  .filters { margin-bottom: 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; gap: 27px; padding-block: 42px; }
  .story-photo img { aspect-ratio: 1.65; }
  .site-footer .brand { width: 112px; }
}
@media (max-width: 415px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-photo img { aspect-ratio: 1.75; }
  .footer-inner { flex-wrap: wrap; padding-block: 16px; }
  .footer-inner p { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
