/*!
 * 
 * Copyright (c) 2025-2026 David Uhden Collado <david@uhden.dev>
 * 
 * Permission to use, copy, modify, and distribute this cascading style sheet 
 * for any purpose with or without fee is hereby granted, provided that the
 * above copyright notice and this permission notice appear in all copies.
 * 
 * THE CASCADING STYLE SHEET IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 
 * WARRANTIES WITH REGARD TO THIS CASCADING STYLE SHEET INCLUDING ALL IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE 
 * LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY 
 * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 
 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS CASCADING STYLE SHEET.
 */

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: 2rem 1rem;
  color: #111827;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

#site-header,
#site-footer {
  max-width: 560px;
  width: 100%;
}

.site-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -9999px;
  z-index: 1000;
  padding: 0.45rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body, p, li, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Protect code and pre from forced breaks */
code, pre, kbd, samp {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

pre {
  white-space: pre;
  overflow-x: auto;
}

code {
  white-space: pre-wrap;
}

.card {
  max-width: 560px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

h1 {
  margin: 0 0 0.5rem;
}

p {
  margin: 0.5rem 0;
}

.card ol,
.card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.8rem;
  display: inline-block;
  text-align: left;
}

li {
  margin: 0.25rem 0;
}

form {
  margin-top: 1rem;
}

input,
button {
  max-width: 100%;
  padding: 0.45rem;
  font: inherit;
}

a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media print, (forced-colors: active) {
  body {
    display: block;
    min-height: auto;
    padding: 1rem;
    background: #fff;
    color: #000;
    text-align: start;
  }

  .card {
    max-width: 76ch;
    border-color: currentcolor;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem;
  }
}

.meta {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #374151;
}
