/* A warm brown-themed portfolio stylesheet
   Uses Merriweather for headings and Inter for body text.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Merriweather:wght@400;700&display=swap');

:root{
  --bg:#F6F0E8;        /* light parchment */
  --panel:#FFF9F4;     /* panel background */
  --accent:#6B3E26;    /* deep brown */
  --accent-2:#8E5A3C;  /* mid brown */
  --muted:#A78A71;     /* muted brown text */
  --text:#382C28;      /* primary text */
  --border:#E9DDD5;
  --shadow: 0 8px 24px rgba(56,44,36,0.08);
  --radius:12px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-color: var(--bg); /* changed to a single color */
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.55;
  padding:36px 20px;
}

/* Page container for central alignment */
.sections{
  max-width:980px;
  margin:28px auto;
  background:var(--panel);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  overflow:hidden;
}

/* Section headings */
.sections h1{
  margin:0 0 14px 0;
  font-family: "Merriweather", serif;
  color:var(--accent);
  font-weight:700;
  /* font-size:2rem; */
  line-height:1.15;
  display:flex;
  align-items:center;
  gap:10px;
}

/* Paragraphs and lists */
.sections p, .sections li{
  color:var(--text);
  font-size:0.97rem;
  margin:10px 0;
}
.sections ul{padding-left:1.2rem}

/* Header (placeholder styling) */
header{
  max-width:980px;
  margin:0 auto 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* Tables */
table{
  width:100%;
  border-collapse:collapse;
  margin-top:8px;
  background:transparent;
  border-radius:8px;
  overflow:hidden;
  box-shadow: 0 6px 18px rgba(56,44,36,0.03);
}
thead th{
  text-align:left;
  padding:12px 14px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight:600;
  font-size:1.05rem; /* slightly larger for readability */
  border-bottom:1px solid rgba(255,255,255,0.08);
}
tbody td{
  padding:12px 14px;
  border-bottom:1px dashed var(--border);
  vertical-align:top;
  font-size:1rem; /* slightly larger body/table text */
  color:var(--text);
}
tbody tr:nth-child(even) td{
  background: rgba(216,188,165,0.06);
}

/* Small badges / emojis */
h1 span, .emoji{
  font-size:1.1rem;
}

/* Responsive tables */
.table-wrap{overflow:auto; -webkit-overflow-scrolling:touch;}

/* Utility: accent highlights inside text */
.highlight{
  color:var(--accent-2);
  font-weight:600;
}

/* Buttons / links (if added later) */
a, .btn{
  color:var(--panel);
  background:var(--accent);
  padding:8px 12px;
  border-radius:8px;
  text-decoration:none;
  display:inline-block;
  font-weight:600;
  transition:transform .12s ease, box-shadow .12s ease;
}
a:hover, .btn:hover{transform:translateY(-2px); box-shadow:0 8px 20px rgba(107,62,38,0.12)}

/* Pinterest-style collage for image cards */
#evidence {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

#evidence h1 {
  width: 100%;
  margin-bottom: 18px;
  display: block;
}

.image-card {
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f3e7db;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(107,62,38,0.08);
  padding: 18px 16px;
  border: 1px solid #e9ddd5;
  transition: box-shadow 0.18s, transform 0.18s;
  min-height: 340px;
  position: relative;
}

.image-card:hover {
  box-shadow: 0 8px 32px rgba(107,62,38,0.16);
  transform: translateY(-4px) scale(1.03);
}

.image-card img {
  width: 100%;
  max-width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #d8baa5;
  background: #fff;
  box-shadow: 0 2px 8px rgba(107,62,38,0.07);
  margin-bottom: 18px;
}

.image-card p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--accent);
  font-family: "Merriweather", serif;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  padding: 0 4px;
}

.image-card b {
  font-weight: 700;
  color: var(--accent-2);
}

.image-card i {
  color: var(--muted);
  font-style: italic;
}

/* caption-style copy-like descriptions for image cards */
.image-card .caption {
  width: 100%;                 /* let caption span the card width */
  margin: 8px 0 0 0;
  font-size: 0.92rem;          /* slightly smaller than body text */
  color: var(--muted);         /* softer color for caption feel */
  font-family: inherit;        /* match main body font */
  line-height: 1.45;
  text-align: left;            /* left-aligned like a figure caption */
  padding: 0 6px;
  word-break: break-word;
}

/* optional short lead/title inside caption (kept bold) */
.image-card .caption b {
  display: block;
  color: var(--accent-2);
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 6px;
  line-height: 1.2;
}

/* small label (e.g., "Fig. 1" style) if you want it */
.image-card .fig-label {
  display:block;
  font-size:0.82rem;
  color:var(--muted);
  margin-bottom:6px;
  font-style:italic;
}

/* keep existing image centering while caption is left-aligned */
.image-card img { display:block; margin: 0 auto 12px auto; }

/* Evidence grid: 3 cards on first row, 2 on the next (centered) */
#evidence{
  display:grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap:28px;
  background:var(--panel);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  justify-items:center; /* center cards inside cells */
}

#evidence h1{
  grid-column:1 / -1; /* heading spans full width */
  width:100%;
  margin-bottom:18px;
  display:block;
}

/* If the last row has 2 items, center them in a 3-col grid */
#evidence > .image-card:nth-last-child(2):nth-child(3n + 1){
  grid-column:2; /* move first of the last two to the middle column */
}

/* Card sizing inside grid cells */
.image-card{
  width:100%;
  max-width:320px;
  min-width:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  background:#f3e7db;
  border-radius:16px;
  box-shadow:0 4px 18px rgba(107,62,38,0.08);
  padding:18px 16px;
  border:1px solid #e9ddd5;
  transition: box-shadow 0.18s, transform 0.18s;
  min-height:340px;
  position:relative;
}

/* Responsive: 2 per row on tablets, 1 on phones */
@media (max-width: 900px){
  #evidence{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 560px){
  #evidence{ grid-template-columns: 1fr; }
}

/* Footer / contact styles (centered stack) */
.site-footer{
  max-width:980px;
  margin:28px auto;
  padding:22px;
  background:var(--panel);
  border-radius:var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  box-shadow: var(--shadow);
  border:1px solid var(--border);
}

/* center block containing text + icons */
.contact-center{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

/* keep small / title styles */
.site-footer .small{
  color:var(--muted);
  font-size:0.95rem;
}
.site-footer .contact-title{
  color:var(--text);
  font-weight:600;
  font-size:1rem;
}

/* social links centered under the text */
.social-links {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  margin-top:6px;
}

.social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:10px;
  background:transparent;
  color:var(--accent);
  text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  border:1px solid rgba(107,62,38,0.06);
  padding:6px;
}

/* ensure SVGs are visible and sized */
.social-link svg{
  width:20px;
  height:20px;
  fill:currentColor; /* ensure SVG inherits text color */
  display:block;
}

/* ensure images used for social links are sized like the previous SVGs */
.social-link img{
  width:20px;
  height:20px;
  display:block;
  object-fit:contain;
}

/* hover & focus states */
.social-link:hover,
.social-link:focus{
  transform:translateY(-3px);
  background: rgba(107,62,38,0.06);
  box-shadow: 0 8px 20px rgba(107,62,38,0.08);
  outline: none;
}

/* Top navigation (simple, theme-aware) */
.top-nav{
  max-width:980px;
  margin:18px auto;
  padding:8px 16px;
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  font-family:"Merriweather", serif;
  color:var(--accent);
  font-weight:700;
  font-size:1.05rem;
  text-decoration:none;
}
.nav-links{
  display:flex;
  gap:10px;
  align-items:center;
}
.nav-link{
  display:inline-block;
  padding:8px 12px;
  border-radius:10px;
  text-decoration:none;
  color:var(--accent);
  background:transparent;
  font-weight:600;
  border:1px solid transparent;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.nav-link:hover{
  background: rgba(107,62,38,0.06);
  transform:translateY(-2px);
}
.nav-link.active,
.nav-link[aria-current="page"]{
  background:var(--accent);
  color:var(--panel);
  box-shadow: 0 6px 18px rgba(107,62,38,0.08);
  border:1px solid rgba(255,255,255,0.06);
}

/* Responsive */
@media (max-width:720px){
  .nav-inner{ flex-direction:column; align-items:flex-start; gap:8px; }
  .nav-links{ width:100%; display:flex; gap:8px; justify-content:center; }
}

/* Responsive for mobile */
@media (max-width: 700px) {
  #evidence {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 18px;
  }
  .image-card {
    min-height: 0;
    padding: 12px 6px;
  }
  .image-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .image-card p {
    font-size: 1rem;
    padding: 0;
  }
}

/* Small screens */
@media (max-width:720px){
  body{padding:18px 12px}
  .sections{padding:18px}
  thead th, tbody td{padding:10px}
  .sections h1{font-size:1.4rem} /* mobile-friendly size */
  /* mobile: stack footer */
  .site-footer{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .contact-links{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  .contact-links a{ margin-left:0; }
}