@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  min-height: 100%;
  background-color: #fbf8f2;
  background-image: url('/rsc/watercolor-background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

body {
  min-height: 100%;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* ---- Header ---- */
.page-header {
  position: relative;
  width: 100%;
  height: 108px;
  overflow: visible;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
}

.header-logo {
  padding-bottom: 1rem;
}

.header-logo img {
  height: 66px;
  width: auto;
  display: block;
}

.header-character {
  padding: 8px 0;
  align-self: center;
}

.header-character img {
  height: 80px;
  width: auto;
  display: block;
}

/* ---- Back arrow ---- */
.back-arrow {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  z-index: 2;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* ---- Main content ---- */
main {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.content-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem 2rem 2.5rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

.content-card h1 {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}

.last-updated {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 2rem;
}

.content-card h2 {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 1.75rem 0 0.5rem;
  letter-spacing: 0.01em;
}

.content-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #555;
}

.content-card p + p {
  margin-top: 0.75rem;
}

.content-card a {
  color: #3a8c5c;
}

.content-card a.home-btn {
  color: #ffffff;
}

/* ---- Home button ---- */
.home-btn {
  display: block;
  width: fit-content;
  margin: 2rem auto 0;
  padding: 0.65rem 2.25rem;
  background: #3a8c5c;
  color: #ffffff;
  border-radius: 2rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.home-btn:hover {
  background: #2f7a4e;
}

/* ---- Footer ---- */
.page-footer {
  text-align: center;
  padding: 1rem 1rem 2rem;
  font-family: -apple-system, sans-serif;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.03em;
}

.page-footer .sep {
  margin: 0 0.1em;
}

.page-footer a {
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 460px) {
  .header-character {
    display: none;
  }

  .content-card {
    padding: 1.5rem 1.25rem 2rem;
    border-radius: 0.75rem;
  }
}
