/*
Theme Name: DECIMATION
Author: DECIMATION
Description: Русскоязычный каталог платков, шарфов и палантинов для WooCommerce.
Version: 1.0.0
Text Domain: decimation
*/
:root {
	--dm-paper: #faf8f4;
	--dm-ink: #211e1d;
	--dm-wine: #532431;
}
body { margin: 0; background: var(--dm-paper); color: var(--dm-ink); }
.dm-home, .dm-home *, .dm-films, .dm-films * { box-sizing: border-box; }
.dm-home, .dm-films {
	--dm-gutter: clamp(1.15rem, 5vw, 5rem);
	--dm-section: clamp(2.9rem, 5.6vw, 6.1rem);
	font: 400 1rem/1.5 var(--de-sans, Arial, sans-serif);
}
.dm-hero { color: #fff9ee; }
.dm-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.dm-product-types {
	margin: 0 0 clamp(.75rem, 1.55vw, 1.6rem);
	font-size: clamp(.84rem, 1.05vw, 1.05rem);
	line-height: 1.4;
	letter-spacing: .02em;
}
.dm-hero h1, .dm-home h2, .dm-material span, .dm-film-heading h1, .dm-film-caption h2, .dm-film-tile h3 {
	font-family: var(--de-serif, Georgia, serif);
	font-weight: 400;
}
.dm-hero h1 { margin: 0; color: inherit; font-size: clamp(4.5rem, 7.7vw, 8.2rem); letter-spacing: -.055em; line-height: .99; }
.dm-hero h1 em { font-weight: inherit; }
.dm-action {
	display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem;
	padding: .67rem 1.38rem; margin-top: clamp(1.25rem, 2.2vw, 2.25rem);
	background: #faf6ef; color: #241e1b; font-size: .93rem; font-weight: 550;
	text-decoration: none; border: 1px solid #faf6ef;
}
.dm-action:hover { background: #e9ded2; border-color: #e9ded2; color: #201a17; }
.dm-materials, .dm-series, .dm-selection {
	max-width: 96rem; margin-inline: auto; padding-inline: var(--dm-gutter);
}
.dm-materials, .dm-selection { padding-block: var(--dm-section); }
.dm-home h2 {
	margin: 0 0 clamp(1.25rem, 2.3vw, 2.6rem);
	font-size: clamp(2.15rem, 3.9vw, 4.1rem); line-height: 1.09; letter-spacing: -.045em;
}
.dm-material-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.85rem, 1.5vw, 1.65rem); }
.dm-material { min-width: 0; color: inherit; text-decoration: none; }
.dm-material-image { display: block; overflow: hidden; background: #e9e3da; aspect-ratio: 1.13; }
.dm-material-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--dm-focus, 50% 45%); }
.dm-material-silk { --dm-focus: 57% 43%; }
.dm-material-wool { --dm-focus: 50% 48%; }
.dm-material-silk-wool { --dm-focus: 50% 43%; }
.dm-material-other { --dm-focus: 49% 48%; }
.dm-material .dm-material-label {
	display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; border-bottom: 1px solid #c5bbb0;
	padding: .7rem 0 .85rem; line-height: 1.18; font-size: clamp(1.28rem, 2vw, 2.1rem); letter-spacing: -.035em;
	overflow-wrap: anywhere; hyphens: auto;
}
.dm-material-label::after {
	content: ''; flex: 0 0 auto; align-self: center; width: .37em; height: .37em;
	border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); margin-right: .15em;
}
.dm-material:hover .dm-material-label, .dm-material:focus-visible .dm-material-label { color: var(--dm-wine); border-color: currentColor; }
.dm-home :focus-visible, .dm-films :focus-visible { outline: 2px solid #805445; outline-offset: 4px; }
.dm-series { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.85rem, 1.5vw, 1.65rem); }
@media (min-width: 761px) {
	.dm-series:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dm-series:has(> :nth-child(3)) .dm-series-card h2 { font-size: clamp(1.45rem, 2.7vw, 2.95rem); overflow-wrap: anywhere; }
}
.dm-series-card { position: relative; display: grid; align-items: end; min-width: 0; isolation: isolate; color: #fff9ef; text-decoration: none; background: #72685e; overflow: hidden; }
.dm-series-card img { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 51% 27%; }
.dm-series-card + .dm-series-card img { object-position: 49% 20%; }
.dm-series-card::before {
	content: ''; position: absolute; z-index: -1; inset: 0;
	background: linear-gradient(0deg, rgb(27 22 20 / 76%), rgb(30 25 19 / 37%) 24%, transparent 61%);
}
.dm-series-card > div { display: flex; flex-direction: column; justify-content: end; padding: clamp(1.15rem, 2.65vw, 3rem); aspect-ratio: 1.23; }
.dm-series-card span { font: 500 clamp(.8rem, 1.05vw, .97rem)/1.4 var(--de-sans, Arial, sans-serif); letter-spacing: .045em; }
.dm-series-card h2 { color: inherit; margin: .28rem 0 0; font-size: clamp(1.9rem, 3.25vw, 3.6rem); letter-spacing: -.042em; }
.dm-series-card:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.dm-selection { overflow: auto; }
.dm-selection .products li { overflow-wrap: anywhere; }
.dm-films { max-width: 88rem; margin: auto; padding: clamp(1.8rem,4vw,4rem) var(--dm-gutter) var(--dm-section); color: var(--dm-ink); }
.dm-film-heading h1 { font-size: clamp(2.65rem,5.4vw,5.25rem); margin: 0 0 clamp(1.4rem, 2.7vw, 2.8rem); line-height: 1.05; letter-spacing: -.05em; }
.dm-screening, .dm-film-screen { scroll-margin-top: 1.15rem; min-width: 0; }
.dm-cinema { display: grid; grid-template-columns: minmax(15rem, .78fr) minmax(24rem, 1.16fr); align-items: start; gap: clamp(2rem,4.5vw,4.2rem); }
.dm-film-screen { overflow: hidden; position: relative; }
.dm-screening video { display: block; width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #272421; }
.dm-film-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .8rem 0 .4rem; }
.dm-film-caption h2 { margin: 0; font-size: clamp(1.55rem,2.65vw,2.55rem); line-height: 1.2; letter-spacing: -.035em; }
.dm-film-caption span { font-variant-numeric: tabular-nums; color: #6b6059; font-size: .85rem; }
.dm-film-link { color: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: .25em; }
.dm-film-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.2rem,2vw,2rem) clamp(.75rem,1.15vw,1.25rem); }
.dm-film-tile { min-width: 0; text-decoration: none; color: inherit; }
.dm-film-tile > div { position: relative; display: block; background: #d7cdc1; aspect-ratio: 3/4; }
.dm-film-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm-film-tile span { position: absolute; bottom: .45rem; right: .45rem; padding: .12rem .38rem; background: rgb(30 25 23 / 78%); color: white; font: 500 .73rem/1.3 var(--de-sans, Arial, sans-serif); font-variant-numeric: tabular-nums; }
.dm-film-tile h3 { margin: .55rem 0 0; font-size: clamp(1.12rem,1.55vw,1.55rem); line-height: 1.19; letter-spacing: -.025em; }
.dm-film-tile[aria-current] > div::after { content:''; position:absolute; inset: .24rem; border: 1px solid #fff9ed; box-shadow: 0 0 0 1px rgb(40 30 22 / 42%); pointer-events:none; }
.dm-film-tile:hover h3, .dm-film-tile[aria-current] h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
	.dm-material-image img, .dm-series-card img { transition: transform .5s ease; }
	.dm-material:hover img, .dm-series-card:hover img { transform: scale(1.025); }
}
@media (max-width: 800px) {
	.dm-cinema { grid-template-columns: 1fr; }
	.dm-screening { width: min(100%, 31rem); margin: auto; }
	.dm-film-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
	.dm-hero h1 { font-size: clamp(3.75rem, 13vw, 6.4rem); }
	.dm-material-grid { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 1.15rem; }
	.dm-material .dm-material-label { padding-block: .55rem .65rem; }
	.dm-series { grid-template-columns: 1fr; }
	.dm-series-card > div { aspect-ratio: 1.35; }
}
@media (max-width: 520px) {
	.dm-film-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
