/*
Theme Name: YOUNGTIMER Editorial
Theme URI: https://youngtimer.co.kr
Author: YOUNGTIMER
Description: Image-led editorial theme for the YOUNGTIMER automotive, space, design and culture publication.
Version: 1.4.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: youngtimer
*/

@import url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.3/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css");
@import url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/variable/woff2/SUIT-Variable.css");

:root {
  --yt-ink: #111313;
  --yt-paper: #f7f6f2;
  --yt-white: #fff;
  --yt-muted: #6d706d;
  --yt-line: #d4d1c9;
  --yt-signal: #f4511e;
  --yt-max: 1480px;
  --yt-copy: 760px;
  --yt-wide: 1120px;
  --yt-display: "SUIT Variable", "SUIT", "Wanted Sans Variable", "Wanted Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--yt-ink);
  background: var(--yt-paper);
  font-family: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.008em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--yt-signal); }
img { display: block; max-width: 100%; height: auto; }

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

.yt-shell {
  width: min(var(--yt-max), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: color-mix(in srgb, var(--yt-paper) 94%, transparent);
  border-bottom: 1px solid var(--yt-ink);
  backdrop-filter: blur(12px);
}

.admin-bar .site-header { top: 32px; }

.site-header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.site-branding { display: flex; align-items: baseline; gap: 16px; }

.site-title {
  font-family: var(--yt-display);
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.site-description {
  margin: 0;
  color: var(--yt-muted);
  font-size: 0.78rem;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.site-main { min-height: 60vh; }

.yt-kicker,
.post-meta,
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.yt-kicker { color: var(--yt-signal); }

.yt-home-intro {
  padding: 34px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--yt-line);
}

.yt-home-intro p { margin: 0; color: var(--yt-muted); }
.yt-home-intro .issue { color: var(--yt-ink); font-size: 0.74rem; letter-spacing: 0.08em; }

.yt-hero {
  position: relative;
  min-height: min(780px, calc(100vh - 138px));
  overflow: hidden;
  color: var(--yt-white);
  background: var(--yt-ink);
  border-bottom: 1px solid var(--yt-ink);
}

.yt-hero__media {
  position: absolute;
  inset: 0;
  background: #d7d4cd;
}

.yt-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 7, 7, .76) 0%, rgba(5, 7, 7, .25) 55%, rgba(5, 7, 7, .08) 100%), linear-gradient(0deg, rgba(5, 7, 7, .48), transparent 55%);
}

.yt-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.yt-hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(var(--yt-max), calc(100% - 64px));
  min-height: inherit;
  margin-inline: auto;
  padding: clamp(42px, 6vw, 92px) 0;
}

.yt-hero__title {
  font-family: var(--yt-display);
  max-width: 980px;
  margin: 16px 0 20px;
  font-size: clamp(3.15rem, 6.8vw, 7.3rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.yt-hero__excerpt { max-width: 680px; margin: 0; color: rgba(255,255,255,.84); font-size: 1rem; line-height: 1.72; }
.yt-hero .yt-kicker { color: #ff6b39; }
.yt-read { margin-top: 24px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }

.yt-placeholder {
  height: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
  color: #6f716f;
  background:
    linear-gradient(90deg, transparent 49.8%, #c7c4bc 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, #c7c4bc 50%, transparent 50.2%),
    #dcd9d1;
  background-size: 80px 80px;
}

.yt-placeholder span { padding: 10px 14px; background: var(--yt-paper); border: 1px solid var(--yt-ink); font-size: .72rem; letter-spacing: .1em; }

.yt-section { padding: 72px 0 96px; }

.yt-section__head,
.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--yt-ink);
}

.yt-section__head h2,
.archive-title { margin: 0; font-family: var(--yt-display); font-size: clamp(2rem, 4vw, 4rem); font-weight: 650; line-height: 1.05; letter-spacing: -0.035em; }

.yt-section__head .eyebrow { display: block; margin-bottom: 10px; color: var(--yt-muted); }

.yt-filter { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.yt-filter a { padding: 8px 12px; border: 1px solid var(--yt-line); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.yt-filter a:hover,
.yt-filter .is-active { color: var(--yt-white); background: var(--yt-ink); border-color: var(--yt-ink); }

.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 24px;
}

.yt-card { border-top: 1px solid var(--yt-ink); padding-top: 12px; }
.yt-card__media { aspect-ratio: 4 / 3; margin-bottom: 18px; overflow: hidden; background: #d7d4cd; }
.yt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.yt-card:hover .yt-card__media img { transform: scale(1.025); }
.yt-card__title { margin: 10px 0; font-family: var(--yt-display); font-size: clamp(1.3rem, 2.1vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.025em; text-wrap: balance; }
.yt-card__excerpt { margin: 0; color: var(--yt-muted); font-size: .93rem; }

.single-post .site-main { padding-bottom: 120px; }

.entry-header {
  width: min(var(--yt-wide), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 128px) 0 46px;
  border-bottom: 1px solid var(--yt-ink);
}

.entry-title {
  font-family: var(--yt-display);
  max-width: 1050px;
  margin: 18px 0 30px;
  font-size: clamp(2.7rem, 7.2vw, 7.2rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.entry-dek { max-width: 760px; margin: 0; color: #555854; font-size: clamp(1.03rem, 1.6vw, 1.25rem); line-height: 1.68; }

.entry-featured {
  width: min(1380px, calc(100% - 40px));
  margin: 38px auto 74px;
}

.entry-featured img { width: 100%; max-height: 82vh; object-fit: cover; }

.entry-content {
  width: min(var(--yt-copy), calc(100% - 40px));
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.82;
}

.entry-content p { margin: 0 0 1.15em; }
.entry-content h2 { margin: 3.1em 0 .85em; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.25; letter-spacing: -.045em; }
.entry-content h3 { margin: 2.4em 0 .75em; font-size: 1.35rem; letter-spacing: -.03em; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.entry-content blockquote { margin: 2.5em 0; padding: 1.2em 0 1.2em 24px; border-left: 4px solid var(--yt-signal); font-size: 1.2em; }

.entry-content .alignwide,
.entry-content .yt-figure {
  width: min(var(--yt-wide), calc(100vw - 40px));
  max-width: none;
  margin: 3.2em 0;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull,
.entry-content .yt-figure--hero {
  width: min(1380px, calc(100vw - 40px));
  max-width: none;
  margin: 3.5em 0;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content figure img { width: 100%; }
.entry-content figcaption { max-width: var(--yt-copy); margin: .8em auto 0; color: var(--yt-muted); font-size: 13px; line-height: 1.55; }

.archive-header { padding-top: 72px; }
.archive-description { max-width: 620px; color: var(--yt-muted); }
.pagination { margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--yt-line); }
.nav-links { display: flex; gap: 16px; }

.site-footer {
  color: #efede6;
  background: var(--yt-ink);
  padding: 58px 0 34px;
}

.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.site-footer__brand { margin: 0 0 14px; font-family: var(--yt-display); font-size: clamp(2rem, 5vw, 5.5rem); font-weight: 650; line-height: .95; letter-spacing: -.035em; }
.site-footer p { color: #aaada8; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; align-content: start; }
.site-footer__nav a { padding: 8px 0; border-bottom: 1px solid #343736; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.site-footer__bottom { margin-top: 64px; padding-top: 18px; border-top: 1px solid #343736; display: flex; justify-content: space-between; color: #838783; font-size: .75rem; }

@media (max-width: 980px) {
  .site-description { display: none; }
  .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .admin-bar .site-header { top: 46px; }
  .yt-shell { width: min(100% - 32px, var(--yt-max)); }
  .site-header__inner { min-height: 68px; grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  .primary-menu ul, .primary-menu { gap: 14px; overflow-x: auto; padding-bottom: 2px; }
  .primary-menu a { font-size: .68rem; white-space: nowrap; }
  .yt-home-intro { align-items: start; flex-direction: column; }
  .yt-home-intro { padding-top: 22px; }
  .yt-home-intro p:first-child { max-width: 250px; }
  .yt-hero { min-height: 72vh; }
  .yt-hero__media, .yt-placeholder { min-height: 100%; }
  .yt-hero__media::after { background: linear-gradient(0deg, rgba(5, 7, 7, .82) 0%, rgba(5, 7, 7, .25) 72%, rgba(5, 7, 7, .06) 100%); }
  .yt-hero__body { width: calc(100% - 32px); padding: 34px 0 42px; }
  .yt-hero__title { font-size: clamp(2.8rem, 14vw, 4.7rem); line-height: 1; }
  .yt-section { padding: 52px 0 72px; }
  .yt-section__head { align-items: start; flex-direction: column; }
  .yt-filter { justify-content: flex-start; }
  .yt-grid { grid-template-columns: 1fr; gap: 40px; }
  .entry-header { padding-top: 52px; }
  .entry-title { font-size: clamp(2.55rem, 14vw, 4.6rem); }
  .entry-featured { margin-bottom: 46px; }
  .entry-content { font-size: 17px; line-height: 1.78; }
  .entry-content .alignwide,
  .entry-content .alignfull,
  .entry-content .yt-figure,
  .entry-content .yt-figure--hero { width: calc(100vw - 24px); }
  .entry-content figcaption { padding-inline: 8px; font-size: 12.5px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 8px; }
}
