
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f4ed;
  --paper: #fffefa;
  --ink: #25231f;
  --muted: #89847a;
  --gold: #b79562;
  --gold-light: #e8d5b2;
  --line: #e8e1d5;
  --soft: #eee9df;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  transition: .25s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

/* MAIN HEADER */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 7%;
  background: rgba(255,254,250,.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
}

.brand span {
  color: var(--gold);
}

nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

nav a {
  font-size: 13px;
  font-weight: 600;
}

nav a:hover {
  color: var(--gold);
}

/* HERO */

.hero {
  padding: 100px 8% 85px;
  text-align: center;
  animation: fadeUp .8s ease;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.08;
  font-weight: 600;
  max-width: 1000px;
  margin: auto;
}

.hero p {
  color: var(--muted);
  margin-top: 20px;
  font-size: 15px;
}

/* ARTICLES */

.articles-section {
  width: 86%;
  max-width: 1250px;
  margin: 40px auto 90px;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  margin-bottom: 30px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: .35s;
}

.article-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(48,39,24,.09);
}

.card-image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--soft);
}

.card-body {
  padding: 24px;
}

.card-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.3;
  margin: 12px 0;
}

.card-body p {
  color: var(--muted);
  font-size: 13px;
}

/* LOGIN PAGE */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.login-visual {
  background: linear-gradient(145deg, #eae1d1, #f7f4ed);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-visual::after {
  content: "R";
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 450px;
  font-weight: 700;
  color: rgba(183,149,98,.08);
  right: -20px;
  bottom: -130px;
}

.login-logo {
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.login-logo span {
  color: var(--gold);
}

.login-visual-content {
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.login-visual-content small {
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 800;
}

.login-visual-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(45px, 6vw, 75px);
  line-height: 1.08;
  margin: 20px 0;
}

.login-visual-content p {
  color: #777064;
  max-width: 380px;
}

.login-footer {
  color: var(--muted);
  font-size: 11px;
  position: relative;
  z-index: 1;
}

.login-form-side {
  display: grid;
  place-items: center;
  padding: 40px 25px;
}

.login-card {
  width: min(420px, 100%);
  animation: fadeUp .8s ease;
}

.login-card small {
  color: var(--gold);
  letter-spacing: 3px;
  font-weight: 800;
}

.login-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 43px;
  margin: 12px 0;
}

.login-card > p {
  color: var(--muted);
  margin-bottom: 32px;
}

.login-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-card input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 22px;
  outline: none;
  border-radius: 2px;
}

.login-card input:focus {
  border-color: var(--gold);
}

.login-submit {
  width: 100%;
  padding: 15px;
  background: var(--ink);
  color: white;
  border: none;
  font-weight: 700;
  letter-spacing: 1px;
}

.login-submit:hover {
  background: var(--gold);
  color: white;
}

.login-note {
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  margin-top: 25px;
}

/* AUTHOR STUDIO */

.studio-page {
  min-height: 100vh;
  background: var(--bg);
}

.studio-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-logo {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 24px;
}

.studio-brand h2 {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
}

.studio-brand p {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
}

.studio-label {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 3px;
  font-weight: 800;
}

.studio-container {
  max-width: 1150px;
  width: 88%;
  margin: 55px auto;
  animation: fadeUp .7s ease;
}

.studio-welcome {
  margin-bottom: 35px;
}

.studio-welcome small {
  color: var(--gold);
  letter-spacing: 3px;
  font-weight: 800;
}

.studio-welcome h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 57px);
  line-height: 1.2;
  margin-top: 8px;
}

.studio-welcome p {
  color: var(--muted);
  margin-top: 8px;
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.studio-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 25px;
  transition: .3s;
}

.studio-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(48,39,24,.07);
}

.studio-stat span {
  color: var(--muted);
  font-size: 12px;
}

.studio-stat h2 {
  font-family: 'Playfair Display', serif;
  font-size: 37px;
  margin-top: 8px;
}

.studio-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px;
  margin-bottom: 25px;
}

.studio-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 20px;
}

.studio-panel input,
.studio-panel textarea,
.studio-panel select {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: #fffefa;
  outline: none;
}

.studio-panel input:focus,
.studio-panel textarea:focus,
.studio-panel select:focus {
  border-color: var(--gold);
}

.studio-panel textarea {
  min-height: 170px;
}

.studio-btn {
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  padding: 13px 24px;
  font-weight: 700;
}

.studio-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.studio-btn.secondary {
  background: transparent;
  color: var(--ink);
}

.studio-btn.danger {
  background: #a43d35;
  border-color: #a43d35;
}

.studio-table {
  width: 100%;
  border-collapse: collapse;
}

.studio-table th,
.studio-table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.studio-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* FOOTER */

footer {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* ANIMATION */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */

@media(max-width: 800px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 330px;
    padding: 30px;
  }

  .login-visual-content h1 {
    font-size: 45px;
  }

  .login-visual::after {
    font-size: 260px;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 580px) {
  .site-header {
    padding: 15px 5%;
  }

  nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 65px 5%;
  }

  .articles-section {
    width: 90%;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .studio-container {
    width: 92%;
    margin: 35px auto;
  }

  .studio-stats {
    grid-template-columns: 1fr;
  }

  .studio-panel {
    padding: 20px;
  }

  .studio-table {
    display: block;
    overflow-x: auto;
  }
}

@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ORIGINAL RAVISHA REVIEW LOGIN DESIGN */

.auth-body {
  min-height: 100vh;
  background: #f0eee6;
  display: grid;
  place-items: center;
  padding: 30px;
}

.back-home {
  position: absolute;
  top: 30px;
  left: 7%;
  font-size: 12px;
  color: #666;
}

.auth-card {
  background: #faf9f5;
  width: min(100%, 440px);
  padding: 48px 44px;
  box-shadow: 0 20px 60px #332d2010;
  animation: loginAppear .7s ease;
}

.brand-mark.large {
  width: 54px;
  height: 54px;
  font-size: 26px;
  margin-bottom: 28px;
}

.auth-card h1 {
  font: 600 42px 'Playfair Display', Georgia, serif;
  letter-spacing: -1px;
  margin: 8px 0;
}

.auth-card > p {
  color: #77796f;
  font-size: 13px;
  margin-top: 0;
}

.auth-card form {
  margin-top: 28px;
}

.auth-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 17px;
}

.auth-card input {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #dedbd2;
  background: #fff;
  padding: 13px 14px;
  font: 13px 'DM Sans', sans-serif;
  outline-color: #a98a70;
  border-radius: 0;
}

.primary-button {
  background: #20231f;
  color: #fff;
  border: 1px solid #20231f;
  padding: 13px 20px;
  font: 600 12px 'DM Sans', sans-serif;
  cursor: pointer;
}

.primary-button:hover {
  background: #48483f;
}

.auth-card .primary-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.secure-note {
  display: block;
  color: #99968d;
  text-align: center;
  font-size: 10px;
  margin-top: 25px;
}

@keyframes loginAppear {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width: 500px) {
  .auth-card {
    padding: 35px 25px;
  }

  .auth-card h1 {
    font-size: 35px;
  }
}

/* HOMEPAGE — EDITORIAL REDESIGN */

.site-header {
  padding: 20px 7%;
  background: #fffefa;
  border-bottom: 1px solid #e9e2d6;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  color: #26241f;
  letter-spacing: -.5px;
}

.brand-mark,
.about-monogram {
  display: none !important;
}

.hero {
  min-height: 410px;
  padding: 90px 7% 75px;
  background: linear-gradient(135deg, #f5f0e6, #fffefa);
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin: auto;
  font-family: 'Playfair Display', serif;
  font-size: clamp(45px, 7vw, 82px);
  line-height: 1.1;
  color: #25231f;
  font-weight: 600;
}

.hero p {
  max-width: 600px;
  margin: 20px auto;
  color: #817a6e;
  font-size: 15px;
}

/* ARTICLE SECTION */

.articles-section {
  max-width: 1250px;
  width: 88%;
  margin: 65px auto;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 39px;
  margin-bottom: 25px;
}

/* SEARCH */

#search,
#search-input,
.search-input,
.search-box input,
input[type="search"] {
  width: 100%;
  max-width: 520px;
  padding: 15px 20px;
  border: 1px solid #e4dccf;
  background: #fffefa;
  color: #292720;
  outline: none;
  border-radius: 3px;
  font-size: 14px;
  transition: .3s ease;
}

#search:focus,
#search-input:focus,
.search-input:focus,
.search-box input:focus,
input[type="search"]:focus {
  border-color: #b79562;
  box-shadow: 0 5px 20px #b7956218;
}

/* CATEGORY FILTERS */

.category-list,
.category-list button,
.chip {
  font-family: 'DM Sans', sans-serif;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.chip {
  border: 1px solid #e4dccf;
  background: #fffefa;
  color: #6f685d;
  padding: 9px 17px;
  border-radius: 30px;
  font-size: 12px;
  cursor: pointer;
  transition: .25s;
}

.chip:hover,
.chip.selected {
  background: #292720;
  border-color: #292720;
  color: white;
}

/* ARTICLE GRID */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.article-card {
  background: #fffefa;
  border: 1px solid #e9e2d6;
  border-radius: 3px;
  overflow: hidden;
  transition: .35s ease;
}

.article-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px #29272012;
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .5s ease;
}

.article-card:hover .card-image {
  transform: scale(1.035);
}

.card-body {
  padding: 24px;
}

.card-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  line-height: 1.3;
  color: #25231f;
  margin: 12px 0;
}

.card-body p {
  color: #817a6e;
  font-size: 13px;
  line-height: 1.8;
}

/* ABOUT SECTION */

.about-section {
  background: #eee8dc;
  padding: 65px 8%;
  text-align: center;
}

.about-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 15px;
}

.about-section p {
  max-width: 650px;
  margin: auto;
  color: #716b60;
  line-height: 1.9;
}

/* FOOTER */

footer {
  background: #fffefa;
  padding: 30px 7%;
  text-align: center;
  border-top: 1px solid #e9e2d6;
  color: #817a6e;
}

/* RESPONSIVE */

@media(max-width: 800px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width: 550px) {
  .hero {
    padding: 65px 6%;
  }

  .articles-section {
    width: 90%;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: 32px;
  }
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 20px 7%;
  background: #fffefa;
  border-bottom: 1px solid #e8e1d5;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: #b79562;
  text-decoration: none;
  white-space: nowrap;
}

.brand-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #89847a;
  white-space: nowrap;
}

@media(max-width: 650px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 18px 5%;
  }

  .brand {
    font-size: 25px;
  }

  .brand-tagline {
    font-size: 9px;
    letter-spacing: 2px;
  }
}