/* Reset */
html {
  box-sizing: border-box;
  font-size: 20px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body,
h1,
p,
ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

img {
  max-width: 100%;
  height: auto;
}

/* Style */
@property --rhythm {
  syntax: "<length>";
  inherits: true;
  initial-value: 48px;
}

body {
  color: #4a5568;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.7;
  padding: calc(var(--rhythm) / 2);
  min-height: 100vh;
  gap: calc(var(--rhythm) / 2);

  display: flex;
  flex-direction: column;
  align-items: center;
}

main,
footer {
  max-width: 960px;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

main {
  padding: var(--rhythm) var(--rhythm) calc(var(--rhythm) * 1.5);
  gap: calc(var(--rhythm) * 1.5);
}

h1 {
  text-align: center;
  font-weight: 600;
  color: #1a365d;
  letter-spacing: -0.5px;
  line-height: 1.2;

  font-size: 2.3rem;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-image img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.description {
  background: #f4f8fb;
  padding: calc(var(--rhythm) * 2 / 3);
  border-radius: 12px;
  gap: 16px;
  display: flex;
  flex-direction: column;
}

.actions {
  text-align: center;
}

a.button {
  display: inline-block;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 16px 32px;
  font-weight: 500;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

footer {
  text-align: center;
  margin-top: auto;

  padding: calc(var(--rhythm) / 2);
}

footer p {
  font-size: 0.9rem;
}

footer a {
  color: #4299e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #2b6cb0;
  text-decoration: underline;
}

.github-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.1em;
}

@media (max-width: 768px) {
  body {
    --rhythm: 20px;
    font-size: 18px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .description {
    padding: var(--rhythm);
  }

  a.button {
    padding: calc(var(--rhythm) * 0.75) calc(var(--rhythm) * 1.2);
  }

  footer {
    padding: var(--rhythm) calc(var(--rhythm) * 8 / 10);
  }
}

@media (max-width: 480px) {
  body {
    --rhythm: 16px;
  }
}
