:root {
  --paper: #f7f1e1;
  --ink: #2b2a26;
  --muted: #5a564b;
  --border: #d8cdb2;
  --card: #fffaf0;
  --accent: #7b4a12;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 18px;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

/* Center content */
.page-header,
h2,
img,
.about-grid,
.links {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Header styling */
.page-header {
  text-align: center;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.6);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-bottom: 18px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 2.6rem;
  letter-spacing: 0.5px;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Image */
img {
  display: block;
  width: min(150px, 90%);
  height: auto;
  margin-top: 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Section headings */
h2 {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 1.55rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  opacity: 0.55;
}

.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }

/* Link section styling */
.links {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.55);
}

.links p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(123, 74, 18, 0.35);
}

a:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 650px) {
  .about-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 2.15rem; }
}
