/* -----------------------------------------------
   Cup and Counter — custom theme overrides
   Applied on top of the Ananke theme base styles
----------------------------------------------- */

/* --- Typography --- */
body {
  font-family: 'Georgia', serif;
  letter-spacing: 0.01em;
}

/* Brand-coloured links — scoped to main content only so nav/footer are unaffected */
/* #482c1c on near-white is 11.6:1 contrast */
main a:link,
main a:visited,
main .nested-links a:link,
main .nested-links a:visited {
  color: #482c1c;
  text-decoration-color: #482c1c;
  transition: text-decoration-color 0.2s ease;
}

main a:hover,
main .nested-links a:hover {
  color: #482c1c;
  text-decoration-color: #f08a20;
}

/* Navigation links */
nav a {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* --- Hero / Header --- */
header h1 {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

header h2 {
  letter-spacing: 0.02em;
}

/* --- Article / content body --- */
article h2 {
  margin-top: 2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.4rem;
}

article h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Post summaries on home/list pages --- */
.summary-title a {
  text-decoration: none;
  color: #111;
}

.summary-title a:hover {
  color: #333;
  text-decoration: underline;
}

/* --- Buttons & CTAs --- */

.cta-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  text-decoration: none;
}

/* #f08a20 bg, #351907 text — contrast 6.8:1 */
.btn-primary {
  background-color: #f08a20;
  color: #351907 !important;
  border: 2px solid #f08a20;
}

/* #482c1c bg, #f08a20 text — contrast 5.2:1 */
.btn-secondary {
  background-color: #482c1c;
  color: #f08a20 !important;
  border: 2px solid #482c1c;
}


/* --- Home page screenshot preview --- */

/* Widen the home page content area to fit the screenshot gallery */
.is-home article {
  max-width: 72rem;
}

.screenshot-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 1.5rem 0 0.75rem;
}

.screenshot-preview a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.screenshot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.screenshot-preview a::after {
  content: '⊕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.screenshot-preview a:hover img {
  transform: scale(1.04);
  filter: brightness(0.7);
}

.screenshot-preview a:hover::after {
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
}

@media (max-width: 480px) {
  .screenshot-preview {
    grid-template-columns: 1fr;
  }
}

/* --- Screenshot Gallery --- */

/* Widen the content area on the screenshots page */
article.page-screenshots {
  max-width: 72rem;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.screenshot-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.screenshot-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.screenshot-gallery a::after {
  content: '⊕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.screenshot-gallery a:hover img {
  transform: scale(1.04);
  filter: brightness(0.7);
}

.screenshot-gallery a:hover::after {
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
}

@media (max-width: 768px) {
  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }
}

/* --- Screenshot Slideshow --- */

#screenshot-slider {
  margin: 1.5rem 0;
}

#screenshot-slider .splide__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

#screenshot-slider .splide__slide a {
  display: block;
}

#screenshot-slider .splide__arrow {
  background: #482c1c;
  opacity: 1;
}

#screenshot-slider .splide__arrow svg {
  fill: #f08a20;
}

#screenshot-slider .splide__arrow:hover {
  background: #f08a20;
}

#screenshot-slider .splide__arrow:hover svg {
  fill: #351907;
}

#screenshot-slider .splide__pagination__page {
  background: #ccc;
}

#screenshot-slider .splide__pagination__page.is-active {
  background: #f08a20;
  transform: scale(1.3);
}

/* --- Dev Blog Highlight --- */

.devblog-highlight {
  background-color: #482c1c;
  border-left: 5px solid #f08a20;
  border-radius: 3px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}

.devblog-highlight .devblog-label {
  display: inline-block;
  background-color: #f08a20;
  color: #351907;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}

.devblog-highlight p {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: #f5e6d3;
}

.devblog-highlight p strong {
  color: #ffffff;
}

.devblog-highlight a {
  font-size: 0.85rem;
  font-weight: bold;
  color: #f08a20 !important;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.devblog-highlight a:hover {
  text-decoration: underline;
  text-decoration-color: #f08a20;
}

/* --- Social icons --- */
.ananke-social-link {
  margin-right: 0.6rem !important;
}

/* --- Footer --- */
footer {
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
