/* About Jerry page */

:root {
  --bg: #f1e9df;
  --panel: #b66a45;
  --card: #fff7ee;
  --text: #111;
  --shadow: rgba(57, 33, 20, 0.22);
  --border: rgba(80, 40, 20, 0.2);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: #111; }

.page-header {
  position: relative;
  min-height: 360px;
  padding: 54px 7vw;
  background:
    linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.24)),
    url("../img/about/about-hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

.home-button {
  position: absolute;
  top: 28px;
  right: 9vw;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(100,157,229,.9);
  color: #11233f;
  font-size: 1.55rem;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.hero-card {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 42px;
  align-items: center;
}

.hero-photo {
  width: 210px;
  height: 235px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.hero-text { color: #fff; text-shadow: 0 2px 7px rgba(0,0,0,.75); }
.eyebrow { margin: 0 0 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.hero-text h1 { margin: 0 0 8px; font-size: clamp(2.7rem, 7vw, 4.6rem); line-height: .95; }
.hero-text p { max-width: 720px; margin: 0; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.65; font-weight: 700; }

.social-row { display: flex; gap: 14px; margin-top: 22px; }
.social-row a {
  color: #050505;
  background: rgba(255,255,255,.75);
  text-decoration: none;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.content-section { width: min(980px, calc(100% - 28px)); margin: 34px auto; }

.story-card, .contact-card {
  background: var(--panel);
  color: #000;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 46px);
  box-shadow: 0 14px 34px var(--shadow);
  border: 1px solid var(--border);
}

.story-card h2, .contact-card h2, .section-heading h2 {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
}

.story-card p, .contact-card p, .section-heading p { line-height: 1.75; font-size: 1rem; }

.card-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 24px; }

.button-link {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 18px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.section-heading {
  margin: 0 0 18px;
  background: var(--panel);
  border-radius: 22px;
  padding: 28px 34px;
  box-shadow: 0 14px 34px var(--shadow);
}

.section-heading p { margin-bottom: 0; }

.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.article-card {
  background: var(--card);
  border-radius: 18px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: #111;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}

.article-card:hover, .article-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0,0,0,.25);
}

.article-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #eee;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.1);
}

.article-card span { display: block; margin-top: 10px; line-height: 1.25; }

.contact-card {
  width: min(980px, calc(100% - 28px));
  margin: 34px auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.page-footer { text-align: center; padding: 26px 16px 40px; color: #333; }
.page-footer a { font-weight: 700; }

@media (max-width: 820px) {
  .hero-card { grid-template-columns: 170px 1fr; gap: 26px; }
  .hero-photo { width: 170px; height: 195px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-header { padding: 72px 18px 34px; }
  .home-button { top: 18px; right: 18px; }
  .hero-card { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .hero-photo { margin: 0 auto; width: 190px; height: 215px; }
  .social-row { justify-content: center; }
  .card-row { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card img { height: 230px; }
  .story-card, .contact-card, .section-heading { border-radius: 18px; }
}
