:root {
  --bg: #14181c;
  --text: #e0e0c4;
  --muted: rgba(224, 224, 196, 0.75);
  --card: rgba(20, 24, 28, 0.55);
  --card-border: rgba(255, 255, 255, 0.16);
  --accent: #ffc98a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Sunrise photo pinned behind the page. A fixed pseudo-element rather than
   background-attachment: fixed, which iOS Safari ignores. The gradient keeps
   text readable over the bright sun and mist. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(10, 14, 18, 0.35), rgba(10, 14, 18, 0.55) 45%, rgba(10, 14, 18, 0.8)),
    url("/images/bg.jpg") center 30% / cover no-repeat;
}

@media (max-width: 800px) {
  body::before {
    background:
      linear-gradient(rgba(10, 14, 18, 0.35), rgba(10, 14, 18, 0.55) 45%, rgba(10, 14, 18, 0.8)),
      url("/images/bg-small.jpg") 40% 30% / cover no-repeat;
  }
}

header,
main,
footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  padding-top: 96px;
  padding-bottom: 16px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.2;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

h2 {
  margin: 56px 0 16px;
  font-size: 1.25rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 16px;
}

.apps a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: inherit;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.apps a:hover,
.apps a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.apps img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 8px;
}

.app-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.app-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact p {
  margin: 0;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.contact a {
  color: var(--accent);
  font-weight: 600;
  overflow-wrap: anywhere;
}

footer {
  padding-top: 56px;
  padding-bottom: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
