/* art.souliosdesign.gr: string art shop */
:root {
  --bg: #0f0e0d;
  --wall: #1b1917;
  --wall-2: #24211e;
  --ink: #eee7dc;
  --muted: #a69e92;
  --faint: #6f685f;
  --line: #2e2a26;
  --thread: #d9b45f;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1240px, 100% - 2 * clamp(18px, 4vw, 48px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--thread); }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; line-height: 1.12; margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.mark { display: flex; align-items: baseline; gap: 9px; text-decoration: none; white-space: nowrap; }
.mark b { font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.mark i { font: italic 400 19px/1 var(--serif); color: var(--thread); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
@media (max-width: 640px) { .nav .opt { display: none; } }

/* hero */
.hero { position: relative; min-height: min(86vh, 860px); display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) { .hero { min-height: calc(100svh - 64px); } }
.hero .wrap { position: relative; padding: 120px 0 clamp(40px, 8vh, 84px); }
.hero h1 { font-size: clamp(42px, 7.2vw, 96px); max-width: 12ch; }
.hero p { max-width: 34ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin: 20px 0 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); color: var(--ink); background: transparent; padding: 13px 22px; font: 500 15px/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; border-radius: 0; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--thread); border-color: var(--thread); color: var(--bg); }

/* sections */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.head h2 { font-size: clamp(32px, 4.4vw, 54px); }
.head p { color: var(--muted); max-width: 42ch; margin: 0; }

/* catalogue grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.card.wide { grid-column: span 2; }
.tile { position: relative; aspect-ratio: 1; background: radial-gradient(120% 90% at 50% 30%, var(--wall-2), var(--wall)); overflow: hidden; }
.card.wide .tile { aspect-ratio: 2.06; }
.tile img { position: absolute; top: 12%; left: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card.wide .tile img { top: 10%; left: 7%; width: 86%; height: 80%; }
.tile.photo img, .card.wide .tile.photo img { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.card:hover .tile img { transform: scale(1.035); }
.card h3 { font-size: 22px; }
.card .sub { color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.badge { font: 500 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--thread); border: 1px dashed var(--thread); padding: 3px 6px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font: 400 30px/1 var(--serif); color: var(--thread); margin-bottom: 14px; }
.steps b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 6px; }

/* design page */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); }
.design { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); padding: 22px 0 clamp(56px, 8vw, 104px); align-items: start; }
@media (max-width: 900px) { .design { grid-template-columns: 1fr; } }
.viewer { position: relative; background: radial-gradient(120% 90% at 50% 30%, var(--wall-2), var(--wall)); aspect-ratio: 4 / 3.4; overflow: hidden; }
.viewer img { position: absolute; top: 8%; left: 8%; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(0,0,0,.6)); }
.viewer.photo { background: #0b0a09; }
.viewer.photo img { top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; filter: none; }
.cap { color: var(--muted); font-size: 14px; margin: 10px 0 0; min-height: 1.6em; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { position: relative; width: 74px; height: 74px; padding: 0; background: var(--wall); border: 1px solid var(--line); cursor: pointer; }
.thumbs button img { position: absolute; top: 8%; left: 8%; width: 84%; height: 84%; object-fit: contain; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.info h1 { font-size: clamp(38px, 5vw, 64px); }
.info .lead { color: var(--muted); margin: 14px 0 28px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 8px 13px; font-size: 15px; color: var(--muted); }
.choice img { width: 26px; height: 26px; object-fit: contain; }
.choice input:checked + span { border-color: var(--ink); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--thread); outline-offset: 2px; }
.price { font: 400 clamp(34px, 3.6vw, 44px)/1 var(--serif); color: var(--ink); margin: 2px 0 28px; letter-spacing: -.01em; }
.note { font-size: 14px; color: var(--muted); border-left: 2px solid var(--thread); padding: 2px 0 2px 12px; margin: 0 0 26px; }
.draftnote { font-size: 13px; color: var(--thread); border: 1px dashed var(--thread); padding: 10px 12px; margin: 0 0 22px; }
.fields { display: grid; gap: 14px; margin-top: 8px; }
.fields[hidden] { display: none; }
.fields label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.fields input, .fields textarea, .fields select { font: inherit; color: var(--ink); background: var(--wall); border: 1px solid var(--line); padding: 11px 12px; border-radius: 0; width: 100%; }
.fields textarea { min-height: 110px; resize: vertical; }
.fields .check { display: flex; gap: 10px; align-items: start; }
.fields .check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.status { font-size: 15px; margin: 6px 0 0; }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.examples figure { margin: 0; }
.examples .tile { aspect-ratio: 1; }
.examples figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* prose pages */
.prose { max-width: 70ch; padding: clamp(48px, 8vw, 96px) 0; }
.prose h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 26px; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose p, .prose li { color: #d8d0c4; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 64px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
