/*
Theme Name: Atelier
Theme URI: https://example.com/atelier
Author: Your Name
Description: A fashion and beauty magazine theme. A centred Bodoni masthead with an issue line, a full-bleed cover story, an asymmetric trends grid, a scrollable lookbook, "the edit" of shoppable pieces and "shop the look" lists on stories. Light and dark modes, self-hosted fonts and one-click demo content with original artwork.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atelier
Tags: blog, e-commerce, photography, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7ece9;
  --text: #000000;
  --text-2: #3a3436;
  --muted: #736a6d;
  --line: #e9e2e0;
  --accent: #6e1423;
  --accent-ink: #ffffff;
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Jost", "Futura", system-ui, sans-serif;
  --w-display: 500;
  --track-display: -0.015em;
  --lh-display: 1.06;
  --radius: 2px;
  --radius-ui: 999px;
  --sticky-top: 24px;
  --footer-bg: #140c0e;
  --footer-text: #f7ece9;
  --footer-muted: #bfaeb1;
  --footer-line: rgba(255,255,255,.14);
  --overlay: linear-gradient(180deg, rgba(10,4,6,0) 40%, rgba(10,4,6,.78) 100%);
  --accent-hover: #000000;
  --accent-hover-ink: #ffffff;
}
:root[data-theme="dark"] {
  --bg: #0e0b0c;
  --surface: #161213;
  --surface-2: #1f191a;
  --text: #f7f1ef;
  --text-2: #d8cfcc;
  --muted: #a3999b;
  --line: #2e2728;
  --accent: #e8a0ad;
  --accent-ink: #1a0a0e;
  --footer-bg: #080506;
  --accent-hover: #f7f1ef;
  --accent-hover-ink: #0e0b0c;
}

body { font-size: 17px; }
.card__title, .mini__title, .entry-title, .section-title, .widget-title { font-weight: 500; }
.card__title { font-size: 1.4rem; line-height: 1.14; }
.mini__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.16; }
.section-title { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.025em; }
.widget-title { font-family: var(--font-display); font-size: 1.6rem; }
.cat, .entry-cat { font-size: .84rem; font-weight: 500; letter-spacing: .02em; color: var(--accent); }
.meta { font-size: .86rem; }
.btn { font-weight: 500; letter-spacing: .02em; }

/* ---------- Centred masthead ---------- */
.site-header { position: relative; border-bottom: 0; }
.site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "left brand actions" "nav nav nav"; align-items: center; min-height: 0; padding-top: 24px; column-gap: 1rem; }
.site-header__social { grid-area: left; display: flex; flex-direction: column; gap: .45rem; }
.at-issue { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--text-2); }
.site-header__social .social a { width: 30px; height: 30px; border: 0; }
.site-brand { grid-area: brand; justify-self: center; }
.brand__name { font-family: var(--font-display); font-size: clamp(2.8rem, 5.6vw, 4.4rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.site-header__actions { grid-area: actions; justify-self: end; margin-left: 0; }
.primary-nav { grid-area: nav; margin-top: 20px; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); }
.primary-menu { justify-content: center; gap: .7rem; padding-block: .3rem; }
.primary-menu > li > a { font-size: .96rem; font-weight: 500; letter-spacing: .03em; }
.primary-menu > li > a:hover, .primary-menu .current-menu-item > a { background: none; color: var(--accent); }
@media (max-width: 1023px) {
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions"; padding-block: 14px; }
  .site-header__social { display: none; }
  .site-brand { justify-self: start; min-width: 0; }
  .brand__name { font-size: 2.3rem; }
}

/* ---------- Top row ---------- */
.at-top { padding-block: clamp(24px, 3vw, 40px) 0; }
.at-top .card .media { aspect-ratio: 4 / 5; }

/* ---------- Cover story ---------- */
.at-cover { position: relative; display: flex; align-items: flex-end; min-height: clamp(540px, 82vh, 820px); margin-block: clamp(36px, 5vw, 64px); overflow: hidden; color: #fff; }
.at-cover .at-cover__media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.at-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,4,6,.84) 0%, rgba(10,4,6,.6) 36%, rgba(10,4,6,.12) 66%, rgba(10,4,6,0) 84%), linear-gradient(180deg, rgba(10,4,6,0) 55%, rgba(10,4,6,.5) 100%); pointer-events: none; }
.at-cover__body { position: relative; z-index: 1; padding-block: clamp(32px, 5vw, 68px); }
.at-cover .cat { color: #f3d9d3; }
.at-cover__title { margin-top: .5rem; font-size: clamp(3rem, 7.6vw, 6.8rem); font-weight: 500; line-height: .94; letter-spacing: -.035em; max-width: 13ch; }
.at-cover__title a { color: #fff; }
.at-cover__dek { max-width: 44ch; margin: 1.1rem 0 1.5rem; font-family: var(--font-display); font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-style: italic; color: rgba(255,255,255,.9); }
.at-cover__btn { background: #fff; color: #000; }
.at-cover__btn:hover { background: var(--accent); color: #fff; }

/* ---------- Trends ---------- */
.at-trends__grid { display: grid; gap: 30px; }
@media (min-width: 1000px) { .at-trends__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr); } }
.at-trends__tall .card__title { font-size: clamp(1.9rem, 2.9vw, 2.5rem); line-height: 1.04; }
.at-trends__pair { display: grid; gap: 30px; align-content: start; }
.at-trends__list .mini { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.at-trends__list .mini:first-child { padding-top: 0; }

/* ---------- Lookbook ---------- */
.at-look { background: var(--surface-2); }
.at-look__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.4rem; }
.at-look__nav { display: flex; gap: .5rem; }
.at-look__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(20px, calc((100vw - 1240px) / 2)) 10px; scroll-padding-inline: max(20px, calc((100vw - 1240px) / 2)); scrollbar-width: thin; }
.at-look__item.card-overlay { flex: 0 0 clamp(230px, 24vw, 300px); aspect-ratio: 3 / 4; min-height: 0; border-radius: var(--radius); scroll-snap-align: start; }
.at-look__item .card__title { font-size: 1.35rem; line-height: 1.1; }
.at-look__item .cat { color: #f3d9d3; }

/* ---------- The edit ---------- */
.at-edit__grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .at-edit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .at-edit__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.at-product { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.at-product img { width: 112px; height: 112px; object-fit: cover; }
.at-product__item { margin: 0; font-size: 1.3rem; line-height: 1.12; }
.at-product__brand { margin: .2rem 0 0; font-size: .88rem; color: var(--muted); }
.at-product__price { margin: .3rem 0 .45rem; font-weight: 600; }
.at-product__links { display: flex; gap: 1rem; margin: 0; font-size: .9rem; }
.at-product__links a { text-decoration: underline; text-underline-offset: .22em; }
.at-product__shop { font-weight: 600; color: var(--accent); }

/* ---------- Listing, sidebar, single ---------- */
.at-listing .card .media { aspect-ratio: 4 / 5; }
.signup--sidebar { background: var(--surface-2); color: var(--text); }
.signup--sidebar .signup__title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; }
.signup--sidebar .signup__button { background: var(--accent); color: var(--accent-ink); }
.signup--sidebar input[type="email"] { background: var(--surface); border-color: var(--line); color: var(--text); }
.entry-title { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.03em; }
.entry-dek { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; }
.entry-content blockquote { border-left-color: var(--accent); font-family: var(--font-display); font-style: italic; font-size: 1.7rem; font-weight: 400; line-height: 1.25; }
.at-shop { margin-top: 2.6rem; padding: 1.4rem 1.5rem; background: var(--surface-2); }
.entry-content .at-shop__title { margin: 0 0 .8rem; font-size: 1.9rem; }
.at-shop ul { list-style: none; margin: 0; padding: 0 !important; }
.entry-content .at-shop li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "item price link" "brand price link"; column-gap: 1rem; align-items: center; margin: 0 !important; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.at-shop__item { grid-area: item; font-family: var(--font-display); font-size: 1.2rem; }
.at-shop__brand { grid-area: brand; font-size: .88rem; color: var(--muted); }
.at-shop__price { grid-area: price; font-weight: 600; }
.at-shop__link { grid-area: link; padding: .45rem 1rem; }
.at-shop .at-shop__note { margin: .9rem 0 0; font-size: .85rem; color: var(--muted); }
.site-footer .brand__name { font-size: 2.4rem; color: var(--footer-text); }
.site-footer .signup { background: rgba(255,255,255,.05); color: var(--footer-text); padding: 1.4rem; }
.site-footer .signup__title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.site-footer .signup__button { background: #f7ece9; color: #140c0e; }
