/* Add any custom colors here */
:root {
  --primary-color: #000000;
  --background-color: #ffffff;
  --accent-color: #666666;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--background-color);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* The links should be easily recognizable */
a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  transition: all 0.2s;
}
a:hover {
  color: var(--primary-color);
  border-bottom-style: solid;
}

/* The header with the title and byline */
header {
  text-align: center;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
}
.title-container {
  display: inline-block;
  margin-bottom: 1rem;
}
/* The little line that says "by yuckabug.org" */
.byline {
  text-align: right;
  font-size: 0.9rem;
}
.logo-placeholder {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.logo-box {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  overflow: hidden;
  padding: 1rem;
}
.logo-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* The description of the project */
.description {
  font-size: 1.1rem;
  text-align: center;
}
.description p {
  margin-bottom: 1rem;
}

/* The navigation links */
nav {
  text-align: center;
  margin: 1rem 0;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
nav li {
  margin-bottom: 0;
}

/* The little hint that says "try going to /.well-known/providers.txt" at the bottom */
.hint {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent-color);
  opacity: 0.8;
}
.hint a {
  color: inherit;
  opacity: inherit;
}
.hint a:hover {
  opacity: 1;
}

.spec-button-container {
  text-align: center;
  margin: 2rem 0;
}

.spec-button {
  display: inline-block;
  position: relative;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.button-text {
  display: block;
  padding: 1rem 2rem;
  background-color: var(--background-color);
  border: 2px solid var(--primary-color);
  position: relative;
  z-index: 2;
}

.button-shadow {
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 5px,
      var(--primary-color) 5px,
      var(--primary-color) 6px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 5px,
      var(--primary-color) 5px,
      var(--primary-color) 6px
    );
  opacity: 0.2;
  z-index: 1;
}

.spec-button:hover {
  border-bottom-style: solid;
}

/* 404 error page */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.1rem;
}
