/*
Theme Name: Nurani Media
Theme URI: https://localhost
Author: Nurani Media
Description: Theme editorial modern untuk website Nurani Media.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: nuranimedia
*/

:root {
  --ink: #17201b;
  --muted: #59645f;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --line: #dedbd0;
  --sage: #4f7c68;
  --forest: #1f4b3c;
  --coral: #d65f45;
  --gold: #b28b2e;
  --sky: #dcecef;
  --shadow: 0 18px 50px rgba(23, 32, 27, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 219, 208, 0.85);
  background: rgba(251, 250, 245, 0.92);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--forest);
  color: #fffdf7;
  font-family: Georgia, serif;
  font-size: 24px;
}

.brand__text {
  display: grid;
  line-height: 1.05;
}

.brand__text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--forest);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
}

.site-main {
  min-height: calc(100vh - 72px);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  background: #101611;
  color: #fffdf7;
}

.hero__image {
  position: absolute;
  inset: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 19, 15, 0.88), rgba(11, 19, 15, 0.38) 54%, rgba(11, 19, 15, 0.08)),
    linear-gradient(0deg, rgba(11, 19, 15, 0.72), rgba(11, 19, 15, 0) 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(var(--max), calc(100% - 32px));
  min-height: min(760px, calc(100vh - 72px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #e6d8b5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 253, 247, 0.84);
  font-size: clamp(17px, 2vw, 21px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  line-height: 1.2;
}

.button--primary {
  background: var(--coral);
  color: #fffdf7;
}

.button--secondary {
  border-color: rgba(255, 253, 247, 0.54);
  color: #fffdf7;
}

.section {
  padding: 76px 0;
}

.section--white {
  background: var(--panel);
}

.section__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__header h2,
.content-page h1,
.post-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.section__header p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.feature-story {
  display: grid;
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  background: #101611;
  color: #fffdf7;
}

.feature-story img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.feature-story__body {
  z-index: 1;
  grid-area: 1 / 1;
  align-self: end;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(0deg, rgba(11, 19, 15, 0.82), rgba(11, 19, 15, 0));
}

.label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 13px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--sky);
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.feature-story .label {
  background: rgba(220, 236, 239, 0.92);
}

.feature-story h3 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.feature-story p {
  max-width: 600px;
  margin: 16px 0 0;
  color: rgba(255, 253, 247, 0.84);
}

.brief-list {
  display: grid;
  gap: 14px;
}

.brief {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.brief h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.brief p {
  margin: 0;
  color: var(--muted);
}

.beat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.beat {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.beat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--forest);
  color: #fffdf7;
  font-weight: 900;
}

.beat h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0;
}

.beat p {
  margin: 0;
  color: var(--muted);
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 46px 0;
}

.newsletter h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.newsletter p {
  margin: 16px 0 0;
  color: var(--muted);
}

.newsletter form {
  display: flex;
  gap: 10px;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.newsletter button {
  border: 0;
  cursor: pointer;
}

.content-page,
.post-list {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.content-page a,
.post-entry a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.post-entry {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.post-entry:first-child {
  padding-top: 0;
}

.post-entry h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #111a15;
  color: rgba(255, 253, 247, 0.76);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.site-footer strong {
  color: #fffdf7;
}

.site-footer p {
  margin: 6px 0 0;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .feature-grid,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .beat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    min-height: 64px;
  }

  .site-nav {
    top: 64px;
  }

  .brand__text small {
    display: none;
  }

  .hero,
  .hero__content {
    min-height: 650px;
  }

  .hero__content {
    padding: 56px 0 72px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 42px);
    line-height: 1;
    overflow-wrap: break-word;
  }

  .hero__lead {
    max-width: 100%;
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .hero__actions {
    display: grid;
    width: min(100%, 270px);
  }

  .hero__actions .button {
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }

  .section__header {
    display: block;
  }

  .section__header p {
    margin-top: 14px;
  }

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

  .newsletter form {
    display: grid;
  }
}
