/* ============================================================
   Conaway.org — Main Stylesheet
   Responsive, modern redesign
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Oswald:wght@300;400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:         #f5f4f1;
  --color-surface:    #ffffff;
  --color-border:     #e2ddd6;
  --color-text:       #2c2a26;
  --color-text-muted: #7a7368;
  --color-accent:     #b85c2a;
  --color-accent-dk:  #8f4420;
  --color-year-bg:    #2c2a26;
  --color-year-text:  #f5f4f1;
  --card-radius:      6px;
  --shadow-card:      0 2px 8px rgba(0,0,0,0.09), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover:     0 6px 20px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.08);
  --transition:       0.22s ease;
  --font-display:     'Oswald', sans-serif;
  --font-body:        'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0px;
}

body {
  font-family: var(--font-body);
  background-color: #E0E4E9;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 2rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Site Nav ── */
#navmenu {
  /* position: sticky; */
  top: 0;
  z-index: 100;
  background: #fff;
  text-align: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  /* allow height to grow naturally so all buttons are visible */
}

#navmenu a.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #1b1b2b;
  padding: 12px 10px;
  margin: 4px 1px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

#navmenu a.btn:hover {
  background: #fa6362;
  color: #fff;
  transform: scaleY(1.18);
}

/* ── StacyConaway.net link bar ── */
#scnet_link {
  font-family: Oswald, Helvetica Neue, Helvetica, Arial, sans-serif;
  text-align: center;
  font-size: 1.2em;
  color: #888;
  padding: 10px 16px 0;
  letter-spacing: 0.04em;
}

#scnet_link a {
  color: var(--color-accent);
  font-weight: 500;
  transition: #bf5700;;
}

#scnet_link a:hover {
  color: #888;
}

/* ── Site Header Image ── */
#header {
  width: 100%;
  /* max-height: 280px;
  overflow: hidden; */
  margin-top: 14px;
}

#header img {
  width: 100%;
  /* height: 280px; */
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 6px;
}

/* ── Color stripe at top of wrapper ── */
#colortop {
  margin: 0 -30px;
  height: 20px;
  background: url('i/bg-colorstripe.png') center top repeat-x;
  border-radius: 6px 6px 0 0;
}

/* ── Main Wrapper ── */
#wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  box-shadow: -4px 0 18px rgba(0,0,0,0.18), 4px 0 18px rgba(0,0,0,0.18);
  padding: 0 30px 60px;
  border-radius: 6px;
}

/* ── Year Section ── */
.year-section {
  margin-top: 68px; /* 48px */
}

.year-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  scroll-margin-top: 120px;
}

.year-heading a {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
  line-height: 1;
}

.year-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--color-border);
  border-radius: 1px;
  order: 2;
}

.year-top-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
  padding: 4px 0;
  cursor: pointer;
  order: 3;
}

.year-top-link:hover {
  color: var(--color-accent);
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

/* ── Individual Card ── */
.card {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  background: var(--color-border);
}

.card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.card-subtitle {
  font-size: 11.5px;
  color: #555;
  font-weight: 400;
  line-height: 1.3;
}

/* ── Footer ── */
#footer {
  margin-top: 60px;
  padding: 24px 0 16px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* ── Responsive breakpoints ── */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 600px) {
  #navmenu {
    padding: 12px 16px;
  }

  #navmenu a.btn {
    font-size: 12px;
    padding: 8px 8px;
    letter-spacing: 1.5px;
  }

  #header img {
    height: 160px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 11px;
  }

  .year-heading a {
    font-size: 26px;
  }

  .year-section {
    margin-top: 36px;
  }
}

@media (max-width: 400px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
