/*
Theme Name: Vapor Drawings
Theme URI: https://example.com/
Author: Vapor Drawings
Description: A full-screen editorial theme for music, art, interviews, reviews, photos, and culture.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: vapor-drawings
*/

:root {
  --page-padding-x: 8.98vw;
  --hero-top: 19.14vh;
  --hero-width: 82.03vw;
  --hero-height: 72.73vh;
  --text: #111312;
  --muted: rgba(17, 19, 18, .58);
  --white: #f8faf8;
  --paper: rgba(250, 250, 247, .92);
  --hairline: rgba(17, 19, 18, .17);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --vapor-background-image: none;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  background: #a9f3e4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  background-color: #a9f3e4;
  background-image: var(--vapor-background-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.home {
  overflow: hidden;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

::selection {
  color: #fff;
  background: #111;
}

.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;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 150px;
  pointer-events: none;
}

.home .site-header {
  position: fixed;
}

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

.site-logo {
  position: absolute;
  top: 5.15vh;
  left: 3.62vw;
  width: clamp(178px, 15.3vw, 314px);
  pointer-events: auto;
}

.site-logo img,
.site-logo .custom-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left top;
}

.site-logo .custom-logo-link,
.site-logo > a {
  display: block;
  width: 100%;
}

.header-message {
  position: absolute;
  top: 7.05vh;
  left: 35.1vw;
  right: 8vw;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55em;
  align-items: baseline;
  font-size: clamp(17px, 1.53vw, 31px);
  line-height: 1.25;
  letter-spacing: .01em;
  white-space: nowrap;
  pointer-events: auto;
}

.site-index-link {
  position: absolute;
  top: 58px;
  right: 4.1vw;
  padding: 8px 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: auto;
}

.site-index-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.site-index-link:hover::after,
.site-index-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 2px;
  background: #111;
  pointer-events: none;
}

.admin-bar .reading-progress {
  top: 32px;
}

/* Front-page slider */
.hero-area {
  position: relative;
  width: 100%;
  min-height: 100svh;
}

.slider-stage {
  position: absolute;
  top: var(--hero-top);
  left: var(--page-padding-x);
  width: var(--hero-width);
  height: var(--hero-height);
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(14, 24, 22, .18);
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 1s var(--ease);
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.012);
  transition: transform 1.25s var(--ease), filter .65s ease;
}

.slide-link:hover img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.02);
}

.image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 14, 11, .22), transparent 42%),
    linear-gradient(0deg, rgba(3, 13, 11, .48), transparent 35%);
  pointer-events: none;
}

.slide-copy {
  position: absolute;
  left: 2.36vw;
  bottom: 3.6vh;
  display: flex;
  flex-direction: column;
  gap: .38em;
  max-width: calc(100% - 5vw);
  color: var(--white);
  font-size: clamp(20px, 1.58vw, 32px);
  line-height: 1.08;
  letter-spacing: .006em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .18);
}

.slide-category,
.slide-title {
  display: block;
}

.slider-next,
.slider-prev {
  position: absolute;
  top: 50%;
  width: clamp(28px, 2.6vw, 54px);
  height: clamp(78px, 12.8vh, 164px);
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}

.slider-next {
  right: -6.25vw;
}

.slider-prev {
  left: -6.25vw;
  opacity: 0;
  pointer-events: none;
}

.slider-next:hover {
  transform: translateY(-50%) translateX(5px);
}

.slider-next:focus-visible,
.slider-prev:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 8px;
}

.slider-next svg,
.slider-prev svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.slider-next path,
.slider-prev path {
  fill: none;
  stroke: rgba(26, 31, 30, .8);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.slider-status {
  position: absolute;
  right: 0;
  bottom: -26px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .12em;
}

.status-rule {
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

/* Editorial article */
.article-shell,
.content-shell {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(155px, 17vh, 205px) 0 96px;
}

.article-sheet,
.content-panel {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 8px;
  box-shadow: 0 18px 80px rgba(36, 53, 46, .08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.article-masthead {
  display: grid;
  grid-template-columns: minmax(135px, 185px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 74px);
  align-items: start;
  padding: clamp(42px, 5vw, 76px) clamp(34px, 6vw, 92px) clamp(36px, 5vw, 70px);
}

.article-kicker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: .4em;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-kicker a {
  width: fit-content;
  border-bottom: 1px solid currentColor;
}

.article-title-wrap {
  min-width: 0;
}

.entry-title {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(50px, 7vw, 112px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.article-deck {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.62;
}

.article-feature {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 160px;
  background: rgba(14, 18, 17, .08);
}

.article-feature img,
.entry-featured-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82svh;
  margin: 0;
  object-fit: contain;
}

.article-content-grid {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 760px) minmax(80px, 1fr);
  gap: clamp(30px, 5vw, 86px);
  align-items: start;
  padding: clamp(55px, 7vw, 104px) clamp(34px, 6vw, 92px) clamp(64px, 8vw, 116px);
}

.article-rail {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
}

.article-rail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-rail-label {
  color: var(--text);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.entry-content {
  min-width: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: clamp(17.5px, 1.25vw, 20px);
  line-height: 1.95;
  letter-spacing: .008em;
  overflow-wrap: break-word;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure,
.entry-content table,
.entry-content .wp-block-embed {
  margin-top: 0;
  margin-bottom: 1.75em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.entry-content h2 {
  margin: 2.35em 0 .8em;
  font-size: clamp(31px, 3.3vw, 54px);
}

.entry-content h3 {
  margin: 2.1em 0 .75em;
  font-size: clamp(24px, 2.3vw, 36px);
}

.entry-content h4 {
  margin: 2em 0 .65em;
  font-size: 21px;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

.entry-content li + li {
  margin-top: .55em;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
  margin-right: 0;
  margin-left: 0;
  padding: 1.25em 0 1.25em clamp(20px, 3vw, 42px);
  border-left: 1px solid currentColor;
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.28;
  letter-spacing: -.025em;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content cite {
  display: block;
  margin-top: 1em;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  letter-spacing: .08em;
}

.entry-content img {
  display: block;
  height: auto;
  border-radius: 3px;
}

.entry-content figcaption,
.wp-caption-text {
  margin-top: 9px;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.entry-content .alignwide {
  width: min(1040px, calc(100vw - 110px));
  max-width: none;
  margin-left: clamp(-140px, -8vw, -70px);
}

.entry-content .alignfull {
  width: min(1220px, calc(100vw - 72px));
  max-width: none;
  margin-left: clamp(-230px, -14vw, -115px);
}

.entry-content iframe,
.entry-content video {
  max-width: 100%;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.article-spacer {
  min-width: 0;
}

.article-footer {
  padding: 0 clamp(34px, 6vw, 92px) clamp(46px, 6vw, 88px);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}

.article-tags a {
  padding: 7px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .06em;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 26px 28px 30px;
}

.post-nav-link + .post-nav-link {
  border-left: 1px solid var(--hairline);
}

.post-nav-link.is-next {
  text-align: right;
  align-items: flex-end;
}

.post-nav-label {
  margin-bottom: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.post-nav-title {
  max-width: 480px;
  margin-top: 24px;
  font-size: clamp(21px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.article-endmark {
  margin-top: 34px;
  font-size: 11px;
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
}

/* Pages and archive */
.content-panel {
  padding: clamp(34px, 6vw, 92px);
}

.content-panel .entry-header {
  margin-bottom: 42px;
}

.content-panel .entry-title {
  font-size: clamp(44px, 7vw, 100px);
}

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

.post-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 7px;
  background: rgba(250, 250, 247, .88);
  box-shadow: 0 12px 42px rgba(36, 53, 46, .07);
  backdrop-filter: blur(16px);
}

.post-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, .1);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.post-card:hover .post-card-image img {
  transform: scale(1.035);
}

.post-card-copy {
  padding: 24px;
}

.entry-category,
.entry-meta {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.post-card-title {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -.03em;
}

.pagination {
  margin-top: 32px;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
}

.page-numbers.current {
  color: #fff;
  background: #111;
}

@media (max-width: 1080px) {
  .article-content-grid {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .article-spacer {
    display: none;
  }

  .entry-content .alignwide,
  .entry-content .alignfull {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 980px) {
  :root {
    --page-padding-x: 18px;
    --hero-top: 170px;
    --hero-width: calc(100vw - 36px);
    --hero-height: calc(100svh - 208px);
  }

  body.home {
    overflow: auto;
  }

  .site-logo {
    top: 24px;
    left: 22px;
    width: 190px;
  }

  .header-message {
    top: 112px;
    left: 22px;
    right: 22px;
    display: block;
    font-size: 16px;
    line-height: 1.45;
    white-space: normal;
  }

  .header-message time {
    margin-right: .55em;
  }

  .slider {
    border-radius: 4px;
  }

  .slide-copy {
    left: 22px;
    bottom: 24px;
    font-size: clamp(22px, 5.5vw, 32px);
  }

  .slider-next {
    right: 18px;
    width: 28px;
    height: 84px;
    filter: invert(1);
    mix-blend-mode: difference;
  }

  .slider-status {
    right: 2px;
    bottom: -23px;
    display: flex;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .article-masthead {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .reading-progress {
    top: 46px;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .home .site-header {
    position: absolute;
  }

  .site-header {
    height: 116px;
  }

  .site-logo {
    top: 18px;
    left: 16px;
    width: 174px;
  }

  .site-index-link {
    top: 32px;
    right: 17px;
    font-size: 10px;
  }

  .header-message {
    top: 92px;
    left: 16px;
    right: 16px;
    font-size: 13px;
    line-height: 1.45;
  }

  .slider-stage {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 24px);
    height: auto;
    margin: 148px 12px 38px;
  }

  .slider {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .slide-copy {
    left: 18px;
    bottom: 20px;
    max-width: calc(100% - 66px);
    gap: .42em;
    font-size: clamp(20px, 6vw, 27px);
    line-height: 1.12;
  }

  .slide-category {
    font-size: .7em;
  }

  .slider-next {
    right: 13px;
    width: 24px;
    height: 72px;
  }

  .slider-status {
    right: 1px;
  }

  .article-shell,
  .content-shell {
    width: calc(100% - 16px);
    padding: 112px 0 48px;
  }

  .article-sheet,
  .content-panel,
  .post-card {
    border-radius: 5px;
  }

  .article-masthead {
    display: block;
    padding: 28px 20px 30px;
  }

  .article-kicker {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 25px;
    padding-top: 0;
    font-size: 10px;
  }

  .entry-title {
    font-size: clamp(41px, 12.2vw, 62px);
    line-height: .97;
    letter-spacing: -.04em;
  }

  .article-deck {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.62;
  }

  .article-feature img,
  .entry-featured-image {
    max-height: none;
  }

  .article-content-grid {
    display: block;
    padding: 38px 20px 58px;
  }

  .article-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin-bottom: 42px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--hairline);
    font-size: 11px;
  }

  .entry-content {
    font-size: 17px;
    line-height: 1.93;
  }

  .entry-content h2 {
    font-size: 32px;
  }

  .entry-content h3 {
    font-size: 25px;
  }

  .entry-content blockquote,
  .entry-content .wp-block-quote {
    padding-left: 18px;
    font-size: 26px;
  }

  .entry-content .alignwide,
  .entry-content .alignfull {
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .entry-content .alignwide img,
  .entry-content .alignfull img {
    border-radius: 0;
  }

  .article-footer {
    padding: 0 20px 42px;
  }

  .article-tags {
    margin-bottom: 32px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-nav-link {
    min-height: 124px;
    padding: 22px 0;
  }

  .post-nav-link + .post-nav-link {
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }

  .post-nav-link.is-next {
    text-align: left;
    align-items: flex-start;
  }

  .post-nav-title {
    margin-top: 20px;
    font-size: 24px;
  }

  .content-panel {
    padding: 30px 20px 44px;
  }

  .content-panel .entry-title {
    font-size: 44px;
  }

  .post-card-copy {
    padding: 20px;
  }

  .post-card-title {
    font-size: 30px;
  }
}

@media (max-width: 390px) {
  .site-logo {
    width: 160px;
  }

  .header-message {
    top: 88px;
    font-size: 12px;
  }

  .slider-stage {
    margin-top: 140px;
  }

  .article-shell,
  .content-shell {
    padding-top: 105px;
  }
}

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