/* Live interface over an original decorative cabin painting. */
body {
  background: #3b2014;
  color: #fff1d3;
}
/* The painting belongs to the introduction, so its fade follows the content
   at every viewport width instead of ending at the image's natural edge. */
.cabin-intro {
  padding-bottom: 96px;
  background-color: #3b2014;
  background-image:
    linear-gradient(to bottom, #3b201400 calc(100% - 240px), #3b2014 100%),
    linear-gradient(90deg,#30251c35,#30251c75 30%,#30251c75 70%,#30251c35),
    url('/images/eventyrstue-v2.jpg');
  background-position: center top;
  background-size: 100% 100%, 100% 100%, cover;
  background-repeat: no-repeat;
}

.wrap { max-width: 1100px; padding: 0 36px; }
header { background: #2d170de8; border-bottom: 1px solid #d8b67b55; box-shadow: 0 6px 22px #150b0740; }
.bar { max-width: 1300px; padding: 12px 36px; min-height: 78px; gap: 20px; position: relative; }
.logo img { filter: brightness(0) invert(1); opacity: .94; height: 43px; }
.nav { color: #fff1d3; font-size: 12px; gap: 24px; }
.nav .btn.light { color: #fff1d3; background: #38201380; border-color: #d5bb8f; }
.nav a { padding: 10px 0; }
.cabin-ornament { position: absolute; left: 40%; transform: translateX(-50%); width: 124px; height: 44px; pointer-events: none; color: #c28a4c; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 42px; min-height: 0; margin: 0; padding: 45px 0 28px; background: none; border: 0; border-radius: 0; overflow: visible; isolation: auto; }
.hero::before,.hero::after { display: none; }
.hero>div:first-child { max-width: none; }
.hero .story-opening { display: none; }
.hero .eyebrow { display: block; color: #fff1d3; font-size: 10px; line-height: 1.6; letter-spacing: .12em; }
.hero h1 { font-size: clamp(39px,3.7vw,56px); line-height: 1.04; letter-spacing: -.025em; margin: 18px 0 20px; color: #fff0ca; text-wrap: initial; text-shadow: 0 2px 12px #1d0c07; }
.hero h1 em { display: block; color: #f09970 !important; }
.hero p { font-size: 15px; line-height: 1.55; color: #fff1d3; margin: 0; }
.hero .buttons { margin-top: 24px; gap: 12px; }
.btn { border-radius: 9px; padding: 11px 17px; min-height: 44px; }
.hero .btn { background: #1d503e; border: 1px solid #8fae83; color: #fff7e2; box-shadow: 0 3px 6px #130c0740; font-size: 13px; }
.hero .btn.light { background: #f4e6bf; border: 1px solid #dbbe88; color: #173b2f; }
.hero .heroVisual { position: relative; inset: auto; width: 100%; height: 355px; min-height: 0; z-index: auto; border: 3px solid #be995d; border-radius: 48% 48% 16px 16px; background: #283d2b; box-shadow: 0 12px 30px #180b0755; }
.hero .heroVisual::before { display: none; }
.hero .heroVisual img { height: 100% !important; width: 100%; object-fit: cover; object-position: 78% center !important; }
.trust { grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #d3b37a66; border-bottom: 1px solid #d3b37a55; gap: 20px; padding: 18px 10px; }
.trust article { color: #fcebcf; font-size: 12px; }
.trust b { color: #fff4da; }
.trust .ic { color: #f5dfb2; border-radius: 0; background: none; width: 32px; height: 32px; }
.trust .ic svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.section { padding: 30px 0 15px; }
.section[id] { scroll-margin-top: 100px; }
.section>.eyebrow { margin-bottom: 5px; }
.eyebrow { color: #f2d8a9; }
.section>h2,.path-heading h2,.library h2 { color: #fff0cb; font-size: clamp(29px,3vw,40px); margin: 6px 0 13px; }
.sectionIntro { color: #f7e7cb; font-size: 14px; line-height: 1.65; }
.steps { gap: 18px; }
.steps article { border: 1px solid #e0c18b; border-radius: 21px; background: radial-gradient(ellipse at top,#fff5dc,#efddb6); padding: 20px 24px 16px; color: #282c1d; box-shadow: 0 6px 16px #130b0733; position: relative; }
.steps .num { background: #d9b47a; border: 0; color: #2f3323; border-radius: 50%; width: 32px; height: 32px; font-size: 17px; }
.steps .step-art { position: absolute; top: 17px; right: 27px; width: 39px; height: 39px; fill: none; stroke: #234737; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.steps strong { font-size: 23px; margin: 13px 0 8px; line-height: 1.15; }
.steps p { color: #3f4230; font-size: 14px; line-height: 1.45; margin: 0 0 4px; }
.stories { gap: 14px; }
.story { position: relative; border: 2px solid #c6a56d; border-radius: 13px; box-shadow: 0 6px 18px #130c0755; background: #fbf1d9; }
.story:has(.story-action.active) { border-color: #f2d89f; outline: 2px solid #5b805a; outline-offset: 3px; background: #f5edcf; }
.storyText { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 12px; text-align: center; }
.storyText small { display: grid; align-items: center; flex: 1; min-height: 2.6em; margin: 0; color: #5a6049; line-height: 1.3; }
.story-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.story-categories a { display: inline-flex; align-items: center; text-decoration: none; }
.story-category { scroll-margin-top: 100px; }
.story-category > h3 { margin: 0 0 12px; color: #fff0cb; font-size: clamp(24px, 2.5vw, 32px); }
.folk-stories { margin-top: 44px; }
.story-action {
  display: block;
  margin: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #263c2b;
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.story-action::after { content: ''; position: absolute; inset: 0; }
.story:has(.story-action:focus-visible) { outline: 3px solid #d98d72; outline-offset: 3px; }
.catalogue-cover { position: relative; isolation: isolate; container-type: inline-size; }
.catalogue-artwork { position: absolute; inset: 0; }
.catalogue-cover-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.catalogue-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #241c16e8, #241c1699 12%, transparent 35%, transparent 78%, #241c16db);
  pointer-events: none;
}
.catalogue-cover-title {
  position: absolute;
  z-index: 1;
  inset: 6% 5% auto;
  margin: 0;
  color: #fff4d9;
  font-family: Georgia, serif;
  line-height: 1.12;
  font-size: 22px;
  font-size: clamp(15px, 11cqi, 32px);
  text-align: center;
  text-shadow: 0 1px 5px #241c16;
}
.catalogue-cover-title:has(.cover-name:not([hidden])) {
  top: 4%;
  font-size: clamp(14px, 10cqi, 30px);
}
.cover-name {
  display: block;
  margin-bottom: .25em;
  font-size: .73em;
  font-style: italic;
  line-height: 1.05;
  text-wrap: wrap;
  overflow-wrap: anywhere;
}
.cover-name.long-name { font-size: max(10px, .6em); }
.folk-cover-subtitle { display: block; margin-top: .13em; font-size: .73em; }
.catalogue-wordmark {
  position: absolute;
  z-index: 1;
  left: 25%;
  bottom: 3.5%;
  width: 50%;
  height: auto;
  filter: brightness(0) invert(1);
}
.figure-book-example.catalogue-cover-dialog { width: min(650px, calc(100% - 24px)); }
.cover-preview-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 12px; }
.cover-preview-layout .catalogue-cover { max-width: 275px; margin: auto; border-radius: 10px; overflow: hidden; }
#coverPreviewContinue { margin: 12px 0; }
.path-heading p { color: #f2dfbf; }
.path-heading::before { color: #d9b777; }
.path-card { border-radius: 15px; box-shadow: 0 6px 16px #160d0729; }
.path-card:not(.path-primary) { background: #f9edcf; }
.path-card[aria-pressed=true] { outline-color: #f2d49a; }
.photo-path-panel { background: #faf0da; color: #293e2d; border-radius: 17px; border: 1px solid #d5b881; }
.photo-path-panel .eyebrow { color: #6f592e; }
.photo-path-panel h3 { color: #193c31; }
.photo-path-panel .btn:disabled { opacity: 1; background: #d6d9cd; color: #4d584b; border-color: #b4bba9; }
.editor,.products { background: #fff8e7; color: #283d2d; border-color: #ccb084; }
.products h2 { color: #193c31; }
.products .sectionIntro,.products .eyebrow { color: #57664c; }
.modal { color: #283d2d; }
.modal .sectionIntro,.modal .eyebrow { color: #57664c; }
.editor h2 { color: #193c31; }
.editor .sectionIntro,.editor .eyebrow,.preview .eyebrow { color: #57664c; }
.preview { background: #f0e5c8; color: #2d422f; }
.library { background: #153f32ed; border: 1px solid #ad975e; }
.library .sectionIntro { color: #f2e4cb; }
.faq details { border-bottom-color: #d4b77b66; }
.faq summary { color: #fff2d6; padding: 4px 0; }
.faq p { color: #f2dfbf; }
.footer { margin-top: 48px; background: #23150ff0; border-top: 1px solid #bda16a66; color: #fff2d6; }
.footer p,.footer small { color: #e0cfb3; }
#infoPage .wrap,#accountPage .wrap { color: #283d2d; background: #fff7e6; border-radius: 12px; margin-top: 30px; padding: 24px 32px; }
#infoPage .sectionIntro,#accountPage .sectionIntro { color: #5c6b56; }
#infoPage .eyebrow,#accountPage .eyebrow { color: #6f592e; }
#accountPage h1,#accountPage h2,#infoPage h1 { color: #193c31; }
.mobileCTA { color: #193c31; background: #fcf3df; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline: 3px solid #eaa360; outline-offset: 5px; }
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.story:hover { border-color: #fff0c9; }
@media(min-width:1600px) { .wrap { max-width: 1130px; } .hero { padding-top: 48px; } }
@media(max-width:1100px) {
  .cabin-ornament { display: none; }
  .bar { padding-inline: 26px; }
  .nav { gap: 16px; }
  .wrap { padding: 0 28px; }
  .cabin-intro { background-image: linear-gradient(to bottom, #3b201400 calc(100% - 240px), #3b2014 100%), linear-gradient(#2a160c4d,#2a160c4d), url('/images/eventyrstue-v2.jpg'); }
  .hero { gap: 25px; }
}
@media(max-width:760px) {
  .cabin-intro { padding-bottom: 56px; background-image: linear-gradient(to bottom, #3b201400 calc(100% - 180px), #3b2014 100%), linear-gradient(#26150de8,#26150de8), url('/images/eventyrstue-v2.jpg'); }
  .bar { min-height: 68px; padding: 10px 15px; gap: 12px; }
  .logo img { height: 33px; }
  .cabin-ornament { display: none; }
  .nav { gap: 10px; font-size: 11px; }
  .nav>a:not(.hideMobile) { display: none; }
  .nav .btn.light { font-size: 11px; padding: 9px 11px; max-width: 140px; }
  .wrap { padding: 0 18px; }
  .hero { grid-template-columns: minmax(0,1fr); padding: 28px 0 24px; margin: 0; min-height: 0; gap: 25px; }
  .hero .eyebrow { font-size: 9px; max-width: 280px; }
  .hero h1 { font-size: clamp(35px,10.5vw,46px); margin: 14px 0 18px; }
  .hero h1 em { display: inline; }
  .hero p { font-size: 14px; }
  .hero .buttons { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .hero .btn { width: auto; flex: 1 1 130px; font-size: 12px; padding-inline: 10px; }
  .hero .heroVisual { height: 255px; border-radius: 48% 48% 12px 12px; }
  .trust { grid-template-columns: minmax(0,1fr); gap: 15px; padding: 18px 4px; }
  .trust article { font-size: 12px; }
  .section { padding-top: 28px; }
  .section[id] { scroll-margin-top: 84px; }
  .section>h2 { font-size: 31px; }
  .steps { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .steps article { padding: 19px 22px; }
  .stories { padding: 4px 4px 15px; margin-inline: -4px; }
  .story-category { scroll-margin-top: 84px; }
  .folk-stories { margin-top: 32px; }
  .story-category .stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; padding-bottom: 0; }
  .storyText { padding: 8px 6px; }
  .storyText small { min-height: 3.9em; }
  .cover-preview-layout { display: block; }
  .cover-preview-layout .catalogue-cover { max-width: 210px; }
  .photo-path-panel { padding: 20px; }
  #infoPage .wrap,#accountPage .wrap { margin: 18px 12px 0; padding: 20px 16px; }
  .footer { margin-top: 30px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

/* Illustrated trust marks; the app remains explicitly under development. */
.trust .ic { width: 52px; height: 52px; flex: none; }
.trust .ic img { width: 52px; height: 52px; display: block; }
@media(max-width:760px) { .trust .ic,.trust .ic img { width: 46px; height: 46px; } }

/* A quieter cabin: retain the original painting, soften its visual competition. */


.preview,.editor,.products{box-shadow:0 7px 20px #1c120b24;border-color:#cbb78f}
.preview{background:#eee3cb;color:#293e2d}.preview .eyebrow{color:#655535}.previewNote{color:#4f5945}
.cover.figure-study{aspect-ratio:420/440;border:0;border-radius:16px;max-width:360px;background:#eee3cb;box-shadow:none}
.cover.figure-study h3,.cover.figure-study small{display:none}.cover.figure-study svg{filter:none;width:100%;height:100%}
.tabs{grid-template-columns:1fr 1fr}.app-benefits{margin:24px 0;padding:22px;background:#e8eddf;border-radius:14px;color:#263e33}.app-benefits .eyebrow{color:#506143}.app-benefits h3{font-size:25px;margin:9px 0}.app-benefits p{line-height:1.6}.app-benefits .hint{background:transparent;padding:0}
.products label.option{align-items:flex-start;padding:20px 0}.products label.option small{display:block;max-width:580px;line-height:1.65;margin-top:5px}.products .price{font-size:20px}
@media(max-width:760px){.cover.figure-study{max-width:300px;aspect-ratio:420/440}.preview{padding:16px}.app-benefits{padding:17px}.products label.option{gap:12px}}

/* Show complete real spreads; never crop them into a made-up cover. */
.cover.book-real-preview{aspect-ratio:2;max-width:none;width:100%;border:0;border-radius:6px;box-shadow:0 5px 16px #263e3320}.cover.book-real-preview h3,.cover.book-real-preview small{display:none}.book-real-preview .illustration>img{object-fit:contain;object-position:center}.book-preview-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0;font-size:13px}.friend-color{display:inline-flex;align-items:center;gap:9px;min-height:46px;border:1px solid #b8bba7;background:#fffbf0;color:#293e2d;padding:10px 14px;border-radius:10px;margin:0 9px 9px 0}.friend-color[aria-pressed=true]{border:2px solid #315b42;background:#e9efdf}.friend-color-swatch{width:24px;height:24px;border-radius:50%;border:1px solid #756f6055}.preview>.btn{display:inline-block;text-decoration:none;margin:4px 0 12px}

/* Painted modular figure preview: the actual selection, not static book pages. */
.cover.painted-live-preview{aspect-ratio:1;max-width:520px;width:100%;border:0;border-radius:14px;box-shadow:0 6px 20px #263e3325}.painted-live-preview h3,.painted-live-preview small{display:none}.painted-live-preview canvas{display:block;width:100%;height:100%;object-fit:contain}.book-preview-nav{justify-content:center}.previewNote{line-height:1.55}

.legacy-figure-test{margin-top:18px;padding-top:12px;border-top:1px solid #d6c7a7}.legacy-figure-test summary{font-size:13px;min-height:44px;display:list-item;align-content:center;cursor:pointer;color:#54624b}.legacy-figure-test .hint:empty{display:none}

.footer .footer-signature span { color: #ecaa88; margin-inline-start: .25em; }
