@import url('./reset.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
  --bg: #fffafa;
  --text: #0f172a;
  --muted: #232225;
  --border: #e2e8f0;
  --card: #f8fafc;
  --link: #0f172a;
  --selected-link: #d8581d;
  --header-bg: #f0eeee;
  --maxw: 980px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}


img {
  max-width: 100%;
	width: auto;
  height: auto;
  border-radius: var(--radius);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--maxw));
  margin: 0 auto;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: .5rem .75rem;
  border-radius: 8px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
}

.site-header {
  border-top: 3px solid var(--border);
  border-bottom: 6px solid var(--border);
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;	
  display: flex;
  justify-content: center; /* centers .header-row horizontally */
}

.header-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 20px;
  max-width: var(--maxw);
  width: 100%;
}

.brand {
  display: grid;
  gap: .1rem;
}

.brand-link {
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
}

.brand-subtitle {
  font-size: .9rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 1.125rem;
}

.lang-switch {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.lang-switch a {
  border: 1px solid var(--border);
  background: var(--card);
  padding: .25rem .55rem;
  border-radius: 999px;
  color: var(--text);
  font-size: .9rem;
}

.lang-switch a[aria-current="true"] {
  border-color: var(--text);
  background: #fff;
  font-weight: 700;
}

.hero {
  padding: 1.5rem 0 1rem 0;
  text-align: center;
}

.hero h1 {
  margin: 0 0 .25rem 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

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


.section-title {
  margin: 0.5rem 0 0.5rem 0;
  font-size: 2rem;
  text-align: center;
  font-weight: 700;
}

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


.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  display: block;
  /* Background image */
  position: relative;
  background: var(--border) center / cover no-repeat;
  text-align: center;

}

/* Optional: if you want a minimum height so the image area is visible */
.card--hero {
  min-height: 260px;
  position: relative;
  overflow: hidden; /* required for zoom clipping */
	margin-bottom: 12px;
}

/* Image layer */
.card--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit; /* reuse background image */
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
  will-change: transform;
  z-index: 0;
}

.card--hero > * {
  position: relative;
  z-index: 1;
}

/* The overlay area that sits at the bottom */
.card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 10px 10px;

  /* Semi-transparent background for readability */
  background: rgba(255, 255, 255, 0.553);

  /* Optional: subtle separation + better readability over busy images */
  /* backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border-top: 1px solid rgba(15, 23, 42, 0.08); */
}

/* Typical text styling (adjust to your typography system) */
.card__hero__title {
  margin: 0 0 6px 0;
  font-size: 2.5rem;
  line-height: 1.2;
  color: #053d118c;
	/* color: var(--muted); */
	/* color: var(--text); */

}

.card__title {
  margin: 10px 0 6px 0;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #0f172a;
  transition: color 0.2s ease;
}

.card__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
}

/* If you want to ensure the overlay never exceeds the card height awkwardly */
.card__overlay {
  max-height: 60%;
  overflow: auto;
}

.card__caption {
  margin: 6px 0 6px 0;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #0f172a;
  transition: color 0.2s ease;
  text-align: center;
}

/* Ensure the anchor behaves like a block-level card wrapper */
a.card-link {
  display: block;
  text-decoration: none;
}

/* Smooth transition for the lift effect */
a.card-link .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Lift effect on hover and keyboard focus */
a.card-link:hover .card,
a.card-link:focus-visible .card {
  transform: translateY(-3px)  scale(1.01);
  box-shadow: 0 10px 15px rgba(15, 23, 42, 0.3);
}

/* Apply zoom on hover of the anchor */
a.card-link:hover .card--hero::before,
a.card-link:focus-visible .card--hero::before {
  transform: scale(1.1);
}

/* Change title color when the linked card is hovered */
a.card-link:hover .card--hero .card__title,
a.card-link:focus-visible .card--hero .card__title {
  color: var(--selected-link); /* hover color */
}

/* Change title color when the linked card title is hovered */
a.card-link:hover .card__title,
a.card-link:focus-visible .card__title {
  color: var(--selected-link); /* hover color */
}

.meta {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 .25rem 0;
}


.meta-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  flex-wrap: wrap; /* remove if you strictly want no wrapping */
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 6px;
}

.meta-icon {
  width: 16px;
  height: 16px;
  border-radius: 0; /* override your global img border-radius for icons */
  display: inline-block;
}

.meta-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1;
	padding-top: 6px;
}

.meta-sep {
	font-size: 1.25rem;
  color: var(--muted);
}



.post-header {
  margin: 1.5rem 0 1rem 0;
}

.post-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0 0 .25rem 0;
  color: var(--selected-link);
}

.post-meta {
  margin: 0;
  color: var(--muted);
}

.post-content {
  margin: 1rem 0 2rem 0;
}

.post-content p {
  margin: 0 0 1rem 0;
}

.post-content ul {
  margin: 0 0 1rem 1.25rem;
}

.figure {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.figure figcaption {
  padding: .75rem 1rem;
  color: var(--muted);
  font-size: .95rem;
  border-top: 1px solid var(--border);
}

.site-footer {
  border-top: 6px solid var(--border);
  border-bottom: 3px solid var(--border);
  background: var(--header-bg);
  align-items: center;	
  display: flex;
  justify-content: center; /* centers .header-row horizontally */	
}

.footer-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 20px;
  max-width: var(--maxw);
  width: 100%;
}

.footer-links {
  display: flex;
  gap: .75rem;
}

/* Responsive adjustments */
@media (max-width: 760px) {
  .header-row {
    align-items: center;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .grid {
    grid-template-columns: 1fr;
		margin-top: 6px;
		margin-bottom: 6px;
  }
}