@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap");

:root {
  --paper: #faf6ee;
  --cream: #f2e8dc;
  --wine: #502632;
  --deep: #351821;
  --ink: #34252a;
  --mute: #6b5858;
  --line: #e0cfc3;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
:focus-visible { outline: 2px solid #a16b42; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h2 { font-size: clamp(2.55rem, 5.5vw, 4.65rem); letter-spacing: -.055em; }
h3 { font-size: 1.55rem; letter-spacing: -.035em; }
.shell { width: min(100% - 100px, 1170px); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .6rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { background: var(--paper); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { display: flex; align-items: center; gap: .75rem; color: var(--deep); text-decoration: none; }
.mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #8b6270; font: 1rem var(--serif); }
.wordmark-text { font-size: .83rem; font-weight: 700; letter-spacing: .14em; line-height: 1.3; }
.wordmark-text span { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .26em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(.8rem, 2vw, 1.8rem); }
nav a, .header-contact { text-decoration: none; font-weight: 600; font-size: .88rem; }
nav a:hover, .header-contact:hover { text-decoration: underline; }
.header-contact { padding: .55rem .95rem; border: 1px solid #cbb4b7; }
.header-contact span, .action span { margin-left: .4em; }

.hero {
  min-height: clamp(570px, 47vw, 690px);
  display: grid;
  align-items: center;
  color: #fff7ed;
  background: linear-gradient(90deg, #1b110fe0 0%, #1b110fbd 28%, #1b110f21 60%, transparent 80%), #2f1c16 url("assets/pince.jpg") center center / cover no-repeat;
}
.hero-inner { padding-block: 84px; }
.eyebrow { font-size: .73rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--wine); }
.hero .eyebrow { color: #e6c5a9; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(4.4rem, 8vw, 7.55rem); line-height: .95; letter-spacing: -.06em; }
.hero h1 em { color: #f4d9c6; font-weight: 500; }
.hero-copy { max-width: 380px; color: #f5e7dc; margin-top: 1.7rem; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .7em; padding: .78rem 1.05rem; font: 700 .88rem/1.4 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.button-cream { color: var(--deep); background: #f8ede0; }
.button-cream:hover { background: #eacabb; }
.button-outline { color: #fff7ed; border-color: #ebcbb385; background: #23171130; }
.button-outline:hover { background: #fff7ed22; }

.section { padding-block: clamp(62px, 7vw, 105px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-heading p { max-width: 320px; color: var(--mute); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service { display: flex; flex-direction: column; align-items: flex-start; padding: 1.65rem clamp(.75rem, 1.8vw, 1.55rem); min-width: 0; }
.service + .service { border-left: 1px solid var(--line); }
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; }
.service h3 { margin: .65rem 0 .8rem; hyphens: auto; }
.service p:not(.eyebrow), .product-copy p:not(.eyebrow), .about-story p { color: var(--mute); }
.action { display: inline-block; color: var(--wine); font-weight: 700; font-size: .88rem; margin-top: auto; padding-top: 1.2rem; }
.action:hover { color: #8a3e50; }

.culture { background: #f0e6da; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.product { background: var(--paper); border: 1px solid var(--line); }
.product-art { min-height: 225px; display: grid; place-items: center; padding: 1.5rem; overflow: hidden; }
.book-art { background: radial-gradient(ellipse at 40% 28%, #a96259, #512730 78%); }
.book-cover {
  width: 126px; min-height: 169px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: .45rem;
  color: #f6debe; background: #47252b; border: 1px solid #c99f81; outline: 1px solid #bc8e71; outline-offset: -6px;
  transform: rotate(-8deg); box-shadow: 5px 5px #d7c6a8, 10px 13px 20px #25171999; text-align: center;
}
.book-cover span, .game-box small { font-size: .52rem; letter-spacing: .14em; text-transform: uppercase; }
.book-cover strong { font: 1.55rem/1.1 var(--serif); }
.book-cover i { width: 35px; border-top: 1px solid #c99f81; }
.game-art { background: radial-gradient(ellipse at 42% 20%, #a6a088, #5c5c4b 85%); }
.game-box {
  width: 205px; height: 125px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .3rem;
  color: #f2dab7; background: #303829; border: 1px solid #b19b69; outline: 1px solid #a48d5d; outline-offset: -8px;
  transform: rotate(7deg); box-shadow: 5px 6px #282a23, 10px 15px 29px #292a23aa;
}
.game-box strong { font: 1.8rem var(--serif); }
.game-box span { font-size: 1.25rem; line-height: 1; }
.product-copy { display: flex; align-items: flex-start; flex-direction: column; min-height: 200px; padding: 1.4rem 1.65rem; }
.product-copy h3 { font-size: 2rem; margin: .35rem 0 .55rem; }
.cart-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding-inline: .2rem; margin-left: .2rem; border-radius: 50%; background: var(--wine); color: #fff7ed; font-size: .7rem; line-height: 1; }
.add-to-cart { width: 100%; margin-top: auto; padding-top: 1.35rem; display: flex; flex-direction: column; align-items: flex-start; }
.add-to-cart label { margin-bottom: .25rem; }
.add-to-cart input, .add-to-cart select { width: min(100%, 240px); }
.add-to-cart button { margin-top: .1rem; }
.cart-feedback { margin-top: .65rem; font-size: .88rem; }
.cart-feedback a { color: var(--wine); font-weight: 700; }
.cart-section { background: #eee1d3; }
.cart-section h1 { font-size: clamp(2.55rem, 5.5vw, 4.65rem); letter-spacing: -.055em; }
.cart-back { display: inline-block; margin: -.25rem 0 1.5rem; color: var(--wine); font-weight: 700; }
.cart-layout { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: start; }
.cart-panel, .cart-preview { padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--paper); border: 1px solid var(--line); }
.cart-panel h3 { margin-bottom: 1.25rem; }
#cart-empty { color: var(--mute); }
.cart-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.cart-item-info { display: flex; flex-direction: column; gap: .1rem; }
.cart-item-info strong { font-weight: 700; }
.cart-item-info span { color: var(--mute); font-size: .82rem; }
.cart-item-controls { display: flex; align-items: end; gap: .6rem; }
.cart-item-controls label { margin: 0; }
.cart-item-controls input { width: 75px; margin: .25rem 0 0; }
.cart-remove { min-height: 44px; padding: .5rem; border: 1px solid var(--line); background: transparent; color: var(--wine); font: 700 .82rem var(--sans); cursor: pointer; }
.cart-remove:hover { background: var(--cream); }
.cart-form fieldset { min-width: 0; padding: 0; margin: 0 0 1.3rem; border: 0; }
.cart-form legend { width: 100%; padding: 0 0 .5rem; margin-bottom: .8rem; border-bottom: 1px solid var(--line); color: var(--wine); font-weight: 700; }
.cart-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .85rem; }
.cart-form-grid > div { min-width: 0; }
.cart-form .button:disabled { opacity: .45; cursor: not-allowed; }
.cart-preview { margin-top: 1.25rem; }
.cart-preview h3 { margin-bottom: 1rem; }
.cart-preview p + p { margin-top: .6rem; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 3rem; align-items: center; }
.about h2 { margin-block: .55rem .75rem; }
.about-intro { font-weight: 600; color: var(--wine); }
.about-story { border-left: 1px solid var(--line); padding-left: 2rem; }
.about-story h3 { margin-bottom: .7rem; }
.research-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; padding: clamp(1.6rem, 3.5vw, 2.6rem); background: var(--wine); color: #fff7ed; }
.research-feature .eyebrow { color: #e6c5a9; margin-bottom: .75rem; }
.research-feature h3 { max-width: 18ch; font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.research-feature p:not(.eyebrow) { max-width: 57ch; color: #f1ddd3; }
.research-feature .action { color: #fff3df; }
.research-feature .action:hover { color: #f1bf9d; }
.research-hero { background: var(--deep); color: #fff7ed; }
.research-hero .shell { max-width: 970px; }
.research-back { display: inline-block; margin-bottom: 3rem; color: #e6c5a9; font-weight: 700; }
.research-hero .eyebrow { color: #e6c5a9; margin-bottom: 1rem; }
.research-hero h1 { max-width: 15ch; font-size: clamp(3.1rem, 7vw, 6rem); letter-spacing: -.055em; }
.research-lead { max-width: 670px; margin-top: 1.75rem; color: #f0dcd2; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.research-byline { margin-top: 2rem; color: #d4b7ae; font-size: .85rem; }
.research-grid { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr); gap: 2rem 4rem; }
.research-grid > div { padding-top: 1.75rem; border-top: 1px solid var(--line); }
.research-grid h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.03em; }
.research-grid .eyebrow { margin-bottom: .7rem; }
.research-text p { color: var(--mute); font-size: 1.05rem; }
.contact { background: var(--deep); color: #fcf0e6; }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(300px, 1.15fr); align-items: start; gap: 2rem 4.5rem; }
.contact-grid > div > p { color: #f4ddd4; margin-top: 1rem; max-width: 30ch; }
address { display: flex; flex-direction: column; gap: .6rem; font-style: normal; margin-top: 1.75rem; align-items: flex-start; }
.contact-form { background: var(--paper); color: var(--ink); padding: clamp(1.2rem, 3vw, 2rem); }
label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%; min-height: 44px; border: 1px solid #c7b1aa; background: #fffcf8; color: var(--ink);
  border-radius: 0; font: 1rem var(--sans); padding: .58rem .65rem; margin-bottom: .85rem;
}
textarea { resize: vertical; display: block; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.button-burgundy { color: #fff7ed; background: var(--wine); }
.button-burgundy:hover { background: var(--deep); }
.form-note { margin-top: .65rem; color: var(--mute); font-size: .8rem; }
footer { background: #281119; color: #e2c7c4; padding: 1.15rem 0; font-size: .78rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem 1rem; }
.footer-inner span:first-child { letter-spacing: .13em; font-weight: 700; }

@media (max-width: 960px) {
  .shell { width: min(100% - 64px, 1170px); }
  .cart-layout { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3) { border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .service:nth-child(odd) { padding-left: 0; }
  .service:nth-child(even) { padding-right: 0; }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; gap: .65rem; padding-block: .65rem; }
  nav { order: 1; width: 100%; border-top: 1px solid var(--line); padding-top: .65rem; }
  nav a, .header-contact { font-size: .82rem; }
  .hero { min-height: 565px; align-items: end; background-position: 66% center; background-image: linear-gradient(0deg, #211211f2 0%, #211211ad 41%, #21121113 87%), url("assets/pince.jpg"); }
  .hero-inner { padding-block: 2.3rem; }
  .hero h1 { font-size: clamp(3.55rem, 14vw, 5.25rem); }
  .hero .eyebrow { margin-bottom: 1rem; }
  .hero-copy { margin-top: 1rem; font-size: .98rem; }
  .hero-actions { margin-top: 1.3rem; }
  .section-heading { display: block; }
  .section-heading p { margin-top: .85rem; }
  .products, .about, .contact-grid, .cart-form-grid, .research-feature, .research-grid { grid-template-columns: 1fr; }
  .research-grid { gap: .6rem; }
  .research-grid > div { padding-top: 1rem; }
  .about-story { padding-left: 1rem; }
  .product-copy { min-height: 0; }
}
@media (max-width: 380px) {
  .services, .form-row { grid-template-columns: 1fr; }
  .service:nth-child(n) { padding-inline: 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.language-switcher { position: relative; align-self: center; }
.language-switcher summary {
  list-style: none; cursor: pointer; padding: .24rem .55rem;
  border: 1px solid var(--line); color: var(--wine);
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:hover, .language-switcher[open] summary { background: var(--cream); }
.language-menu {
  position: absolute; right: 0; top: calc(100% + .3rem); z-index: 10;
  min-width: 130px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 12px 24px #35182122;
}
.language-menu a { display: block; padding: .55rem .75rem; white-space: nowrap; }
.language-menu a:hover, .language-menu a[aria-current="page"] { background: var(--cream); }
@media (max-width: 660px) { .language-switcher { margin-left: auto; } }

.service h3 { hyphens: none; overflow-wrap: normal; word-break: normal; }
.book-cover-photo { width: 158px; height: 232px; display: block; box-shadow: 0 12px 25px #25171975; }
.hu-cover { background: url("assets/book-cover-hu.png") right center / 220% 110% no-repeat; }
.en-cover { object-fit: cover; }
.game-cover-photo { display: block; width: min(100%, 360px); height: auto; box-shadow: 0 10px 24px #25171966; }
.book-blurb { margin-top: .8rem; color: var(--mute); }
.book-blurb summary { color: var(--wine); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
.book-blurb p { margin-top: .75rem; }
.product-actions { width: 100%; margin-top: auto; padding-top: 1.25rem; }
.availability-note { margin-bottom: .7rem; font-size: .9rem; }
.kindle-link { display: inline-block; margin-top: 1rem; color: var(--wine); font-weight: 700; }
.research-entry { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); background: #fffaf4; }
.article-card h2 { margin: .85rem 0 1rem; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.03em; }
.article-card > p:not(.eyebrow) { color: var(--mute); }
.article-card .action { padding-top: 1.6rem; }
.waitlist-dialog { width: min(92vw, 480px); max-height: 90dvh; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px #1e1010aa; }
.waitlist-dialog::backdrop { background: #211115b8; }
.waitlist-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.waitlist-header h2 { font-size: 2rem; }
.waitlist-body { padding: 1.4rem; }
#waitlist-product { font-family: var(--serif); font-size: 1.35rem; }
.waitlist-explanation { margin: .55rem 0 1.2rem; color: var(--mute); }
.waitlist-consent { display: flex; align-items: flex-start; gap: .7rem; margin: .3rem 0 1.3rem; font-size: .85rem; font-weight: 500; line-height: 1.45; }
.waitlist-consent input { width: 20px; min-height: 20px; margin: .05rem 0 0; flex: 0 0 20px; }
.waitlist-body .form-note { max-width: 42ch; }
@media (max-width: 660px) { .article-list { grid-template-columns: 1fr; } }

.theme-trigger {
  margin-top: 1.1rem; border: 1px solid var(--line); background: transparent;
  padding: .55rem .7rem; color: var(--wine); font: 700 .88rem/1.3 var(--sans);
  cursor: pointer;
}
.theme-trigger:hover { background: var(--cream); }
.theme-trigger span { margin-left: .35rem; }
.theme-dialog {
  width: min(92vw, 680px); max-height: 85vh; max-height: 85dvh;
  padding: 0; border: 1px solid var(--line); color: var(--ink);
  background: var(--paper); box-shadow: 0 24px 70px #1e1010aa;
}
.theme-dialog::backdrop { background: #211115b8; }
.theme-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--line); }
.theme-dialog-header h3 { font-size: 2rem; }
.theme-close { border: 0; background: transparent; color: var(--wine); font: 2rem/1 var(--sans); cursor: pointer; padding: .2rem .45rem; }
.theme-sparkling { border-bottom: 1px solid var(--line); }
.theme-sparkling summary { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.4rem; color: var(--wine); cursor: pointer; font-weight: 700; list-style: none; }
.theme-sparkling summary::-webkit-details-marker { display: none; }
.theme-sparkling[open] summary { background: var(--cream); }
.masterclass-example-body { padding: .8rem 1.4rem 1.4rem; }
.masterclass-example-body > p { color: var(--mute); }
.masterclass-example-body ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.2rem; padding-left: 1.3rem; }
.masterclass-example-body li { padding-left: .2rem; }
.theme-options { display: grid; }
.theme-options a { padding: .85rem 1.4rem; color: var(--wine); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.theme-options a:last-child { border-bottom: 0; }
.theme-options a:hover, .theme-options a:focus-visible { background: var(--cream); }
@media (max-width: 660px) { .masterclass-example-body ol { grid-template-columns: 1fr; } }
