/*
Theme Name: Fashion Novelties
Theme URI: https://fashion-novelties.ru/
Author: Fashion Novelties
Description: Lightweight editorial fashion magazine theme inspired by the supplied reference layout. Responsive, image-optimized, touch carousel, video, comments, affiliate products and performance-focused.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: fashion-novelties
License: GPL-2.0-or-later
*/

:root {
  --fn-bg: #e8e7e4;
  --fn-card: #d9d7d3;
  --fn-graphite: #292929;
  --fn-dark: #222;
  --fn-text: #202020;
  --fn-muted: #777;
  --fn-white: #fff;
  --fn-line: #d1cfcb;
  --fn-radius: 14px;
  --fn-container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fn-bg);
  color: var(--fn-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

button,
input,
textarea,
select { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #777;
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.fn-shell {
  width: min(100% - 32px, var(--fn-container));
  margin-inline: auto;
}

.fn-ad {
  min-height: 90px;
  margin: 6px 0 18px;
  border-radius: 7px;
  background: #dfddd9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  overflow: hidden;
}

.fn-ad img {
  display: block;
  width: 100%;
  height: auto;
}

.fn-ad a { display: block; width: 100%; }

.fn-header {
  padding-bottom: 20px;
}

.fn-brand {
  text-align: center;
  padding: 8px 0 22px;
}

.fn-brand__title {
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: .12em;
  text-decoration: none;
}

.fn-brand__tagline {
  margin-top: 7px;
  color: #999;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.fn-nav {
  background: var(--fn-graphite);
  border-radius: 5px;
  color: #fff;
}

.fn-nav__toggle {
  display: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
}

.fn-nav__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fn-nav__list li { margin: 0; }

.fn-nav__list a {
  display: block;
  padding: 13px 18px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}

.fn-nav__list a:hover,
.fn-nav__list .current-menu-item > a,
.fn-nav__list .current-cat > a {
  background: #3a3a3a;
}

.fn-main { padding-bottom: 42px; }

.fn-hero {
  position: relative;
  margin-bottom: 20px;
  border-radius: var(--fn-radius);
  overflow: hidden;
  background: #d7d5d1;
}

.fn-hero__link {
  display: block;
  color: #fff;
  text-decoration: none;
}

.fn-hero__media {
  aspect-ratio: 16 / 7;
  min-height: 280px;
  background: #d7d5d1;
}

.fn-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fn-hero__overlay {
  position: absolute;
  inset: 42% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(to bottom, transparent, rgba(20,20,20,.86));
}

.fn-kicker {
  color: #d5d0ca;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.fn-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.12;
}

.fn-grid {
  display: grid;
  gap: 14px;
}

.fn-grid--lead {
  grid-template-columns: 2fr 1fr;
  margin-bottom: 14px;
}

.fn-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.fn-card {
  background: var(--fn-white);
  border-radius: var(--fn-radius);
  overflow: hidden;
  min-width: 0;
}

.fn-card__link {
  display: block;
  text-decoration: none;
  height: 100%;
}

.fn-card__media {
  aspect-ratio: 3 / 2;
  background: var(--fn-card);
  overflow: hidden;
}

.fn-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.fn-card__link:hover .fn-card__media img { transform: scale(1.025); }

.fn-card__body { padding: 13px 14px 16px; }

.fn-card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.fn-grid--lead .fn-card:first-child .fn-card__title { font-size: 21px; }

.fn-meta {
  color: #999;
  font-size: 11px;
  margin-top: 8px;
}

.fn-native-ad {
  margin: 14px 0;
  min-height: 34px;
  border-radius: 8px;
  background: #dedcd8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  overflow: hidden;
}

.fn-native-ad img { width: 100%; height: auto; display: block; }

.fn-article {
  background: #fff;
  border-radius: var(--fn-radius);
  padding: clamp(20px, 4vw, 42px);
}

.fn-article__header { max-width: 900px; margin: 0 auto 26px; }

.fn-article__category {
  color: #a36f60;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fn-article__title {
  margin: 8px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
}

.fn-article__byline {
  color: var(--fn-muted);
  font-size: 13px;
}

.fn-article__featured {
  margin: 0 0 28px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--fn-card);
}

.fn-article__featured img {
  display: block;
  width: 100%;
  height: auto;
}

.fn-prose {
  max-width: 820px;
  margin: 0 auto;
  font-size: 18px;
}

.fn-prose p { margin: 0 0 1.15em; }
.fn-prose h2,
.fn-prose h3 { line-height: 1.2; margin-top: 1.7em; }
.fn-prose blockquote {
  margin: 1.5em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--fn-graphite);
  background: #f1f0ee;
}
.fn-prose figure { margin: 1.5em 0; }
.fn-prose figcaption { color: var(--fn-muted); font-size: 13px; margin-top: 6px; }

.fn-carousel {
  position: relative;
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #222;
  touch-action: pan-y;
}

.fn-carousel__track {
  display: flex;
  transition: transform .28s ease;
  will-change: transform;
}

.fn-carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  background: #222;
}

.fn-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #222;
}

.fn-carousel__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  cursor: pointer;
}
.fn-carousel__button--prev { left: 12px; }
.fn-carousel__button--next { right: 12px; }

.fn-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.fn-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.fn-carousel__dot[aria-current="true"] { background: #fff; }

.fn-video {
  margin: 28px 0;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}
.fn-video iframe,
.fn-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.fn-products {
  margin: 34px 0;
}
.fn-section-title {
  margin: 0 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}
.fn-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.fn-product {
  background: #f5f4f2;
  border-radius: 10px;
  overflow: hidden;
}
.fn-product__image {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--fn-card);
}
.fn-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fn-product__body { padding: 12px; }
.fn-product__brand { color: var(--fn-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.fn-product__name { margin: 4px 0; font-weight: 700; }
.fn-product__price { margin-bottom: 9px; }
.fn-product__button {
  display: inline-block;
  padding: 8px 11px;
  background: var(--fn-graphite);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.fn-related { margin-top: 36px; }

.fn-comments {
  max-width: 820px;
  margin: 38px auto 0;
}
.fn-comments ol,
.fn-comments ul { list-style: none; margin: 0; padding: 0; }
.fn-comments .comment { margin-bottom: 18px; padding: 15px; background: #f2f1ef; border-radius: 9px; }
.fn-comments .comment-meta { font-size: 12px; color: var(--fn-muted); margin-bottom: 8px; }
.fn-comments .comment-content p:last-child { margin-bottom: 0; }
.fn-comments .comment-reply-link { font-size: 12px; }
.fn-comments .comment-form-comment textarea,
.fn-comments input[type="text"],
.fn-comments input[type="email"],
.fn-comments input[type="url"] {
  width: 100%;
  padding: 11px;
  border: 1px solid #ccc;
  border-radius: 7px;
  background: #fff;
}
.fn-comments input[type="submit"] {
  border: 0;
  padding: 11px 16px;
  border-radius: 7px;
  background: var(--fn-graphite);
  color: #fff;
  cursor: pointer;
}

.fn-pagination { margin-top: 22px; }
.fn-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.fn-pagination a,
.fn-pagination span {
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}
.fn-pagination .current { background: var(--fn-graphite); color: #fff; }

.fn-search {
  background: #fff;
  border-radius: var(--fn-radius);
  padding: 20px;
  margin-bottom: 14px;
}
.fn-search form { display: flex; gap: 8px; }
.fn-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 7px;
}
.fn-search button {
  padding: 12px 16px;
  border: 0;
  border-radius: 7px;
  background: var(--fn-graphite);
  color: #fff;
  cursor: pointer;
}

.fn-footer {
  margin-top: 20px;
  padding: 35px 0;
  background: var(--fn-graphite);
  color: #fff;
}
.fn-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 25px;
}
.fn-footer a { color: #fff; text-decoration: none; }
.fn-footer__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: .08em;
}
.fn-footer__small { color: #aaa; font-size: 12px; }
.fn-footer__menu ul { list-style: none; padding: 0; margin: 0; }
.fn-footer__menu li { margin-bottom: 7px; }

@media (max-width: 800px) {
  .fn-shell { width: min(100% - 20px, var(--fn-container)); }
  .fn-ad { min-height: 50px; margin-top: 4px; }
  .fn-brand { padding-bottom: 15px; }
  .fn-nav__toggle { display: block; }
  .fn-nav__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .fn-nav.is-open .fn-nav__list { display: flex; }
  .fn-nav__list a { padding: 12px 15px; }
  .fn-grid--lead { grid-template-columns: 1fr; }
  .fn-grid--three { grid-template-columns: 1fr 1fr; }
  .fn-products__grid { grid-template-columns: 1fr 1fr; }
  .fn-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .fn-shell { width: min(100% - 14px, var(--fn-container)); }
  .fn-hero__media { aspect-ratio: 4 / 3; min-height: 220px; }
  .fn-hero__overlay { inset: 30% 0 0; padding: 18px; }
  .fn-hero h1 { font-size: 25px; }
  .fn-grid--three { grid-template-columns: 1fr; }
  .fn-products__grid { grid-template-columns: 1fr; }
  .fn-card__title,
  .fn-grid--lead .fn-card:first-child .fn-card__title { font-size: 18px; }
  .fn-article { padding: 17px; }
  .fn-article__title { font-size: 31px; }
  .fn-prose { font-size: 17px; }
  .fn-carousel__button { width: 38px; height: 38px; }
  .fn-search form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
