/* ===== RESET ===== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fdfdfb;
  color: #111111;
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

:root {
  --paper:#fdfdfb;
  --white:#ffffff;
  --black:#111111;
  --muted:#666666;
  --border:#e6e6e2;
  --blue:#2457d6;
  --yellow:#f2c744;
  --content-width:1180px;
  --side-space:48px;
  --ink:#111111;
  --soft:#666666;
  --rule:#e6e6e2;
  --cedar:#2457d6;
  --gold:#f2c744;
}

.wrap {
  width: min(var(--content-width), calc(100% - (var(--side-space) * 2)));
  margin-left: auto;
  margin-right: auto;
}


/* ===== NAVBAR ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 20px;
  pointer-events: none;
}

.navbar {
  width: min(var(--content-width), calc(100% - (var(--side-space) * 2)));
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 10px 8px 22px;
  display: flex;
  align-items: center;
  background: rgba(253,253,251,.9);
  border: 1px solid rgba(17,17,17,.09);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: box-shadow .3s ease;
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.055em;
  transition: opacity .25s ease, transform .25s ease;
}

.brand:hover {
  opacity: .6;
  transform: translateY(-1px);
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 29px;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: #242424;
  transition: color .25s ease, opacity .25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: #111;
  transition: right .25s ease;
}

.nav-link:hover {
  color: #000;
}

.nav-link:hover::after {
  right: 0;
}

.submit-nav {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 48px;
  padding: 0 20px;
  background: var(--yellow);
  color: #111;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease;
}

.submit-nav:hover {
  background: var(--yellow);
  color: #111;
  border-color: #111;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,.08);
}

.submit-nav:hover {
  background: var(--yellow);
  color: #111;
  border-color: #111;
}


/* ===== MAIN ===== */

main {
  padding-top: 145px;
}


/* ===== FEATURED ===== */

.featured {
  padding-bottom: 105px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  width: 100%;
  min-height: 200px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 7px 28px rgba(0,0,0,.032);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: #d8d8d4;
  box-shadow: 0 17px 40px rgba(0,0,0,.065);
}

.featured-image {
  position: relative;
  min-width: 0;
  min-height: 460px;
  overflow: hidden;
  background: #e9e9e5;
}

.featured-image .cover-img,
.featured-image .image-placeholder {
  position: absolute;
  inset: 0;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.image-placeholder span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
}

.featured-placeholder {
  background: var(--blue);
  color: #fff;
}

.featured-placeholder span {
  font-size: 14px;
  letter-spacing: .12em;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 46px 40px;
}

.featured-content-top h1 {
  max-width: 580px;
  margin: 0 0 23px;
  font-size: clamp(43px, 4.5vw, 66px);
  line-height: .96;
  font-weight: 600;
  letter-spacing: -.065em;
}

.featured-content-top p {
  max-width: 460px;
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: #5c5c5c;
}


/* ===== ARTICLE INFO ===== */

.article-info {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
}

.dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #999;
}


/* ===== LATEST ===== */

.latest {
  padding-bottom: 105px;
}

.latest-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.latest-title {
  margin: 0;
  font-size: 50px;
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.065em;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #111;
  transition: opacity .25s ease, transform .25s ease;
}

.view-all span {
  transition: transform .25s ease;
}

.view-all:hover {
  opacity: .55;
  transform: translateX(2px);
}

.view-all:hover span {
  transform: translate(2px, -2px);
}


/* ===== ARTICLE GRID ===== */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 17px;
  width: 100%;
}

.article-grid .empty {
  grid-column: 1 / -1;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 455px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 19px;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: #d8d8d4;
  box-shadow: 0 15px 34px rgba(0,0,0,.06);
}

.article-image {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 13px;
}

.blue-placeholder {
  background: var(--blue);
  color: #fff;
}

.yellow-placeholder {
  background: var(--yellow);
  color: #111;
}

.black-placeholder {
  background: #111;
  color: #fff;
}

.article-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 23px 15px 13px;
}

.article-card-content h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.055em;
}

.article-card-content p {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #666;
}

.article-card-content .article-info {
  margin-top: auto;
  padding-top: 22px;
}

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

.empty {
  padding: 70px 0;
  color: #666;
  font-size: 15px;
}


/* ===== YELLOW SUBMIT SECTION ===== */

.publish {
  width: min(var(--content-width), calc(100% - (var(--side-space) * 2)));
  margin: 0 auto 90px;
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--yellow);
  border-radius: 22px;
}

.publish-content {
  display: flex;
  align-items: center;
  padding: 52px;
}

.publish-content > div {
  max-width: 500px;
}

.publish-content h2 {
  margin: 0;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: .94;
  font-weight: 600;
  letter-spacing: -.065em;
}

.publish-content p {
  max-width: 450px;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #292929;
}

.publish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 178px;
  margin-top: 28px;
  padding: 13px 15px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

.publish-button:hover {
  background: #fff;
  color: #111;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.publish-image {
  min-width: 0;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e7bc31;
}

.publish-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


/* ===== READ PAGE ===== */

.page-title {
  margin: 0 0 26px;
  font-size: clamp(54px, 9vw, 104px);
  line-height: .9;
  font-weight: 600;
  letter-spacing: -.07em;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 34px;
}

.search {
  flex: 1 1 260px;
  max-width: 380px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font: 500 13px "DM Sans", Arial, sans-serif;
  color: #111;
  outline: none;
}

.search:focus {
  border-color: #111;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font: 600 12px "DM Sans", Arial, sans-serif;
  color: #111;
  cursor: pointer;
  transition: border-color .2s ease;
}

.chip:hover {
  border-color: #111;
}

.chip[aria-pressed="true"] {
  background: #111;
  color: #fff;
  border-color: #111;
}

.more {
  display: block;
  margin: 44px auto 0;
  padding: 13px 26px;
  border: 1px solid #111;
  border-radius: 999px;
  background: transparent;
  font: 600 12px "DM Sans", Arial, sans-serif;
  color: #111;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.more:hover {
  background: #111;
  color: #fff;
}

.read-wrap {
  padding-bottom: 110px;
}


/* ===== ARTICLE PAGE ===== */

.post {
  width: min(760px, calc(100% - (var(--side-space) * 2)));
  margin: 0 auto;
}

.back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #111;
  padding-bottom: 3px;
}

.post-tag {
  display: inline-block;
  margin-left: 12px;
  padding: 5px 12px;
  border-radius: 99px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
}

.post h1 {
  margin: 6px 0 22px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: .96;
  font-weight: 600;
  letter-spacing: -.065em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.post-cover {
  width: min(var(--content-width), calc(100% - (var(--side-space) * 2)));
  margin: 40px auto 0;
  height: clamp(240px, 42vw, 480px);
  border-radius: 22px;
  overflow: hidden;
  background: #e9e9e5;
}

.post-body {
  margin-top: 46px;
  padding-bottom: 100px;
  font-size: 18px;
  line-height: 1.85;
  color: #1a1a1a;
}

.post-body p {
  margin: 0 0 1.3em;
}

.post-body h2 {
  margin: 1.8em 0 .5em;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.05em;
}


/* ===== FOOTER ===== */

.footer {
  background: #fdfdfb;
  color: #080000;
  padding: 55px clamp(30px, 6vw, 70px);
}

.footer-grid {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 80px;
}

.footer-logo {
  width: 190px;
  display: block;
}

.footer-copy {
  max-width: 1400px;
  margin: 55px auto 0;
  text-align: center;
  font-size: 14px;
  color: #000;
  letter-spacing: .03em;
}

.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  justify-self: end;
}

.footer-right h5 {
  color: #8B5CF6;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .25em;
  margin-bottom: 16px;
}

.footer-right a {
  display: block;
  color: rgba(0,0,0,.72);
  margin-bottom: 10px;
  transition: .25s;
}

.footer-right a:hover {
  color: #000;
}

@media (max-width: 900px) {

  .footer {
    padding: 80px 30px 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 45px;
  }

  .footer-brand {
    display: flex;
    justify-content: center;
  }

  .footer-right {
    justify-self: center;
    grid-template-columns: 1fr;
    text-align: center;
  }

}


/* ===== TABLET ===== */

@media (max-width: 1050px) {

  :root {
    --side-space: 32px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-link {
    font-size: 11px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 390px;
  }

  .featured-content {
    min-height: 400px;
  }

  .article-card-content h3 {
    font-size: 24px;
  }

}


/* ===== MOBILE ===== */

@media (max-width: 800px) {

  :root {
    --side-space: 20px;
  }

  .site-header {
    padding-top: 14px;
  }

  .navbar {
    min-height: 58px;
    padding: 7px 17px 7px 17px;
  }

  .nav-links {
    display: none;
  }

  .brand {
    font-size: 18px;
  }

  main {
    padding-top: 125px;
  }

  .featured {
    padding-bottom: 80px;
  }

  .featured-content {
    padding: 38px 28px 32px;
  }

  .featured-content-top h1 {
    font-size: 45px;
  }

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

  .article-card {
    min-height: auto;
  }

  .article-image {
    height: 270px;
  }

  .article-card-content {
    min-height: 270px;
  }

  .latest-title {
    font-size: 46px;
  }

  .publish {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .publish-content {
    min-height: 360px;
    padding: 42px 28px;
  }

  .publish-image {
    min-height: 320px;
  }

}


/* ===== SMALL MOBILE ===== */

@media (max-width: 500px) {

  :root {
    --side-space: 14px;
  }

  .navbar {
    min-height: 56px;
  }

  main {
    padding-top: 135px;
  }

  .featured-card {
    border-radius: 17px;
  }

  .featured-image {
    min-height: 280px;
  }

  .featured-content {
    min-height: 350px;
    padding: 30px 22px;
  }

  .featured-content-top h1 {
    font-size: 39px;
  }

  .featured-content-top p {
    font-size: 14px;
  }

  .latest-header {
    align-items: center;
  }

  .latest-title {
    font-size: 42px;
  }

  .article-image {
    height: 230px;
  }

  .article-card-content h3 {
    font-size: 27px;
  }

  .publish {
    border-radius: 17px;
  }

  .publish-content h2 {
    font-size: 46px;
  }

}


/* ===== READ PAGE (calm layout) ===== */

.read-head {
  padding: 18px 0 46px;
}

.read-head .page-title {
  font-size: clamp(46px, 8vw, 92px);
  margin: 0 0 14px;
}

.page-sub {
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.read-head .search {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 14px 20px;
}


/* ===== MOBILE NAVIGATION ===== */

.mobile-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 24px rgba(0,0,0,.06), inset 0 0 0 1px rgba(0,0,0,.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 10002;
}

.mobile-menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: #111;
  transition: transform .28s ease, opacity .2s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,15,25,.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-menu-panel {
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 30px 80px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mobile-menu-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 10px;
}

.mobile-menu-brand {
  display: inline-flex;
  align-items: center;
}

.mobile-menu-brand img {
  display: block;
  width: 116px;
  height: auto;
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 24px rgba(0,0,0,.06), inset 0 0 0 1px rgba(0,0,0,.06);
  cursor: pointer;
  position: relative;
}

.mobile-menu-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  left: 13px;
  top: 21px;
  border-radius: 999px;
  background: #111;
}

.mobile-menu-close span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu-content {
  position: relative;
  z-index: 2;
  padding: 34px 24px 24px;
}

.mobile-menu-label {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #777;
}

.mobile-menu-links {
  border-top: 1px solid rgba(0,0,0,.08);
}

.mobile-nav-link {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: padding-left .2s ease;
}

.mobile-nav-link:hover {
  padding-left: 6px;
}

.mobile-nav-number {
  font-size: 11px;
  font-weight: 700;
  color: #999;
}

.mobile-nav-title {
  font-size: clamp(20px,5vw,25px);
  font-weight: 700;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.mobile-nav-arrow {
  font-size: 22px;
  line-height: 1;
  color: #777;
  transition: transform .2s ease;
}

.mobile-nav-link:hover .mobile-nav-arrow {
  transform: translate(3px,-3px);
}

.mobile-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  background: #f2c744;
  color: #111;
  border: 1.5px solid #111;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-publish:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.mobile-publish-arrow {
  font-size: 22px;
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 800px) {

  .mobile-menu-button {
    display: flex;
    margin-left: auto;
  }

  .submit-nav {
    display: none !important;
  }

}

@media (max-width: 500px) {

  .mobile-menu-panel {
    inset: 8px;
    border-radius: 24px;
  }

  .mobile-menu-top {
    padding: 18px 18px 8px;
  }

  .mobile-menu-content {
    padding: 28px 20px 20px;
  }

  .mobile-nav-link {
    min-height: 62px;
  }

  .mobile-nav-title {
    font-size: 19px;
  }

}


.featured-label {
  margin-bottom: 30px;
  text-align: center;
  font-size: 66px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.featured-label span:first-child {
  color: #ed2419;
}

.featured-label span:last-child {
  color: #ed2419;
}