@import url('../../../css/variable.css');

body[data-page="post"] {
  background: var(--bg-white);
}

.post-container {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(var(--nav-height) + 48px) 0 80px;
}

.post-header {
  margin-bottom: 40px;
  display: grid;
}

.post-breadcrumb {
  margin-bottom: 26px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-syne);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 1;
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.breadcrumb-link:hover {
  opacity: 0.6;
  transform: translateX(-2px);
}

.breadcrumb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
}

.breadcrumb-text {
  line-height: 1;
}

.post-title {
  margin: 0;
  display: grid;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  color: var(--text-primary);
  max-width: 16ch;
}

.post-title-line {
  display: block;
}

.post-title-subline {
  max-width: 16ch;
  padding-top: 4px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.08;
  color: rgba(17, 17, 17, 0.8);
  white-space: nowrap;
}

.post-title-block {
  display: grid;
  gap: 16px;
  margin-bottom: 0;
  position: relative;
  padding-left: 18px;
}

.post-title-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 2px;
  height: calc(100% - 10px);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.12));
}

.post-kicker {
  margin: 0;
  font-family: var(--font-syne);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.post-signature {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.post-signature-line {
  width: 42px;
  height: 1px;
  background: rgba(17, 17, 17, 0.18);
}

.post-signature-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(17, 17, 17, 0.78);
}

.post-header-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-top: 12px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: nowrap;
  padding: 0;
  margin-top: 0;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.post-meta-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

.post-date {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.62);
}

.post-date-signature {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  white-space: nowrap;
}

.post-date-line {
  width: 32px;
  height: 1px;
  background: rgba(17, 17, 17, 0.14);
}

.post-intro-panel {
  margin: 0 0 42px;
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ece7e1;
}

.post-intro-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.03));
}

.post-intro-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: grayscale(100%);
  transition: filter var(--transition-medium), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.post-intro-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.02) 0%, rgba(17, 17, 17, 0.1) 52%, rgba(17, 17, 17, 0.52) 100%);
  pointer-events: none;
}

.post-intro-panel:hover .post-intro-image,
.post-intro-panel:focus-within .post-intro-image {
  filter: grayscale(0%);
  transform: scale(1.03) translateX(1%);
}

.post-intro-copy {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  width: min(380px, calc(100% - 56px));
  min-height: auto;
  padding: 24px 26px 26px;
  background: rgba(17, 17, 17, 0.72);
  /* border: 1px solid rgba(255, 255, 255, 0.18); */
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

.post-intro-panel:hover .post-intro-copy,
.post-intro-panel:focus-within .post-intro-copy {
  transform: translateY(0);
  opacity: 1;
}

.post-intro-kicker {
  margin: 0;
  font-family: var(--font-syne);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  padding-left: 50px;
  position: relative;
}

.post-intro-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%);
}

.post-intro-title {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--text-white);
  /* max-width: 9.5ch; */
  max-width: 15ch;
  font-style: normal;
  font-weight: 550;
  text-transform: none;
  text-wrap: balance;
  line-height: 1.12;
  text-wrap: pretty;
}

.post-intro-text {
  margin: 4px 0 0;
  /* max-width: 20ch; */
  max-width: 30ch;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  /* font-size: 1rem; */
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.post-content {
  display: grid;
  gap: 20px;
}

.post-opening-note {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin: 4px 0 10px;
  padding: 4px 0 8px 30px;
}

.post-opening-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.72), rgba(17, 17, 17, 0.08));
}

.post-opening-note::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(17, 17, 17, 0.42);
  border-radius: 999px;
  background: var(--bg-white);
}

.post-opening-label {
  margin: 0;
  font-family: var(--font-syne);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.52);
}

.post-content p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.post-lead {
  max-width: 30ch;
  margin-bottom: 2px;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.14;
  color: var(--text-primary);
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}

.post-body-intro {
  max-width: 70ch;
  font-size: 1.02rem;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}

.post-content h2 {
  margin: 22px 0 0;
  font-family: var(--font-syne);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--text-primary);
}

.post-quote {
  position: relative;
  max-width: 720px;
  margin: 10px 0 8px;
  padding: 22px 26px 24px 58px;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.05) 0%, rgba(17, 17, 17, 0.024) 48%, rgba(17, 17, 17, 0) 100%);
}

.post-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.72), rgba(17, 17, 17, 0.08));
}

.post-quote::after {
  content: "\201C";
  position: absolute;
  left: 22px;
  top: 14px;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(17, 17, 17, 0.22);
}

.post-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.16rem, 2vw, 1.38rem);
  line-height: 1.5;
  color: var(--text-primary);
  text-wrap: balance;
}

.post-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 6px 0 10px;
}

.post-note-card {
  padding: 18px 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.015);
}

.post-note-label {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-syne);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.post-note-card p {
  font-size: 0.96rem;
  line-height: 1.75;
}

#sportHeading {
  margin-top: 28px;
  line-height: 1.35;
}

#sportText1,
#sportText2,
#sportText3,
#sportText4 {
  position: relative;
  max-width: 760px;
  padding: 18px 20px 19px 58px;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.045) 0%, rgba(17, 17, 17, 0.018) 58%, rgba(17, 17, 17, 0) 100%);
}

#sportText1::after,
#sportText2::after,
#sportText3::after,
#sportText4::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.38), rgba(17, 17, 17, 0.08));
}

#sportText1::before,
#sportText2::before,
#sportText3::before,
#sportText4::before {
  position: absolute;
  left: 18px;
  top: 19px;
  font-family: var(--font-syne);
  font-size: 0.82rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: rgba(17, 17, 17, 0.62);
  font-weight: 600;
}

#sportText1::before {
  content: "01";
}

#sportText2::before {
  content: "02";
}

#sportText3::before {
  content: "03";
}

#sportText4 {
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.08) 0%, rgba(17, 17, 17, 0.028) 58%, rgba(17, 17, 17, 0) 100%);
  color: var(--text-primary);
}

#sportText4::after {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.82), rgba(17, 17, 17, 0.18));
}

#sportText4::before {
  content: "KEY";
  color: rgba(17, 17, 17, 0.68);
}

#builtInMotionHeading {
  margin-top: 34px;
}

#builtInMotionText {
  max-width: 65ch;
  font-size: 1.02rem;
  line-height: 1.86;
  color: var(--text-primary);
  /* white-space: pre-line; */
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}

#closingText1 {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.34rem, 2.3vw, 1.72rem);
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 36ch;
  text-wrap: pretty;
}

#closingText2 {
  margin-top: 8px;
  max-width: 64ch;
  font-size: 0.96rem;
  line-height: 1.86;
  color: rgba(17, 17, 17, 0.72);
  text-wrap: pretty;
}

.post-footer {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.post-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.06);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.back-to-top {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--bg-white);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: background var(--transition-medium), color var(--transition-medium), opacity var(--transition-medium), transform var(--transition-medium);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--bg-black);
  color: var(--text-white);
}

.post-coming-soon {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin-top: 8px;
}

.post-coming-soon-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .post-container {
    width: min(100% - 24px, 920px);
    padding-top: 32px;
  }

  .post-title {
    font-size: 2rem;
    max-width: none;
  }

  .post-title-subline {
    max-width: none;
    font-size: 1.2rem;
  }

  .post-title-block {
    margin-bottom: 18px;
    padding-left: 14px;
  }

  .post-header-details {
    gap: 14px;
    margin-top: 0;
  }

  .post-signature {
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .post-signature-line {
    width: 24px;
    flex: 0 0 auto;
  }

  .post-date-signature {
    gap: 8px;
  }

  .post-date-line {
    width: 18px;
  }

  .post-lead {
    max-width: 30ch;
    font-size: 1.7rem;
    text-wrap: pretty;
  }

  .post-meta {
    flex: 0 0 auto;
  }

  .post-meta-item {
    justify-content: flex-end;
    text-align: right;
  }

  .post-signature-name,
  .post-date {
    font-size: 0.78rem;
  }

  .post-opening-note {
    gap: 12px;
    margin-top: 0;
    padding-left: 22px;
  }

  .post-body-intro {
    max-width: 100%;
  }

  .post-opening-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .post-intro-panel {
    position: relative;
    min-height: 360px;
    overflow: hidden;
  }

  .post-intro-image-wrap {
    position: absolute;
    inset: 0;
    min-height: 100%;
    pointer-events: none;
  }

  .post-intro-image,
  .post-intro-panel:hover .post-intro-image,
  .post-intro-panel:focus-within .post-intro-image {
    filter: grayscale(0%);
    transform: none;
  }

  .post-intro-copy {
    position: absolute;
    left: 16px;
    right: auto;
    bottom: 16px;
    z-index: 2;
    width: min(60vw, 250px);
    min-height: auto;
    margin-left: 0;
    padding: 15px 15px 16px;
    background: rgba(17, 17, 17, 0.72);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    transform: none;
    opacity: 1;
  }

  .post-intro-panel::after {
    display: block;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.02) 0%, rgba(17, 17, 17, 0.16) 46%, rgba(17, 17, 17, 0.62) 100%);
  }

  .post-intro-kicker {
    color: rgba(255, 255, 255, 0.68);
    padding-left: 44px;
  }

  .post-intro-kicker::before {
    width: 30px;
    background: rgba(255, 255, 255, 0.32);
  }

  .post-intro-title {
    color: var(--text-white);
    font-size: clamp(1.18rem, 5.8vw, 1.5rem);
    /* max-width: 9.5ch; */
    max-width: 20ch;
    line-height: 1.12;
    /* text-wrap: pretty; */
  }

  .post-intro-text {
    color: rgba(255, 255, 255, 0.78);
    max-width: 20ch;
  }

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

  #sportHeading {
    font-size: 1.06rem;
  }

  #sportText1,
  #sportText2,
  #sportText3,
  #sportText4 {
    max-width: none;
    padding: 16px 16px 17px 50px;
    font-size: 0.96rem;
    line-height: 1.72;
  }

  #sportText1::before,
  #sportText2::before,
  #sportText3::before,
  #sportText4::before {
    left: 16px;
    top: 18px;
    font-size: 0.76rem;
  }

  #builtInMotionHeading {
    margin-top: 28px;
  }

  #builtInMotionText {
    font-size: 1rem;
    line-height: 1.82;
    max-width: 100%;
  }

  #closingText1 {
    margin-top: 10px;
    font-size: 1.38rem;
    max-width: 100%;
    text-wrap: balance;
  }

  #closingText2 {
    margin-top: 5px;
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.82;
    text-wrap: balance;
  }

  .post-footer {
    align-items: flex-start;
  }

  .back-to-top {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 86px;
    z-index: 998;
  }

  .back-to-top:hover,
  .back-to-top:focus,
  .back-to-top:active {
    background: var(--bg-white);
    color: var(--text-primary);
  }
}

@media (max-width: 420px) {
  .post-intro-copy {
    width: min(55vw, 250px);
  }
}

@media (max-width: 390px) {
  .post-intro-copy {
    width: min(55vw, 250px);
  }

  .post-intro-title {
    /* font-size: clamp(1.18rem, 5.8vw, 2.5rem); */
    max-width: 30ch;
    font-size: 1.4rem;
  }

  .post-intro-text {
    font-size: 0.85rem;
  }

}

@media (max-width: 360px) {
  .post-intro-copy {
    width: min(55vw, 200px);
  }

  .post-intro-text {
    font-size: 0.80rem;
    max-width: 30ch;
  }

  .post-lead {
    max-width: 34ch;
  }

}

@media (max-width: 320px) {
  .post-intro-copy {
    width: min(60vw, 250px);
  }

  .post-intro-text {
    font-size: 0.76rem;
    max-width: 30ch;
  }

  .post-intro-title {
    font-size: clamp(1.18rem, 5.8vw, 1.2rem);
    max-width: 15ch;
  }

}

.placeholder-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--bg-white);
}

.placeholder-card {
  width: min(720px, 100%);
  display: grid;
  gap: 16px;
  padding: 34px 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.005));
}

.placeholder-kicker {
  margin: 0;
  font-family: var(--font-syne);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.5);
}

.placeholder-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.3vw, 2.35rem);
  line-height: 1.12;
  color: var(--text-primary);
}

.placeholder-copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 58ch;
}

.placeholder-link {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-syne);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
}

.placeholder-link:hover {
  opacity: 0.72;
}

@media (max-width: 768px) {
  .placeholder-card {
    padding: 24px 20px;
  }
}


