/* ============================================
   Death Putt Game — Stylesheet
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #c8c8c8;
  background-color: #181818;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  padding: 3rem 0;
}

/* Header & Nav
   ============================================ */
header {
  background-color: #222222;
  border-bottom: 1px solid #2e2e2e;
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  text-transform: uppercase;
  font-stretch: condensed;
  line-height: 1;
  white-space: nowrap;
}

.site-title:hover {
  color: #ffffff;
}

nav ul {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #888;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  transition: color 0.15s ease, background-color 0.15s ease;
  text-transform: uppercase;
}

nav a:hover {
  color: #f0f0f0;
  background-color: #2e2e2e;
}

nav a[aria-current="page"] {
  color: #f0f0f0;
  font-weight: 700;
  background-color: #2e2e2e;
}

/* Footer
   ============================================ */
footer {
  border-top: 1px solid #2e2e2e;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #555;
  background-color: #1e1e1e;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

footer nav ul {
  gap: 1.25rem;
}

footer nav a {
  font-size: 0.8rem;
  color: #555;
  padding: 0;
  background: none;
  text-transform: none;
  letter-spacing: 0;
}

footer nav a:hover {
  color: #aaa;
  background: none;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a {
  color: #555;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.social-links a:hover {
  color: #c8c8c8;
}

/* Hero (index only)
   ============================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  gap: 1.5rem;
}

.hero-logo {
  width: 220px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.06));
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f0f0f0;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 1rem;
  color: #666;
  max-width: 420px;
  line-height: 1.6;
}

.hero-sub p {
  color: #666;
  margin-bottom: 0;
}

.divider {
  width: 40px;
  height: 2px;
  background: #333;
  margin: 0 auto;
}

/* CTA Button
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #444;
  color: #c8c8c8;
  border-radius: 3px;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  border-color: #888;
  color: #f0f0f0;
  background-color: #2a2a2a;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
}

/* Page header (inner pages)
   ============================================ */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #272727;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #f0f0f0;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Content blocks
   ============================================ */
.content-block {
  max-width: 640px;
}

.content-block h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #e0e0e0;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  color: #777;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Feedback link block
   ============================================ */
.feedback-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
  background: #1e1e1e;
  color: #c8c8c8;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.feedback-cta:hover {
  border-color: #555;
  color: #f0f0f0;
  text-decoration: none;
}

.feedback-cta .arrow {
  font-size: 1rem;
  color: #555;
  transition: transform 0.15s ease, color 0.15s ease;
}

.feedback-cta:hover .arrow {
  transform: translateX(3px);
  color: #888;
}

/* Contact details
   ============================================ */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-item .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444;
}

.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: #888;
  transition: color 0.15s ease;
}

.contact-item a:hover {
  color: #f0f0f0;
  text-decoration: none;
}

/* Directions page
   ============================================ */
.directions-body {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.dir-section h2 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #272727;
}

.rule-block {
  margin-bottom: 1.75rem;
}

.rule-block:last-child {
  margin-bottom: 0;
}

.rule-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.rule-block p {
  font-size: 0.925rem;
  color: #777;
  margin-bottom: 0.4rem;
}

.rule-block p:last-child {
  margin-bottom: 0;
}

.rule-list {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.rule-list li {
  font-size: 0.925rem;
  color: #777;
  padding-left: 1rem;
  position: relative;
}

.rule-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #3a3a3a;
}

.rule-optional {
  font-size: 0.85rem !important;
  color: #555 !important;
  font-style: italic;
  margin-top: 0.5rem;
}

.rule-note {
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 0;
}

.rule-tip {
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* Card type grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #272727;
  border: 1px solid #272727;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0;
}

.card-type {
  background: #1e1e1e;
  padding: 1rem 1.125rem;
}

.card-type p {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.card-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.card-label--legendary { background: #2a2215; color: #c9a84c; }
.card-label--turn      { background: #152230; color: #5b9fcc; }
.card-label--instant   { background: #152215; color: #5bcc7a; }
.card-label--curse     { background: #2a1515; color: #cc5b5b; }

/* Optional list */
.optional-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.optional-list li {
  font-size: 0.925rem;
  color: #777;
  padding-left: 1rem;
  position: relative;
}

.optional-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #3a3a3a;
}

/* Other section */
.dir-section--other p {
  font-size: 0.925rem;
  color: #666;
}

.other-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid #272727;
  border-radius: 4px;
  overflow: hidden;
}

.other-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #272727;
  color: #777;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.other-link:last-child {
  border-bottom: none;
}

.other-link:hover {
  background-color: #1e1e1e;
  color: #c8c8c8;
  text-decoration: none;
}

.other-link-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.6;
}

.email-inline {
  color: #555;
  font-style: italic;
}

.sign-off {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: #444;
  font-style: italic;
}

@media (max-width: 540px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Typography
   ============================================ */
h1, h2, h3 {
  color: #e0e0e0;
}

p {
  color: #777;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Utility
   ============================================ */
.text-muted {
  color: #555;
}

/* Mobile
   ============================================ */
@media (max-width: 640px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 2.5rem 1rem 2rem;
  }

  .hero-logo {
    width: 160px;
  }

  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
