:root {
  color-scheme: light;
  --bone: #f4eee4;
  --paper: #fbf7ef;
  --ink: #292221;
  --plum: #593448;
  --dark-plum: #3b2632;
  --line: #c9bbab;
  --flax: #e0c394;
  --brass: #9a7346;
  --serif: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--bone); font: 400 1rem/1.55 var(--sans); }
img { display: block; max-width: 100%; }
figure, h1, h2, p { margin: 0; }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .25em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #a75128; outline-offset: 5px; }
main:focus, section:focus { outline: none; }
::selection { background: var(--plum); color: #fff6e8; }
.frame { width: min(100%, 1500px); padding-inline: clamp(1.15rem, 4.65vw, 4.6rem); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 4; top: 1rem; left: 1rem; padding: .7rem 1rem; background: white; color: var(--ink); }
.context { background: var(--dark-plum); color: #f8ebda; }
.context-inner { min-height: 29px; display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding-block: .25rem; font-size: .72rem; line-height: 1.35; }
.context-inner a { display: inline-flex; gap: .55rem; align-items: center; text-decoration: none; font-weight: 650; white-space: nowrap; }
.context-inner a:hover, .foot > a:last-child:hover { text-decoration: underline; }
.masthead { min-height: 79px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; position: relative; }
.masthead::after { position: absolute; content: ""; height: 1px; bottom: 0; left: clamp(1.15rem, 4.65vw, 4.6rem); right: clamp(1.15rem, 4.65vw, 4.6rem); background: var(--line); }
.signature { display: inline-flex; align-items: center; gap: .6rem; font: 600 clamp(1.5rem, 2.25vw, 2.35rem)/1 var(--serif); letter-spacing: -.065em; text-decoration: none; color: var(--dark-plum); white-space: nowrap; }
.signature img { width: clamp(30px, 3vw, 44px); height: auto; }
.masthead nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.7vw, 3rem); }
.masthead nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .89rem; }
.masthead nav a:hover { text-decoration: underline; }
.masthead .nav-action { gap: .7rem; color: var(--plum); border-bottom: 1px solid var(--plum); min-height: 35px; font-weight: 650; }
.opening { padding-top: clamp(2.5rem, 4.6vw, 4.75rem); padding-bottom: clamp(2.9rem, 5.5vw, 5.75rem); }
.medium { color: var(--plum); font-size: clamp(.69rem, .83vw, .81rem); font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .15em; }
.medium span { color: var(--brass); padding: 0 .42em; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
.opening h1 { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .22em; margin: .09em 0 .32em -.045em; font-size: clamp(4rem, 7.5vw, 7.7rem); line-height: 1.06; letter-spacing: -.071em; }
.opening h1 > * { white-space: nowrap; }
h1 em, h2 em { color: var(--plum); font-weight: 400; }
.plate { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(210px, .86fr); gap: clamp(2rem, 4.5vw, 4.6rem); }
.portrait { min-width: 0; }
.photo-link { display: block; width: 100%; padding: 0; border: 0; position: relative; background: #d4c4af; cursor: zoom-in; }
.photo-link:focus-visible,.detail-open:focus-visible,.picture-view button:focus-visible { outline: 3px solid #ba7e46; outline-offset: 3px; }
.photo-link img { width: 100%; height: auto; }
.zoom { position: absolute; right: .8rem; bottom: .8rem; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.2rem; }
.photo-link:hover .zoom { background: var(--dark-plum); color: white; }
figcaption { margin-top: .5rem; font-size: .79rem; color: #635747; }
.plate-note { align-self: center; max-width: 26rem; }
.swatch { display: flex; margin-bottom: clamp(1.3rem, 2.8vw, 2.8rem); width: 5.1rem; height: .55rem; }
.swatch span { flex: 1; background: var(--plum); }
.swatch span:nth-child(2) { background: var(--brass); }
.swatch span:nth-child(3) { background: var(--flax); }
.plate-note h2 { font-size: clamp(1.8rem, 2.62vw, 3.1rem); line-height: 1.1; letter-spacing: -.057em; margin-bottom: .7rem; }
.plate-note p, .detail-copy > p:not(.medium), .enquiry-intro > p:not(.medium) { font-size: clamp(.98rem, 1.16vw, 1.13rem); line-height: 1.55; }
.text-link, .detail-open { display: inline-block; margin-top: 1.55rem; padding: 0 0 .23rem; font: 650 .91rem/1.55 var(--sans); text-decoration: none; border: 0; border-bottom: 1px solid currentColor; }
.detail-open { background: transparent; color: var(--paper); cursor: zoom-in; }
.text-link span:not(.sr), .detail-open span, .foot > a:last-child span { margin-left: .45rem; }
.detail { background: var(--dark-plum); color: var(--paper); }
.detail-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); align-items: center; gap: clamp(2.25rem, 7vw, 7rem); padding-block: clamp(3.3rem, 6vw, 6.5rem); }
.detail-copy .medium { color: var(--flax); }
.detail-copy h2, .enquiry-intro h2 { font-size: clamp(3rem, 5.2vw, 5.5rem); line-height: 1.025; letter-spacing: -.07em; margin: .21em 0 .27em; }
.detail-copy h2 em { color: #e8c59a; }
.detail-copy > p:not(.medium) { max-width: 37ch; }
.detail figure img { width: 100%; height: auto; }
.enquiry { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: clamp(2.3rem, 9vw, 8.4rem); padding-block: clamp(4.2rem, 7vw, 7.5rem); }
.enquiry-intro > p:not(.medium) { max-width: 39ch; }
.letter { max-width: 40rem; width: 100%; }
.letter fieldset { display: grid; gap: .5rem; border: 0; padding: 0; margin: 1.3rem 0 0; min-width: 0; }
.letter label, .letter dt { font-weight: 650; font-size: .95rem; }
.letter input, .letter textarea { width: 100%; border: 1px solid #958475; border-radius: .2rem; background: var(--paper); color: var(--ink); padding: .75rem; font: inherit; }
.letter textarea { resize: vertical; min-height: 6rem; }
.letter label:not(:first-of-type) { margin-top: .7rem; }
.letter button { justify-self: start; margin-top: .8rem; padding: .8rem 1.1rem; border: 0; border-radius: .2rem; color: var(--paper); background: var(--plum); font: 600 1rem/1.4 var(--sans); cursor: pointer; }
.letter button span { padding-left: .5rem; }
.letter :is(input, textarea, button):focus-visible { outline: 3px solid #944b2b; outline-offset: 3px; }
.letter h3 { font: 500 2rem/1.15 var(--serif); margin: .6rem 0; }
.letter dd { margin: .2rem 0 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.letter label span,.letter #fototipp { font-weight: 400; }
#fototipp,#foto-visszajelzes { font-size: .85rem; line-height: 1.45; }
.letter input[type="file"] { padding: .4rem; font-size: .9rem; }
.letter input::file-selector-button { padding: .55rem .8rem; margin-right: .65rem; border: 1px solid var(--line); border-radius: .15rem; background: var(--bone); color: var(--ink); cursor: pointer; }
.photo-selection { list-style: none; padding: 0; margin: 0; }
.photo-selection li { display: flex; align-items: center; gap: .65rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.photo-selection canvas { width: 3.5rem; height: 3rem; object-fit: contain; background: var(--paper); }
.photo-selection span { overflow-wrap: anywhere; font-size: .88rem; }
.photo-selection button { margin: 0 0 0 auto; padding: .65rem .2rem; color: var(--plum); background: none; text-decoration: underline; font-size: .84rem; }
.photo-selection.read-only button,#foto-visszajelzes:empty,.photo-selection:empty { display: none; }
.picture-view { width: min(100%, 96rem); max-width: 100%; max-height: 100dvh; margin: auto; padding: clamp(.75rem,2.1vw,2rem); border: 0; background: #241c20; color: var(--paper); overflow: auto; overscroll-behavior: contain; }
.picture-view::backdrop { background: rgb(27 21 23 / 91%); }
.picture-view:popover-open { display: grid; gap: .5rem; }
.picture-view > img { margin: auto; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 10.5rem); object-fit: contain; }
.picture-tools,.picture-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.picture-tools { font-size: .82rem; }
.picture-foot p { font: 500 clamp(1rem,2vw,1.5rem)/1.25 var(--serif); }
.picture-view button { flex-shrink: 0; border: 1px solid #8c7d78; padding: .48rem .7rem; min-height: 44px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.picture-view button:hover { background: #44363d; }
.prep-section { border-top: 1px solid var(--line); }
.preparation { align-self: center; border-bottom: 1px solid var(--line); }
.preparation details { border-top: 1px solid var(--line); }
.preparation summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding: 1rem 0; font: 500 clamp(1.3rem, 2.0vw, 1.9rem)/1.2 var(--serif); }
.preparation summary::-webkit-details-marker { display: none; }
.preparation summary::after { content: "+"; font: 400 1.45rem/1 var(--sans); color: var(--plum); }
.preparation details[open] summary::after { content: "−"; }
.answers { padding-bottom: .9rem; max-width: 55ch; }
.answers p { margin-bottom: .65rem; }
footer { border-top: 1px solid var(--line); }
.foot { min-height: 89px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.foot .signature { font-size: 1.5rem; }
.foot .signature img { width: 29px; }
.foot > a:last-child { font-size: .86rem; text-decoration: none; }
@media (max-width: 960px) {
  .opening h1 { font-size: clamp(3.7rem, 7.4vw, 5.2rem); }
  .plate { grid-template-columns: minmax(0, 1.9fr) minmax(185px, .9fr); gap: 1.45rem; }
  .detail-inner { gap: 2rem; }
}
@media (max-width: 740px) {
  .frame { padding-inline: clamp(1.12rem, 5vw, 2rem); }
  .context-inner { font-size: .63rem; }
  .context-inner > span { text-align: right; }
  .masthead { min-height: 66px; gap: .65rem; }
  .masthead::after { inset-inline: clamp(1.12rem, 5vw, 2rem); }
  .masthead nav { gap: 1rem; }
  .masthead nav a { font-size: .79rem; }
  .opening { padding-top: 2rem; }
  .opening h1 { display: block; font-size: clamp(3.4rem, 12.2vw, 5.75rem); line-height: 1.02; margin: .18em 0 .34em -.035em; }
  .opening h1 em { display: block; margin-left: .62em; }
  .plate, .detail-inner, .enquiry { grid-template-columns: 1fr; }
  .plate { gap: 1.05rem; }
  .portrait .photo-link { width: calc(100% + 2 * clamp(1.12rem, 5vw, 2rem)); margin-inline: calc(-1 * clamp(1.12rem, 5vw, 2rem)); }
  .plate-note { max-width: 35rem; padding-top: 1.1rem; padding-bottom: 0; }
  .swatch { height: .35rem; width: 3.5rem; margin-bottom: 1rem; }
  .plate-note h2 br { display: none; }
  .plate-note h2 br::after { content: " "; }
  .plate-note h2 { font-size: clamp(2rem, 6.6vw, 2.7rem); }
  .detail-inner { padding-block: 2.8rem; gap: 1.6rem; }
  .detail-copy > p:not(.medium) { max-width: 47ch; }
  .enquiry { padding-block: 3.3rem; gap: 1.5rem; }
  .detail-copy h2, .enquiry-intro h2 { font-size: clamp(3.1rem, 11vw, 4.6rem); }
  .foot { min-height: 76px; }
}
@media (max-width: 369px) {
  .masthead .signature { gap: .27rem; font-size: 1.28rem; }
  .masthead .signature img { width: 25px; }
  .masthead nav { gap: .65rem; }
  .masthead nav a { font-size: .74rem; }
  .context-inner { font-size: .595rem; }
  .opening h1 { font-size: clamp(2.55rem,13.7vw,3rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
