/* Nestor & Nestour shop — the art.tjepkema.com design system (warm paper, editorial serif, clean sans). */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --paper: #f7f4ee; --paper-2: #efe9df; --paper-3: #e7dfd2; --card: #fffdf9;
  --ink: #262019; --ink-soft: #5c5348; --ink-faint: #8a8073;
  --line: #ddd4c5; --line-soft: #e8e1d5;
  --accent: #9c5b3b; --accent-soft: #c08a5f; --ok: #4a6a4a; --warn: #a3722d;
  --shadow-sm: 0 1px 3px rgba(38,32,25,.06), 0 1px 2px rgba(38,32,25,.04);
  --shadow-md: 0 4px 16px rgba(38,32,25,.08), 0 2px 6px rgba(38,32,25,.05);
  --shadow-lg: 0 18px 50px rgba(38,32,25,.14);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px; --gutter: clamp(1.25rem, 4vw, 3rem); --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: .002em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p { max-width: 68ch; }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); font-weight: 300; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.band { background: var(--paper-2); }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand__logo { width: 60px; height: 60px; flex: none; }
.brand__mark { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); line-height: 1; white-space: nowrap; }
.brand__sub { white-space: nowrap; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-faint); }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; padding: 0; }
.nav__links a { white-space: nowrap; font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); position: relative; padding-block: .3rem; transition: color .2s var(--ease); }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links .nav__basket { opacity: .7; font-size: .9em; }
.nav__basket b { font-size: .68rem; background: var(--accent); color: #fff; border-radius: 999px; padding: .05rem .42rem; margin-left: .2rem; }
.nav__right { display: flex; align-items: center; gap: 1.25rem; }
.lang { display: flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.lang button { border: 0; background: transparent; color: var(--ink-faint); font-size: .7rem; font-weight: 600; letter-spacing: .08em; padding: .32rem .6rem; border-radius: 999px; transition: all .2s var(--ease); }
.lang button.is-active { background: var(--ink); color: var(--paper); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; flex: none; }
.nav__toggle span { display: block; height: 1.5px; width: 22px; background: var(--ink); margin: 5px auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; justify-content: center; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .95rem 1.9rem; border-radius: var(--radius); border: 1px solid transparent; transition: all .25s var(--ease); line-height: 1; white-space: nowrap; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* Hero */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { margin: .4rem 0 1.5rem; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__meta { margin-top: 2.6rem; display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero__meta .num { font-family: var(--serif); font-size: 2.3rem; line-height: 1; }
.hero__meta .lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-top: .35rem; }
.hero__art { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-3); }
.hero__art img { position: absolute; border-radius: 2px; box-shadow: var(--shadow-lg); object-fit: cover; }
.hero__art .shot-map { left: 9%; top: 9%; width: 82%; height: 44%; object-position: 70% 50%; }
.hero__art .shot-phone { right: 9%; bottom: 7%; width: 34%; height: 50%; object-position: top; border: 4px solid var(--ink); border-radius: 10px; }
.hero__art .shot-card { right: 9%; bottom: 9%; width: 50%; height: 30%; object-position: left top; }
.hero__art--solo .shot-phone { top: 9%; bottom: auto; width: 44%; height: 78%; }
.hero__art--solo .shot-label { width: 34%; }
.hero__art .shot-card ~ .shot-label { width: 32%; }
.hero__art .shot-label { position: absolute; left: 9%; bottom: 9%; width: 46%; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.25; color: var(--ink); }
.hero__art .shot-map, .hero__art .shot-card { border: 5px solid #1d1a16; border-radius: 10px; }
.hero__art .shot-label small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }

/* Section header */
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--ink-soft); margin-top: 1rem; }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.feature { display: block; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 2.2rem 2rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.feature__num { font-family: var(--serif); font-size: 1rem; color: var(--accent); letter-spacing: .1em; }
.feature h3 { margin: .8rem 0 .7rem; }
.feature p { color: var(--ink-soft); font-size: .96rem; }

/* Features strip (the "periods" grid) */
.periods { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.period-cell { display: block; background: var(--card); padding: 1.8rem 1.6rem; transition: background .3s var(--ease); position: relative; }
.period-cell:hover { background: var(--paper-2); }
.period-cell .yr { display: block; padding-right: 3.6rem; font-size: .74rem; letter-spacing: .12em; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.period-cell h3 { font-size: 1.35rem; margin: .5rem 0; padding-right: 2.6rem; }
.period-cell p { font-size: .9rem; color: var(--ink-soft); }
.period-cell .count { position: absolute; top: 1.6rem; right: 1.6rem; font-size: .78rem; color: var(--ink-faint); }

/* Product cards (the artwork grid) */
.period-block { margin-bottom: clamp(3rem, 6vw, 5rem); scroll-margin-top: 100px; }
.period-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.period-block__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.period-block__head .yr { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.period-block__desc { color: var(--ink-soft); max-width: 60ch; margin-top: .5rem; font-size: .98rem; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
.art-card { background: var(--card); border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--line-soft); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.art-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.art-card__img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.art-card__img img { width: 84%; height: auto; max-height: 84%; object-fit: contain; border: 4px solid #1d1a16; border-radius: 8px; box-shadow: var(--shadow-md); background: #1d1a16; }
.art-card__img .glyph { font-family: var(--serif); font-size: 4.2rem; color: var(--accent); opacity: .85; line-height: 1; text-align: center; }
.art-card__img .glyph small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-top: .8rem; opacity: 1; }
.art-card__img--nestor { background: linear-gradient(160deg, #efe9df 0%, #e2d6c3 100%); }
.art-card__img--nestour { background: linear-gradient(160deg, #e9ece4 0%, #d6dccd 100%); }
.art-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.art-card__title { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.2; }
.art-card__meta { font-size: .8rem; color: var(--ink-faint); letter-spacing: .02em; }
.art-card__foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.art-card__price { font-family: var(--serif); font-size: 1.25rem; }
.art-card__ref { margin-left: auto; font-size: .7rem; color: var(--ink-faint); letter-spacing: .05em; }
.art-card__ribbon { position: absolute; top: .9rem; left: .9rem; z-index: 2; }
.art-card > a.cover { position: absolute; inset: 0; z-index: 1; }
.tag { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .32rem .6rem; border-radius: 2px; }
.tag--avail { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.tag--res { background: var(--warn); color: #fff; }
.tag--soon { background: var(--paper-3); color: var(--ink-soft); }

/* Screenshots: tablet frames, a tap opens one large */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2.2rem 2rem; }
.shot { display: flex; flex-direction: column; gap: .8rem; }
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: left top; border: 6px solid #1d1a16; border-radius: 12px; box-shadow: var(--shadow-md); background: #1d1a16; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.shot:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shot span { font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(20,17,13,.92); align-items: center; justify-content: center; padding: 3vh 3vw; }
.lightbox:target { display: flex; }
.lightbox__close { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox figure { position: relative; margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; pointer-events: none; }
.lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; border: 8px solid #1d1a16; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #f7f4ee; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); text-align: center; }

/* Story / About */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--paper-2); max-width: 420px; width: 100%; justify-self: center; }
.story__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.prose p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.prose p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.4rem; line-height: .8; float: left; margin: .15rem .6rem 0 0; color: var(--accent); font-weight: 600; }
.prose .note { font-size: .82rem; font-style: italic; color: var(--ink-faint); }
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.8rem 1.8rem; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper-2); }
.timeline .yr { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.timeline p { font-size: .95rem; color: var(--ink-soft); margin-top: .2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 2.4rem; }
.contact-grid > .contact-card { align-self: stretch; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item svg { color: var(--accent); flex-shrink: 0; margin-top: .2rem; }
.contact-item .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.contact-item .v { font-size: 1.05rem; overflow-wrap: anywhere; }
.small-note { font-size: .88rem; color: var(--ink-faint); margin-top: 1.5rem; }

/* Forms */
.field { display: grid; gap: .5rem; margin-bottom: 1.4rem; }
.field > span, .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.input { width: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); min-width: 0; }
.input:focus { outline: none; border-color: var(--accent); }
textarea.input { min-height: 168px; resize: vertical; }
select.input { appearance: auto; }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--ink) 0%, #332a20 100%); color: var(--paper); border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(192,138,95,.18), transparent 55%); }
.cta > * { position: relative; }
.cta p { color: color-mix(in srgb, var(--paper) 78%, transparent); margin: 1rem auto 2rem; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand .brand__mark { font-size: 1.5rem; }
.footer__brand p { font-size: .92rem; color: var(--ink-soft); margin-top: 1rem; max-width: 40ch; }
.footer__col h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.1rem; font-weight: 600; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer__col a { font-size: .92rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-faint); flex-wrap: wrap; }

/* Shop filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; align-items: center; }
.chip { font-size: .78rem; font-weight: 500; letter-spacing: .04em; padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--accent-soft); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery-search { margin-left: auto; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; background: var(--card); min-width: 210px; }
.gallery-search:focus { outline: none; border-color: var(--accent); }

/* Licence builder (the artwork detail page) */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.step { margin-bottom: 2.6rem; }
.step__head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; }
.step__head .n { font-family: var(--serif); color: var(--accent); font-size: 1.1rem; }
.step__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.step > p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; }
.opt { position: relative; display: flex; flex-direction: column; gap: .35rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.1rem; cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.opt:hover { border-color: var(--accent-soft); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.opt__price { font-family: var(--serif); font-size: 1.15rem; color: var(--accent); }
.opt__desc { font-size: .85rem; color: var(--ink-soft); }
.opt ul { padding-left: 1.1rem; font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }
.opt--row { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.opt--row > div { min-width: 0; }
.opt .check { width: 18px; height: 18px; flex: none; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); margin-top: .25rem; }
.opt:has(input:checked) .check { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--card); }
.regions { display: grid; gap: .8rem; }
.region { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.region > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.region > summary::-webkit-details-marker { display: none; }
.region > summary .label { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .82rem; color: var(--ink-faint); }
.region__body { padding: 0 1.1rem 1.1rem; }
.region__body h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: .9rem 0 .5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.region__body h4 button { border: 0; background: none; color: var(--ink-faint); font-size: .72rem; letter-spacing: .06em; text-decoration: underline; padding: 0; }
.countries { display: flex; flex-wrap: wrap; gap: .45rem; }
.country { display: inline-flex; }
.country input { position: absolute; opacity: 0; pointer-events: none; }
.country span { font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); cursor: pointer; }
.country input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.country input:disabled + span { background: color-mix(in srgb, var(--ok) 12%, var(--card)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); cursor: default; }
.country input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.inline { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.inline .input { width: auto; flex: 1 1 200px; }

.buybox { position: sticky; top: 100px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.buybox h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.summary { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; color: var(--ink-soft); }
.summary li b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.summary .hint { display: block; font-size: .76rem; color: var(--ok); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0 .2rem; }
.total .amount { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.total-sub { font-size: .82rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.licence { font-size: .78rem; color: var(--ink-soft); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0; display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; }
.licence dt { color: var(--ink-faint); }
.licence dd { margin: 0; overflow-wrap: anywhere; }
.notice { font-size: .85rem; padding: .8rem 1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--warn) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); margin: .8rem 0; }
.notice--ok { background: color-mix(in srgb, var(--ok) 10%, var(--card)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }

/* Basket */
.basket-row { display: grid; grid-template-columns: 76px 1fr auto auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.basket-row .thumb { width: 76px; height: 76px; border-radius: 4px; display: grid; place-items: center; font-family: var(--serif); font-size: 1.8rem; color: var(--accent); }
.basket-row__title { font-family: var(--serif); font-size: 1.15rem; }
.basket-row__meta { font-size: .8rem; color: var(--ink-faint); }
.basket-row__price { font-family: var(--serif); font-size: 1.1rem; white-space: nowrap; }
.basket-row__x { border: 0; background: transparent; color: var(--ink-faint); font-size: 1rem; padding: .4rem; }
.basket-row__x:hover { color: #8a3b3b; }

.hidden { display: none !important; }

@media (max-width: 1100px) {
  .nav__links { gap: 1.4rem; }
  .nav__right { gap: .9rem; }
}
@media (min-width: 901px) and (max-width: 1100px) { .nav__right .btn { display: none; } }
@media (max-width: 900px) {
  .hero__grid, .story, .detail, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; width: 100%; margin-inline: auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav__links, .nav__right .lang { display: none; }
  .nav__toggle { display: block; }
  .site-header.nav-open .nav__links { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1.5rem var(--gutter); gap: 1.2rem; box-shadow: var(--shadow-md); }
  .site-header.nav-open .nav__right .lang { display: flex; }
  .story__img { max-width: 460px; order: -1; }
  .buybox { position: static; }
}
@media (max-width: 700px) {
  .gallery-search { margin-left: 0; width: 100%; min-width: 0; }
  .basket-row { grid-template-columns: 56px 1fr auto; }
  .basket-row .thumb { width: 56px; height: 56px; }
  .basket-row__price { grid-column: 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__meta { gap: 1.6rem; }
  .nav { gap: .6rem; }
  .nav__right { gap: .5rem; }
  .nav__right .lang { display: flex; }
  .nav__right .btn { display: none; }
  .brand__logo { width: 44px; height: 44px; }
  .brand__mark { font-size: 1.35rem; }
  .brand__sub { letter-spacing: .1em; font-size: .55rem; }
  .contact-card { padding: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html, * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Nestour: features, download and the rendered install guide */
.feat-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line-soft); }
.feat-row--flip > .shot { order: 2; }
.feat-row h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding: 0 0 .7rem 1.4rem; color: var(--ink-soft); font-size: .97rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .62rem; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.ticks li.is-new { color: var(--ink); }
.ticks li.is-new::before { background: var(--accent); }
.steps3 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.steps3 li { display: flex; align-items: center; gap: .8rem; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1rem 1.2rem; }
.steps3 b { font-family: var(--serif); font-size: 1.8rem; color: var(--accent); line-height: 1; }
.steps3 a { border-bottom: 1px solid var(--accent-soft); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.dl { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); }
.dl h2 { font-size: 2rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.dl__ver { font-size: .85rem; font-weight: 600; letter-spacing: .06em; color: var(--accent); margin: .3rem 0 .8rem; }
.dl > p { color: var(--ink-soft); font-size: .93rem; }
.dl__files { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: 1.1rem; }
.dl__file { display: grid; gap: .35rem; }
.dl__file .btn { justify-content: space-between; }
.dl__meta { font-size: .8rem; color: var(--ink-faint); }
.dl__sum { font-size: .66rem; color: var(--ink-faint); word-break: break-all; line-height: 1.4; }
.guide-wrap { max-width: 860px; }
.guide h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 3rem 0 1rem; }
.guide h3 { margin: 2.4rem 0 .8rem; scroll-margin-top: 6rem; }
.guide h2, .guide h3 { scroll-margin-top: 6rem; }
.guide p, .guide li { color: var(--ink-soft); }
.guide p { margin: 0 0 1rem; }
.guide ol, .guide ul { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.guide li { margin-bottom: .4rem; }
.guide li > ul { margin: .4rem 0 0; }
.guide strong { color: var(--ink); font-weight: 600; }
.guide a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); word-break: break-word; }
.guide hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.guide code, .small-note code { font-size: .88em; background: var(--paper-2); padding: .05rem .35rem; border-radius: 2px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; }
.guide table { border-collapse: collapse; width: 100%; background: var(--card); font-size: .9rem; }
.guide th, .guide td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.guide th { background: var(--paper-2); font-weight: 600; }
.film { margin: 0 auto; max-width: 980px; }
.film video { width: 100%; aspect-ratio: 16/9; background: #1d1a16; border: 6px solid #1d1a16; border-radius: 12px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .feat-row, .dl-grid, .steps3 { grid-template-columns: 1fr; }
  .feat-row--flip > .shot { order: 0; }
}
