:root {
  --bg: #e9e6df;
  --paper: rgba(248, 247, 243, 0.92);
  --paper-solid: #f7f4ee;
  --ink: #272521;
  --muted: #67625b;
  --line: rgba(54, 52, 48, 0.18);
  --brand: #47443f;
  --brand-2: #6f665d;
  --accent: #9c8871;
  --green: #777267;
  --shadow: 0 22px 60px rgba(40, 37, 32, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(156, 136, 113, .20), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(92, 88, 81, .12), transparent 26%),
    linear-gradient(135deg, #ded9d0 0%, #f3f0e9 42%, #d3ccc1 100%);
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    linear-gradient(rgba(44, 42, 38, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 42, 38, .028) 1px, transparent 1px);
  background-size: 42px 42px;
  mix-blend-mode: multiply;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
::selection {
  background: rgba(156, 136, 113, .30);
  color: var(--ink);
}


.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.btn, .style-pill {
  border: 1px solid rgba(64, 61, 55, .20);
  background: rgba(255, 250, 240, .70);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover, .style-pill:hover {
  transform: translateY(-1px);
  background: #f7f4ee;
  border-color: rgba(64, 61, 55, .34);
}
.btn--primary {
  background: var(--brand);
  color: #fbf8f0;
  border-color: var(--brand);
}
.btn--primary:hover { background: #5d5951; }
.btn--ghost { background: rgba(255,255,255,.34); }

.hero {
  min-height: calc(100vh - var(--site-header-height, 156px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 42px;
  padding: 70px 0 54px;
}
.hero__copy {
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: .95;
  letter-spacing: -.055em;
  margin-bottom: 24px;
}
.lead {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.5;
  color: #4c4943;
  max-width: 720px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__panel {
  background: var(--paper);
  border: 1px solid rgba(91,58,32,.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 18px;
  transform: rotate(1.1deg);
}
.photo-stack {
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
}
.vintage-card {
  width: min(440px, 92%);
  background: #f7f4ee;
  border-radius: 8px;
  padding: 18px 18px 62px;
  box-shadow: 0 18px 45px rgba(31, 20, 11, .22);
  border: 1px solid rgba(91,58,32,.18);
}
.vintage-card::before {
  content: "";
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background:
    linear-gradient(rgba(64,44,26,.15), rgba(64,44,26,.15)),
    radial-gradient(circle at 42% 35%, rgba(255,255,255,.58), transparent 9%),
    linear-gradient(155deg, #5b554d, #c7bbab 44%, #474842 100%);
  filter: grayscale(.18) sepia(.36) contrast(.96) saturate(.78);
}
.vintage-card--back {
  position: absolute;
  transform: translate(-38px, 16px) rotate(-6deg);
  opacity: .68;
}
.vintage-card--front { position: relative; transform: rotate(3deg); }

/* 20260709_v5: tik nuotrauka į pagrindinės polaroid kortelės vidų.
   Proporcijos, hero fonas, spalvų schema ir kiti išdėstymai palikti iš v2. */
.vintage-card--front::before {
  background:
    linear-gradient(rgba(64,44,26,.15), rgba(64,44,26,.15)),
    radial-gradient(circle at 42% 35%, rgba(255,255,255,.58), transparent 9%),
    url("../img/attic_cobwebs_visible_20260709_v5.gif") center / cover no-repeat;
}

.hero-note {
  position: absolute;
  right: 10px;
  bottom: 22px;
  width: min(300px, 70%);
  background: #ece5d8;
  border: 1px solid rgba(91,58,32,.16);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(31, 20, 11, .16);
  transform: rotate(-2.3deg);
}
.hero-note strong { display: block; margin-bottom: 6px; }

.section { padding: 76px 0; }
.section__head {
  max-width: 760px;
  margin-bottom: 28px;
}
.section h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}
.section__head p { color: var(--muted); font-size: 18px; line-height: 1.6; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card, .gallery-card, .content-card {
  background: var(--paper);
  border: 1px solid rgba(91,58,32,.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 44px rgba(52, 33, 18, .10);
}
.feature-card {
  padding: 24px;
  min-height: 210px;
}
.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3ded4;
  color: var(--brand);
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 23px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); line-height: 1.55; }

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.searchbox {
  flex: 1;
  min-width: 220px;
  border: 1px solid rgba(91,58,32,.18);
  background: rgba(255,250,240,.76);
  border-radius: 999px;
  padding: 13px 16px;
  outline: none;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-card { overflow: hidden; }
.gallery-card__cover {
  height: 210px;
  background:
    linear-gradient(rgba(43,36,28,.08), rgba(43,36,28,.22)),
    radial-gradient(circle at 40% 28%, rgba(255,255,255,.6), transparent 12%),
    linear-gradient(135deg, #857b70, #c8bba8 48%, #55534c 100%);
  position: relative;
}
.gallery-card__cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.20) sepia(.28) contrast(.96) saturate(.82); }
.gallery-card__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(255, 250, 240, .88);
  border: 1px solid rgba(91,58,32,.16);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--brand);
}
.gallery-card__body { padding: 20px; }
.gallery-card h3 { font-size: 25px; line-height: 1.16; margin-bottom: 8px; }
.gallery-card p { color: var(--muted); line-height: 1.55; min-height: 48px; }
.gallery-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; color: var(--muted); font-size: 14px; }
.gallery-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.viewer-page { padding: 34px 0 80px; }
.viewer-header {
  background: var(--paper);
  border: 1px solid rgba(91,58,32,.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 28px 0 22px;
}
.viewer-header__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.viewer-title { font-size: clamp(32px, 4vw, 58px); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 8px; }
.viewer-description { max-width: 780px; color: var(--muted); line-height: 1.6; font-size: 18px; }
.viewer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.photo-card {
  background: var(--paper-solid);
  border: 1px solid rgba(91,58,32,.14);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 12px 34px rgba(52, 33, 18, .10);
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #242320;
  border-radius: 12px;
  cursor: zoom-in;
}
.photo-caption { padding: 12px 4px 4px; }
.photo-caption strong { display: block; font-size: 18px; margin-bottom: 4px; }
.photo-caption span { color: var(--muted); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 18, 17, .88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.lightbox.is-open { display: flex; }
.lightbox__panel {
  width: min(1100px, 100%);
  max-height: 96vh;
  display: grid;
  gap: 14px;
}
.lightbox img {
  max-height: 78vh;
  width: 100%;
  object-fit: contain;
  background: #151513;
  border-radius: 14px;
}
.lightbox__caption {
  color: #fbf8f0;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 14px 16px;
}
.lightbox__close {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  background: rgba(0,0,0,.4);
  cursor: pointer;
  font-size: 24px;
}

.state {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,250,240,.78);
  border: 1px solid rgba(91,58,32,.14);
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 46px;
  color: var(--muted);
}
.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 42px; }
  .photo-stack { min-height: 410px; }
  .feature-grid, .gallery-grid, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .viewer-header__top { display: grid; }
}
@media (max-width: 640px) {
  .btn, .style-pill { padding: 9px 11px; font-size: 14px; }
  .hero { min-height: auto; }
  .hero h1 { font-size: 46px; }
  .lead { font-size: 18px; }
  .feature-grid, .gallery-grid, .photo-grid { grid-template-columns: 1fr; }
  .gallery-toolbar { display: grid; }
  .viewer-header { padding: 20px; }
}


/* 20260709_v2 – grayscale base with strong sepia (#755338) accents.
   Designed from the selected mockup: black/white/gray dominant, sepia used for trim, glow and shadows. */
:root {
  --bg: #ebe9e4;
  --paper: rgba(248, 246, 240, 0.94);
  --paper-solid: #f7f4ee;
  --paper-warm: #f1ece3;
  --ink: #282622;
  --muted: #6f6a62;
  --line: rgba(117, 83, 56, 0.22);
  --brand: #755338;
  --brand-2: #8f6c49;
  --accent: #755338;
  --accent-soft: #a8865f;
  --green: #625d55;
  --shadow: 0 24px 70px rgba(117, 83, 56, 0.18), 0 10px 28px rgba(30, 28, 25, 0.10);
}

body {
  background:
    radial-gradient(circle at 18% 16%, rgba(117, 83, 56, .12), transparent 26%),
    radial-gradient(circle at 80% 8%, rgba(20, 20, 20, .08), transparent 24%),
    linear-gradient(135deg, #dedbd4 0%, #f7f5f0 44%, #d4d0c8 100%);
}
body::before {
  opacity: .32;
  background-image:
    linear-gradient(rgba(42, 40, 36, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 40, 36, .026) 1px, transparent 1px);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(117,83,56,.055) 72%, transparent 100%),
    radial-gradient(circle at 68% 20%, rgba(255,255,255,.45), transparent 28%);
  mix-blend-mode: multiply;
  opacity: .82;
}
::selection { background: rgba(117, 83, 56, .28); color: #171513; }

.btn, .style-pill {
  border-color: rgba(117, 83, 56, .28);
  background: rgba(248, 246, 240, .78);
  box-shadow: 0 8px 20px rgba(117,83,56,.08);
}
.btn:hover, .style-pill:hover {
  background: #fbfaf6;
  border-color: rgba(117, 83, 56, .52);
  box-shadow: 0 12px 26px rgba(117,83,56,.14);
}
.btn--primary {
  background: #755338;
  border-color: #755338;
  color: #fffaf1;
  box-shadow: 0 14px 28px rgba(117,83,56,.22);
}
.btn--primary:hover { background: #65462e; border-color: #65462e; }
.btn--ghost { background: rgba(255,255,255,.44); color: #302c27; }

.eyebrow { color: #755338; }
.eyebrow::before { height: 1px; opacity: .72; }
.lead { color: #494641; }

.hero__panel,
.viewer-header,
.feature-card,
.gallery-card,
.content-card,
.photo-card,
.state {
  border-color: rgba(117,83,56,.20);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hero__panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(241,236,227,.90)),
    var(--paper);
}
.hero__panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(117,83,56,.22);
  border-radius: calc(var(--radius-xl) - 10px);
  pointer-events: none;
}

.vintage-card {
  background: #fbfaf6;
  border: 1px solid rgba(117,83,56,.32);
  box-shadow:
    0 24px 52px rgba(117,83,56,.20),
    0 8px 18px rgba(35,32,28,.12);
}
.vintage-card::before {
  background:
    radial-gradient(circle at 39% 28%, rgba(255,238,205,.72), rgba(117,83,56,.12) 7%, transparent 15%),
    linear-gradient(18deg, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(155deg, #3e3d39 0%, #a9a49b 48%, #2e2e2b 100%);
  filter: grayscale(.04) sepia(.16) contrast(.98) saturate(.82);
  border: 1px solid rgba(117,83,56,.12);
}
.vintage-card--back { opacity: .60; filter: grayscale(.28); }
.hero-note {
  background: rgba(248,245,238,.96);
  border: 1px solid rgba(117,83,56,.50);
  box-shadow: 0 16px 36px rgba(117,83,56,.20), 0 5px 14px rgba(30,28,25,.10);
  color: #302c27;
}
.hero-note strong {
  color: #282622;
  position: relative;
  padding-bottom: 10px;
}
.hero-note strong::after {
  content: "";
  display: block;
  width: 88px;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, transparent, #755338 14%, #755338 86%, transparent);
}
.hero-note span { color: #4f4a43; }

.feature-card__icon {
  background: rgba(117,83,56,.12);
  color: #755338;
  border: 1px solid rgba(117,83,56,.22);
}
.feature-card h3,
.gallery-card h3,
.viewer-title { color: #292622; }

.searchbox {
  border-color: rgba(117,83,56,.28);
  background: rgba(251,250,246,.82);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.54), 0 10px 22px rgba(117,83,56,.08);
}
.searchbox:focus { border-color: rgba(117,83,56,.58); box-shadow: 0 0 0 4px rgba(117,83,56,.10); }

.gallery-card { overflow: hidden; }
.gallery-card__cover {
  background:
    radial-gradient(circle at 40% 28%, rgba(255,238,205,.68), transparent 11%),
    linear-gradient(rgba(30,29,27,.05), rgba(117,83,56,.18)),
    linear-gradient(135deg, #706b63 0%, #b7b0a5 50%, #3e3c38 100%);
}
.gallery-card__cover img {
  filter: grayscale(.48) sepia(.22) contrast(.98) saturate(.82);
}
.gallery-card__badge {
  background: rgba(251,250,246,.90);
  border-color: rgba(117,83,56,.35);
  color: #755338;
  box-shadow: 0 8px 18px rgba(117,83,56,.12);
}
.gallery-card__meta span {
  border-left: 2px solid rgba(117,83,56,.38);
  padding-left: 8px;
}

.viewer-header {
  background:
    linear-gradient(180deg, rgba(255,255,255,.60), rgba(241,236,227,.82)),
    var(--paper);
}
.viewer-header .eyebrow { color: #755338; }
.photo-card {
  background: #fbfaf6;
  border-color: rgba(117,83,56,.22);
}
.photo-card img {
  background: #22211f;
  box-shadow: inset 0 0 0 1px rgba(117,83,56,.18);
}
.photo-caption strong { color: #2b2925; }
.photo-caption span { color: #6b665f; }

.lightbox { background: rgba(22, 20, 18, .90); }
.lightbox__caption {
  color: #fffaf1;
  border-color: rgba(168,134,95,.34);
  background: rgba(20,18,16,.48);
}
.lightbox__close { border-color: rgba(168,134,95,.38); background: rgba(117,83,56,.42); }

.state {
  background: rgba(248,245,238,.82);
  color: #6f6a62;
}
.site-footer {
  border-top-color: rgba(117,83,56,.22);
  background: linear-gradient(180deg, transparent, rgba(117,83,56,.05));
}
.site-footer a { color: #755338; }

@media (max-width: 640px) {
  .hero__panel::after { inset: 12px; }
  .hero-note { width: min(315px, 82%); }
}
