/* The Gujrat Taste: public site. Colours are taken from the logo. */

:root {
  --paper: #fefef7;
  --paper-deep: #f8f2dd;
  --ink: #2d1005;
  --ink-soft: #6b564a;
  --hairline: #e7dec6;
  --turmeric: #fdbf08;
  --turmeric-soft: #ffeaa6;
  --chili: #cf3408;
  --chili-deep: #a52705;
  --leaf: #2f6b12;
  --radius: 10px;
  --container: 1140px;
  --font-display: "Playfair Display", "Mukta Vaani", Georgia, "Times New Roman", serif;
  --font-body: "Mukta Vaani", "Nirmala UI", "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
}

p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--chili);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 6px 6px;
}

.skip-link:focus {
  top: 0;
}

/* ---- Top bar and masthead ---- */

.topbar {
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-block: 0.45rem;
}

.stamp {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border: 1.5px solid var(--chili);
  border-radius: 4px;
  color: var(--chili-deep);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* Name and tagline on the left, the logo badge on the right */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1rem;
}

.masthead__text {
  min-width: 0;
}

.masthead__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.2vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-decoration: none;
  text-wrap: balance;
}

.masthead__logo {
  flex: none;
}

.masthead__logo img {
  width: clamp(84px, 13vw, 130px);
}

.masthead__tagline {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
}

/* ---- Section navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__links {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav__links::-webkit-scrollbar {
  display: none;
}

.nav__links a {
  display: block;
  padding: 0.7rem 0.75rem 0.55rem;
  border-bottom: 3px solid transparent;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__links li:first-child a {
  padding-left: 0;
}

.nav__links a:hover {
  color: var(--chili-deep);
}

.nav__links a[aria-current="page"] {
  border-bottom-color: var(--chili);
  color: var(--chili-deep);
}

.nav__search {
  display: flex;
  flex: none;
}

.nav__search input {
  width: 11rem;
  min-width: 0;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--ink);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.nav__search button {
  padding: 0.3rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 0 999px 999px 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.nav__search button:hover {
  background: var(--chili-deep);
}

.main {
  min-height: 45vh;
}

/* ---- Headline ticker ---- */

.ticker {
  display: flex;
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.95rem;
}

.ticker__label {
  flex: none;
  padding: 0.4rem 1rem;
  background: var(--chili);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.9;
  text-transform: uppercase;
}

.ticker__viewport {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2.5rem;
  padding: 0 2.5rem 0 1.25rem;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}

.ticker__track li::before {
  content: "◆";
  margin-right: 2.5rem;
  color: var(--turmeric);
  font-size: 0.7em;
}

.ticker__track a {
  font-weight: 500;
  text-decoration: none;
}

.ticker__track a:hover {
  text-decoration: underline;
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

/* ---- Shared story pieces ---- */

.thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  text-decoration: none;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb__emoji {
  font-size: clamp(3rem, 9vw, 4.75rem);
  line-height: 1;
  filter: drop-shadow(0 5px 0 rgb(45 16 5 / 0.14));
  transition: transform 0.2s ease;
}

.lead__media .thumb__emoji,
.article__figure .thumb__emoji {
  font-size: clamp(4.5rem, 15vw, 8.5rem);
}

a.thumb:hover .thumb__emoji {
  transform: scale(1.08) rotate(-4deg);
}

/* Emoji tiles: a halftone dot pattern over a colour wash, four variations */
.thumb--tone-0,
.thumb--tone-1,
.thumb--tone-2,
.thumb--tone-3 {
  background-image: radial-gradient(rgb(45 16 5 / 0.1) 1.5px, transparent 1.6px), var(--wash);
  background-size: 14px 14px, cover;
}

.thumb--tone-0 {
  --wash: radial-gradient(circle at 30% 25%, #ffe793, #fdbf08);
}

.thumb--tone-1 {
  --wash: radial-gradient(circle at 70% 30%, #ffc3a0, #ee6a3c);
}

.thumb--tone-2 {
  --wash: radial-gradient(circle at 30% 75%, #dcedb4, #86b64d);
}

.thumb--tone-3 {
  --wash: radial-gradient(circle at 70% 70%, #f9e0b5, #e2a04a);
}

.kicker {
  color: var(--chili-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.kicker:hover {
  text-decoration: underline;
}

.meta {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.flag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.05rem 0.55rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--turmeric);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  margin-top: 2.75rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  font-size: 1.6rem;
  font-weight: 900;
}

.section-title::after {
  content: "";
  flex: 1;
  border-top: 3px double var(--ink);
}

/* ---- Front page ---- */

.front {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 2.25rem;
  margin-top: 1.5rem;
}

.lead__media {
  aspect-ratio: 16 / 9;
}

.lead__body {
  padding-top: 1.1rem;
}

.lead__title {
  margin-block: 0.45rem 0.6rem;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.lead__title a,
.card__title a {
  text-decoration: none;
}

.lead__title a:hover,
.card__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--turmeric);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.lead__dek {
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.5;
}

.panel {
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fffef9;
}

.panel + .panel {
  margin-top: 1.25rem;
}

.panel__title {
  margin-bottom: 0.35rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px double var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.panel--note {
  border-style: dashed;
  background: var(--turmeric-soft);
  font-size: 0.975rem;
}

.panel--note .panel__title {
  margin-bottom: 0.7rem;
}

.ranked {
  counter-reset: rank;
}

.ranked li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  column-gap: 0.5rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--hairline);
  counter-increment: rank;
}

.ranked li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ranked li::before {
  content: counter(rank);
  grid-row: span 2;
  color: var(--chili);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.ranked a {
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.ranked a:hover {
  text-decoration: underline;
}

.ranked .meta {
  grid-column: 2;
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

/* ---- Story cards ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2.25rem 1.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card__title {
  margin-block: 0.25rem 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.card__dek {
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.5;
}

/* ---- Section, search and listing pages ---- */

.page-header {
  margin-block: 2rem 1.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 3px double var(--ink);
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 900;
}

.page-header__tagline {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 2.75rem;
}

.pagination > :last-child {
  justify-self: end;
}

.pagination > :first-child {
  justify-self: start;
}

.pagination__page {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.empty {
  max-width: 34rem;
  margin: 4rem auto;
  text-align: center;
}

.empty > * + * {
  margin-top: 0.8rem;
}

.empty__emoji {
  font-size: 3.5rem;
  line-height: 1;
}

.empty h1,
.empty h2 {
  font-size: 2rem;
  font-weight: 900;
}

.empty .button {
  margin-top: 0.6rem;
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--chili-deep);
  background: var(--chili-deep);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* ---- Story page ---- */

.article {
  max-width: 46rem;
  margin-inline: auto;
  padding-top: 2.25rem;
}

.article__flags {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.article__title {
  margin-block: 0.7rem 0.85rem;
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.article__dek {
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1.45;
}

.article__meta {
  margin-top: 1.1rem;
  padding-block: 0.7rem;
  border-block: 1px solid var(--hairline);
}

.article__figure {
  margin-block: 1.6rem;
  aspect-ratio: 16 / 9;
}

.prose {
  font-size: 1.1875rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose > p:first-of-type::first-letter {
  float: left;
  padding: 0.07em 0.1em 0 0;
  color: var(--chili);
  font-family: var(--font-display);
  font-size: 3.5em;
  font-weight: 900;
  line-height: 0.8;
}

.prose h2 {
  margin-top: 1.7em;
  font-size: 1.6rem;
  font-weight: 700;
}

.prose h3 {
  margin-top: 1.5em;
  font-size: 1.3rem;
  font-weight: 700;
}

.prose a {
  color: var(--chili-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose li::marker {
  color: var(--chili);
  font-weight: 700;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 0.15em 0 0.15em 1.25em;
  border-left: 5px solid var(--turmeric);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.4;
}

.prose hr {
  margin-block: 2em;
  border: 0;
  border-top: 3px double var(--ink);
}

.prose figure {
  margin: 1.6em 0;
}

.prose figure img {
  border-radius: var(--radius);
}

.prose figcaption {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.callout {
  margin-top: 2rem;
  padding: 0.9rem 1.1rem;
  border-left: 5px solid var(--turmeric);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--turmeric-soft);
  font-size: 0.975rem;
}

.callout--preview {
  border-left-color: var(--leaf);
  background: #e8f3d6;
}

.reactions,
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.reactions {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
}

.share {
  margin-top: 1rem;
}

.reactions__label {
  min-width: 5.5rem;
  font-weight: 700;
}

.reaction button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.reaction button:hover {
  background: var(--turmeric-soft);
  transform: translateY(-1px);
}

.reaction button[aria-pressed="true"] {
  background: var(--turmeric);
}

.reaction__count {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.section--related {
  margin-top: 3.5rem;
}

/* ---- Footer ---- */

.footer {
  margin-top: 4.5rem;
  padding-block: 2.75rem 1.5rem;
  background: var(--ink);
  color: #f3e7cf;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.footer__name {
  color: var(--turmeric);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
}

.footer__disclaimer {
  max-width: 40rem;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.footer__links {
  columns: 2;
  font-size: 0.95rem;
}

.footer__links li {
  margin-bottom: 0.4rem;
}

.footer__links a {
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--turmeric);
  text-decoration: underline;
}

.footer__legal {
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  color: #cdb99a;
  font-size: 0.825rem;
  text-align: center;
}

/* ---- Smaller screens ---- */

@media (max-width: 900px) {
  .front,
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    position: static;
  }

  .nav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__search {
    padding-bottom: 0.65rem;
  }

  .nav__search input {
    flex: 1;
    width: auto;
  }

  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .prose {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }

  .ticker__track[aria-hidden="true"] {
    display: none;
  }

  .ticker__viewport {
    overflow-x: auto;
  }

  .thumb__emoji,
  .reaction button {
    transition: none;
  }
}
