/* The home page follows the objects in the garden, pantry and kitchen. */
.pantry-room {
  position: relative;
  padding: clamp(32px, 4.6vw, 72px) 0;
  background: #263f31;
  color: #fff6dc;
  border-block: 4px double #94a080;
}
.room-layout {
  display: grid;
  grid-template-columns: minmax(0, .79fr) minmax(0, 1.95fr);
  align-items: center;
  gap: clamp(25px, 3.5vw, 59px);
}
.room-intro h2 { font: 700 clamp(39px, 3.5vw, 57px)/.92 var(--display); }
.room-intro h2 em { display: block; color: #f3c576; font: 700 clamp(57px, 5.8vw, 91px)/1 var(--hand); letter-spacing: -.045em; }
.room-intro p { max-width: 32ch; margin: 14px 0 17px; line-height: 1.65; }
.room-links { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 18px; }
.room-links .guide-entry { transform: rotate(-1.5deg); }
.room-links .arrow-link { color: #fff3ce; }
.pantry-room :focus-visible { outline-color: #ffe5a8; }
.cupboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 10%;
  aspect-ratio: 2 / 1;
  background: #bfb07a url("assets/kamraszekreny.webp") center / 100% 100% no-repeat;
  box-shadow: 2px 6px 10px #13241b7a;
  border: 2px solid #aca06c;
}
.shelf-family { position: relative; min-width: 0; display: block; --front-height: 54%; --back-height: 43%; --shift: 9%; --tilt: -2deg; }
.shelf-cordial { --front-height: 62%; --back-height: 57%; --shift: 6%; --tilt: 2deg; }
.shelf-jam { --front-height: 30%; --back-height: 27%; --shift: 8%; --tilt: -1deg; }
.shelf-family img { position: absolute; object-fit: contain; width: auto; max-width: 75%; }
.shelf-family::before {
  content: ""; position: absolute; bottom: 22.9%; left: 18%; width: 66%; height: 5%;
  background: radial-gradient(ellipse, #4a371e88, transparent 71%); pointer-events: none;
}
.shelf-family .front-bottle { height: var(--front-height); bottom: 24.6%; left: calc(50% + var(--shift)); transform: translateX(-50%); filter: drop-shadow(2px 2px 1px #4a351b79); }
.shelf-family .back-bottle { height: var(--back-height); bottom: 25.8%; left: calc(50% - var(--shift)); transform: translateX(-50%); filter: brightness(.87); }
.shelf-tag {
  position: absolute; top: 79.5%; left: 50%; transform: translateX(-50%) rotate(var(--tilt)); transform-origin: top center;
  display: grid; justify-items: center; padding: 2px 10px 5px; min-width: 72%; color: #3c412c;
  background: #fff2ce var(--grain); outline: 1px solid #a18c68; outline-offset: -3px; box-shadow: 1px 2px 3px #201e1680;
}
.shelf-tag b { font: 700 clamp(24px, 2.35vw, 38px)/1.05 var(--hand); }
.shelf-tag small { font-size: clamp(12px, 1vw, 15px); line-height: 1.45; white-space: nowrap; }
.shelf-family:is(:hover, :focus-visible) .shelf-tag b { text-decoration: underline; text-underline-offset: 3px; }
.shelf-family:focus-visible { outline-offset: -4px; outline-color: #422a11; }

.harvest-picks { padding: clamp(52px, 6.4vw, 95px) 0; }
.picks-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.32fr); align-items: center; gap: clamp(20px, 3.4vw, 52px); }
.field-photo {
  position: relative; margin: 0 6px 0 9px; padding: 9px 9px 6px; background: #fffbee;
  border: 1px solid #c4b597; box-shadow: 2px 4px 7px #49331e33; transform: rotate(-3deg);
}
.field-photo img { width: 100%; aspect-ratio: 1.18; object-fit: cover; }
.field-photo figcaption, .orchard-portrait figcaption, .recipe-print figcaption { padding: 8px 5px 4px; text-align: center; font: 600 clamp(20px, 2vw, 28px)/1.15 var(--hand); }
.field-photo::before, .field-letter::before, .recipe-print::before {
  content: ""; position: absolute; z-index: 1; width: 76px; height: 22px; background: repeating-linear-gradient(87deg, #e0c89084 0 3px, #cdb37888 3px 4px), #ead4a281;
  clip-path: polygon(1% 5%,97% 0,99% 17%,98% 39%,100% 69%,98% 96%,1% 100%,3% 74%,0 51%,3% 33%);
  pointer-events: none;
}
.field-photo::before { left: 38%; top: -9px; transform: rotate(5deg); }
.market-pad {
  position: relative; padding: clamp(18px, 2.5vw, 38px) clamp(15px, 2.8vw, 39px) 15px clamp(23px, 3.3vw, 47px);
  background-color: #fff7e3; background-image: linear-gradient(90deg, transparent 16px, #b9634f65 16px 17px, transparent 17px);
  border: 1px solid #b6a581; box-shadow: 1px 3px 0 #e9dbbf, 2px 4px 0 #b8a987, 4px 6px 0 #e6d6b5;
}
.market-pad h2 { color: var(--rust); font: 700 clamp(38px, 4.5vw, 66px)/1.04 var(--hand); margin-bottom: 12px; }
.market-list { padding: 0; margin: 0 0 4px; list-style: none; border-top: 3px double #a79673; }
.market-list li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 7px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #a4afa081; }
.market-product { display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: center; gap: 12px; min-height: 65px; }
.market-product img { width: 100%; height: 61px; object-fit: contain; mix-blend-mode: multiply; }
.market-product strong, .market-product small { display: block; }
.market-product strong { font-size: 17px; line-height: 1.32; }
.market-product small { color: var(--muted); font-size: 14px; }
.market-product:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.market-list .product-prices { display: grid; gap: 0; justify-items: end; white-space: nowrap; }
.market-list .button { min-height: 44px; padding: 7px 12px; }
.market-pad > .arrow-link { margin-top: 3px; }

.orchard-story {
  padding: clamp(55px, 8vw, 125px) 0;
  background: linear-gradient(90deg, #172a2066, #18231b42 50%, #26372b55), url("assets/szuret.webp") center 52% / cover;
  border-block: 4px double #736d4f;
}
.orchard-spread { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.82fr); align-items: center; gap: clamp(20px,4.8vw,80px); }
.orchard-portrait { position: relative; padding: 10px 10px 5px; margin: 0 0 0 3%; background: #fff8e6; transform: rotate(-3deg); box-shadow: 3px 5px 10px #19211bd6; }
.orchard-portrait img { width: 100%; }
.orchard-portrait::before, .orchard-portrait::after { content: ""; position: absolute; width: 32px; height: 32px; pointer-events: none; background: #594e37; }
.orchard-portrait::before { top: -1px; left: -1px; clip-path: polygon(0 0,100% 0,0 100%); }
.orchard-portrait::after { bottom: -1px; right: -1px; clip-path: polygon(100% 0,100% 100%,0 100%); }
.field-letter { position: relative; padding: clamp(24px, 3.6vw, 52px); background: var(--paper) var(--grain); transform: rotate(1.3deg); box-shadow: 3px 5px 9px #2430207d; }
.field-letter::before { right: 15%; top: -7px; transform: rotate(-6deg); }
.field-date { color: var(--rust); font: 600 clamp(23px,2.05vw,29px)/1.14 var(--hand); }
.field-letter h2, .cookbook-right h2, .post-message h2 { font: 700 clamp(42px, 4.3vw, 68px)/1 var(--display); margin: 6px 0 13px; }
.field-letter p:not(.field-date), .cookbook-right p:not(.field-date, .pencil-line) { line-height: 1.7; }
.field-letter .arrow-link, .cookbook-right .arrow-link { margin-top: 9px; }

.kitchen-table {
  padding: clamp(44px, 5.7vw, 86px) 0 clamp(30px,4vw,64px); background-color: #e9d7b5;
  background-image: repeating-linear-gradient(0deg, transparent 0 19px, #a24f3521 19px 21px, transparent 21px 24px, #a0523926 24px 26px, transparent 26px 50px),repeating-linear-gradient(90deg, transparent 0 20px, #ab5d4529 20px 22px, transparent 22px 25px, #a75b3e26 25px 27px, transparent 27px 50px);
}
.open-cookbook {
  display: grid; grid-template-columns: 1fr 1fr; position: relative; margin: 0 2%;
  border: 4px solid #626b4a; border-radius: 8px 10px 13px 6px/5px 8px 8px 5px;
  background: #fff3d9 var(--grain); box-shadow: 1px 3px 0 #eadbbb, 2px 4px 0 #ab976f, 3px 6px 0 #ddd0aa, 4px 8px 0 #78805b, 5px 10px 12px #66472445;
}
.cookbook-left, .cookbook-right { position: relative; align-self: stretch; min-width: 0; padding: clamp(22px, 3.6vw, 54px); }
.cookbook-left { display: grid; place-items: center; background: linear-gradient(90deg, transparent 76%,#8a724126 98%,#87704452 100%); }
.cookbook-right { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(90deg, #8f703d44, transparent 7%); }
.book-ribbon { position: absolute; top: -6px; left: 15%; width: 26px; height: 49px; background: #9c442a; clip-path: polygon(0 0,100% 0,100% 100%,50% 77%,0 100%); }
.recipe-print { position: relative; padding: 7px 7px 2px; background: #fffaf0; transform: rotate(-2deg); border: 1px solid #c2b399; box-shadow: 1px 3px 6px #5b442b2f; }
.recipe-print img { width: 100%; aspect-ratio: 1.57; object-fit: cover; }
.recipe-print::before { right: -7px; top: -5px; transform: rotate(22deg); width: 46px; height: 17px; }
.cookbook-right h2 { font-family: var(--hand); color: #873d1f; letter-spacing: -.025em; }
.pencil-line { margin-top: 12px; font: 600 23px/1.2 var(--hand); border-bottom: 1px dashed #997953; }
.parcel-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin: 30px 4% 0; padding: 10px 24px; background: #dfc69a; border-block: 1px dashed #9d7e52; box-shadow: 2px 3px 2px #66462729; }
.parcel-strip img { width: 72px; height: 69px; object-fit: contain; mix-blend-mode: multiply; }
.parcel-strip small { font-size: 14px; }
.parcel-strip strong { display: block; font: 700 33px/1 var(--hand); }
.parcel-contents { max-width: 32ch; line-height: 1.45; }
.parcel-go { margin-left: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.parcel-strip:hover .parcel-go { color: var(--rust); }

.garden-mail { padding: clamp(32px,4.5vw,66px) 0; background: #354b3a; }
.garden-postcard {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,5vw,75px); align-items: center;
  padding: clamp(22px, 3.2vw, 50px); background: #fbf0d5 var(--grain); border: 5px solid #ede1bb;
  outline: 1px dashed #aaa07c; outline-offset: -10px; box-shadow: 2px 4px 6px #16251c88; transform: rotate(-.35deg);
}
.post-message { position: relative; padding-right: 97px; }
.post-message h2 { font-family: var(--hand); margin: 0 0 7px; font-size: clamp(37px,3.5vw,55px); }
.post-message p { max-width: 37ch; }
.post-stamp { position: absolute; width: 77px; height: 79px; object-fit: contain; right: 0; top: -4px; transform: rotate(6deg); padding: 4px; border: 3px dotted #9f9175; outline: 1px solid #ac9e7b; background: #ebe4bf; }
.post-address { padding-left: clamp(14px,2.5vw,35px); border-left: 2px solid #b6a785; }
.post-address label { display: block; font-weight: 600; margin-bottom: 6px; }
.post-address input { max-width: 100%; }
.post-address small { display: block; color: var(--muted); margin-top: 8px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .shelf-tag { transition: transform 200ms ease-out; }
  .shelf-family:hover .shelf-tag { transform: translateX(-50%) rotate(calc(-1 * var(--tilt))) translateY(-2px); }
}
@media (max-width: 1020px) {
  .room-layout { grid-template-columns: minmax(0,.76fr) minmax(0,1.7fr); gap: 24px; }
  .shelf-tag { min-width: 78%; padding-inline: 6px; }
  .picks-layout { grid-template-columns: minmax(0,.65fr) minmax(0,1.25fr); gap: 20px; }
  .market-list li { grid-template-columns: minmax(0,1fr) auto; }
  .market-product { grid-row: span 2; }
  .market-list .product-prices { display: flex; gap: 7px; justify-content: end; }
  .market-list .button { justify-self: end; }
  .parcel-contents { flex: 1; }
  .parcel-go { margin-left: 0; }
}
@media (max-width: 900px) {
  .room-layout { grid-template-columns: minmax(0,1fr); }
  .room-intro h2 { font-size: 44px; }
  .room-intro h2 em { display: inline; font-size: 58px; }
  .room-intro p { margin-block: 8px 10px; max-width: 47ch; }
}
@media (max-width: 760px) {
  .picks-layout, .orchard-spread, .garden-postcard { grid-template-columns: minmax(0,1fr); }
  .cupboard { aspect-ratio: 1.83; }
  .shelf-tag b { font-size: clamp(23px,4.5vw,31px); }
  .picks-layout { gap: 14px; }
  .field-photo { max-width: 75%; margin-left: 5px; }
  .field-photo img { aspect-ratio: 2.05; }
  .market-pad { margin-left: 6%; z-index: 1; }
  .orchard-spread { gap: 8px; }
  .orchard-portrait { width: 78%; max-width: 420px; }
  .field-letter { margin-left: 8%; padding: 23px; }
  .cookbook-left, .cookbook-right { padding: 22px 17px; }
  .open-cookbook { margin: 0; }
  .parcel-strip { gap: 6px 14px; margin-inline: 2%; padding-inline: 14px; }
  .parcel-contents { flex-basis: 45%; }
  .garden-postcard { gap: 16px; }
  .post-address { border-left: 0; border-top: 1px solid #b6a785; padding: 12px 0 0; }
}
@media (max-width: 540px) {
  .cupboard { aspect-ratio: 1.57; padding-inline: 6%; }
  .shelf-tag { top: 80%; min-width: 83%; padding: 3px 5px 6px; }
  .shelf-tag small { display: none; }
  .room-intro h2 { font-size: 39px; }
  .room-intro h2 em { font-size: 48px; }
  .field-photo figcaption, .orchard-portrait figcaption { font-size: 19px; }
  .market-pad { margin-left: 2%; padding-left: 21px; padding-right: 12px; }
  .market-product { grid-template-columns: 35px minmax(0,1fr); gap: 7px; }
  .market-product strong { font-size: 15px; }
  .market-list li { gap: 3px 6px; }
  .market-list .product-prices { flex-direction: column; align-items: end; gap: 0; }
  .market-list .button { padding: 6px 10px; font-size: 14px; }
  .orchard-portrait { width: 88%; margin-left: 1%; }
  .field-letter { margin-left: 5%; transform: rotate(.5deg); }
  .open-cookbook { grid-template-columns: minmax(0,1fr); border-left-width: 7px; }
  .cookbook-left, .cookbook-right { background: linear-gradient(90deg, #89704317, transparent 9%); }
  .cookbook-left { padding: 26px 18px 7px; }
  .cookbook-right { padding: 10px 19px 20px; }
  .book-ribbon { left: auto; right: 14px; width: 17px; height: 33px; z-index: 1; }
  .parcel-strip { display: grid; grid-template-columns: 59px 1fr; gap: 3px 12px; }
  .parcel-strip img { width: 59px; height: 64px; }
  .parcel-contents, .parcel-go { grid-column: 2; }
  .parcel-go { padding-block: 7px; }
  .post-message { padding-right: 70px; }
  .post-stamp { width: 55px; height: 61px; }
  .post-address .mail-line { flex-direction: column; }
  .post-address .button { align-self: flex-start; }
}
