/*
Theme Name: UstasHome
Theme URI: https://ustashome.ru
Author: UstasHome
Description: Домашняя страничка Олеси и Стаса
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: ustashome
*/

@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest-cyrillic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-cyrillic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #e7d3b4;
  --ink: #1c1917;
  --oxide: #9a4e32;
  --line: rgba(28, 25, 23, 0.14);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

html,
body,
.sheet {
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: Onest, sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

a { color: var(--oxide); }

img, video { max-width: 100%; }

.site-head {
  position: relative;
  z-index: 3;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem 1.25rem;
  padding: 1.25rem 1.5rem;
}

.menu a {
  color: var(--ink);
  text-decoration: none;
}

.menu a:hover { color: var(--oxide); }

.menu-quiet {
  margin-left: auto;
  font-size: 0.92rem;
}

.is-front {
  background: #1c1917;
}

.is-front .site-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.is-front .menu a { color: #f4f0e8; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #f4f0e8;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.84) 0%, rgba(28, 25, 23, 0.28) 46%, rgba(28, 25, 23, 0.35) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 12vh;
  max-width: 46rem;
}

.names {
  margin: 0 0 0.8rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.line {
  margin: 0 0 1.5rem;
  max-width: 26rem;
  font-size: 1.15rem;
}

.button {
  display: inline-block;
  background: var(--oxide);
  color: #f4f0e8;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.button:hover { color: #f4f0e8; background: #833f28; }

.has-chapter .site-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.has-chapter .menu a { color: var(--ink); }

.has-cover .menu a { color: #f4f0e8; }

.has-cover .menu a:hover { color: #e7c4b4; }

.chapter {
  position: relative;
  background:
    radial-gradient(90% 80% at 0% 0%, #f8e3c4 0%, transparent 58%),
    linear-gradient(165deg, #f0c48a 0%, #e7b48a 46%, #e7d3b4 100%);
  color: var(--ink);
  padding: 7rem 1.5rem 3.5rem;
  min-height: 16rem;
}

.chapter-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxide);
}

.chapter h1 {
  margin: 0;
  max-width: 16ch;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.chapter-line {
  max-width: 28rem;
  margin: 1rem 0 0;
  font-size: 1.15rem;
}

.chapter a { color: var(--oxide); }

.album-banner.has-cover,
.album-banner.has-cover a { color: #f4f0e8; }

.album-banner.has-cover .chapter-kicker,
.album-banner.has-cover .card-date { color: #e7c4b4; }

.album-banner:not(.has-cover) .scrim { display: none; }

.chapter-copy { position: relative; z-index: 2; }

.album-banner {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  background-color: #1c1917;
  background-position: center;
  background-size: cover;
}

.album-banner .scrim {
  background: linear-gradient(to top, rgba(28, 25, 23, 0.88) 0%, rgba(28, 25, 23, 0.15) 55%, rgba(28, 25, 23, 0.28) 100%);
}

.chapter .card-date { color: #e7c4b4; }

.films {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: transparent;
  padding: 0 1.5rem 3.5rem;
}

.films figure { margin: 0; }

.films video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.films figcaption {
  margin-top: 0.7rem;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
}

.sheet {
  padding: 2.5rem 1.5rem 4rem;
}

.sheet-head h1,
.story h1,
.story h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.story {
  max-width: 40rem;
  margin: 0 auto;
}

.story h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0.5rem 0 1rem; }

.story p { font-family: "Source Serif 4", Georgia, serif; font-size: 1.2rem; line-height: 1.55; }

.card-date,
.card-line { display: block; }

.card-date { color: var(--oxide); margin-top: 0.35rem; font-size: 0.92rem; }

.card-line { margin-top: 0.35rem; color: var(--ink); }

.album-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 1.75rem;
  max-width: 68rem;
  margin: 0 auto;
}

.trip-shoots { margin-top: 2.5rem; }

.card { color: inherit; text-decoration: none; }

.cover-frame { position: relative; display: block; }

.card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.1rem 1.1rem;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.86), rgba(28, 25, 23, 0));
  color: #f4f0e8;
}

.card-title {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.15;
  color: #f4f0e8;
}

.card-meta .card-date,
.card-meta .card-line { color: #f4f0e8; }

.cover,
.cover-empty {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #2a2420;
}

.stage {
  background: #1c1917;
  color: #f4f0e8;
  padding: 2.5rem 1.5rem 4rem;
}

.stage .tags a { color: #f4f0e8; }

.ends-dark .site-foot {
  background: #1c1917;
  color: #f4f0e8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  max-width: 68rem;
  margin: 0 auto 1.5rem;
}

.tags a { text-decoration: none; }

.tags .is-on { text-decoration: underline; text-underline-offset: 0.25rem; }

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 68rem;
  margin: 0 auto;
}

.shot {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.shot[hidden] { display: none; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.shot img.is-in { opacity: 1; }

.shot-count {
  max-width: 68rem;
  margin: 0 auto 0.8rem;
  color: #e7c4b4;
  font-size: 0.92rem;
}

.load-more {
  display: block;
  margin: 1.4rem auto 0;
}

.load-more:disabled {
  background: transparent;
  color: #e7c4b4;
  cursor: default;
}

.album-video {
  display: block;
  width: min(100%, 68rem);
  margin: 1.5rem auto 0;
  background: #111;
}

.pause, .note { max-width: 40rem; margin: 1rem auto; }

.site-foot {
  padding: 1.5rem;
  color: inherit;
}

.is-front .site-foot { color: #f4f0e8; background: #1c1917; }

.site-foot p { margin: 0; font-size: 0.92rem; }

form label { display: block; margin: 0 0 1rem; }

.desk { max-width: 46rem; }

.desk input[type="checkbox"],
.desk input[type="radio"],
.desk input[type="file"] { width: auto; display: inline-block; }

.desk-nav { display: flex; gap: 1.25rem; }

.desk-nav a { color: inherit; }

.desk-nav a.is-on { text-decoration: underline; text-underline-offset: 0.25rem; }

.desk-guide { max-width: 36rem; }

.desk-guide h2 { margin: 0 0 0.6rem; font-size: 1.55rem; }

.desk-guide li { margin: 0.35rem 0; }

.desk-now {
  margin: 1.2rem 0 1.4rem;
  padding: 0.2rem 1.15rem;
  background: rgba(255, 250, 242, 0.55);
}

.desk-later { margin: 0 0 0.4rem; }

.desk-guide details {
  margin: 0;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.desk-guide summary {
  cursor: pointer;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.desk-guide details p,
.desk-guide details ol { margin-top: 0.7rem; }

.desk-list { padding: 0; list-style: none; }

.desk-list li { margin: 0 0 0.8rem; }

.desk-file img { display: block; margin-bottom: 0.4rem; }

.desk-caption { margin: 0 0 0.35rem; }

.desk-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.45rem; }

.desk-tools button {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.desk-story {
  min-height: 10rem;
  width: min(100%, 40rem);
  margin: 0 0 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

.desk-story:focus { outline: 1px solid var(--oxide); outline-offset: 2px; }

.desk-story:empty::before {
  content: "Пишите обычным текстом. Кнопки сверху — жирный, курсив и список.";
  color: var(--ink);
  opacity: 0.45;
}

.desk-story p { margin: 0 0 0.75rem; }

.desk .desk-story-field { display: none; }

form textarea,
form select,
form input {
  display: block;
  width: min(100%, 22rem);
  margin-top: 0.35rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
}

@media (max-width: 700px) {
  .hero-media video { display: none; }
}

@media (min-width: 800px) {
  .menu { padding: 1.5rem 3rem; }
  .hero-copy { padding: 0 3rem 14vh; }
  .chapter { padding: 8rem 3rem 4rem; }
  .films { grid-template-columns: 1fr 1fr; padding: 0 3rem 4.5rem; gap: 1.5rem; }
  .sheet { padding: 3rem 3rem 5rem; }
  .stage { padding: 3rem 3rem 5rem; }
  .album-grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
}
