/* ==========================================================================
   The NFT Handbook - Static HTML/CSS Stylesheet
   Recreated from the WordPress Twenty Twenty theme layout & color palette
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-accent: #177db4;
  --color-accent-hover: #12638f;
  --color-secondary: #6d6d6d;
  --color-border: #dbdbdb;
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
  --font-serif: "NonBreakingSpaceOverride", "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.faux-heading {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 2rem 0 1rem;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1.5rem;
}

ul, ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color 0.15s ease-in-out;
}

a:hover,
a:focus {
  color: var(--color-accent-hover);
  text-decoration: none;
}

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

figure {
  margin: 2rem 0;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.aligncenter img {
  margin-left: auto;
  margin-right: auto;
}

.has-text-align-center {
  text-align: center;
}

.has-large-font-size {
  font-size: 1.65rem;
  line-height: 1.35;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Layout Containers */
.section-inner {
  max-width: 1200px;
  width: calc(100% - 4rem);
  margin-left: auto;
  margin-right: auto;
}

.post-inner {
  max-width: 580px;
  width: calc(100% - 2.5rem);
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 0 4rem;
}

/* Header */
#site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  gap: 2rem;
}

.header-titles-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.site-title a {
  color: var(--color-text);
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: underline;
}

.site-description {
  color: var(--color-secondary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

/* Navigation */
.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
}

.primary-menu li {
  margin: 0;
}

.primary-menu a {
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item a {
  text-decoration: underline;
}

.primary-menu .current-menu-item a {
  font-weight: 700;
}

/* Mobile Menu Toggle (CSS-only checkbox or simple JS toggle) */
.nav-toggle-checkbox {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  align-items: center;
  gap: 0.4rem;
}

.mobile-nav-toggle svg {
  fill: currentColor;
}

/* Author Bios Layout */
.author-section {
  margin-bottom: 3.5rem;
}

.author-section img {
  margin: 1.5rem auto;
  max-width: 280px;
}

/* Resources & NFTs Lists */
.resource-category {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.resource-list,
.nft-list {
  margin-bottom: 2rem;
}

.resource-list li,
.nft-list li {
  margin-bottom: 0.4rem;
}

/* Contact Form */
.contact-form {
  font-family: var(--font-sans);
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: #cf2e2e;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sub-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-secondary);
  margin-top: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background-color: #fff;
  color: var(--color-text);
}

.form-control:focus {
  outline: 2px solid var(--color-accent);
  border-color: var(--color-accent);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.btn-submit:hover,
.btn-submit:focus {
  background-color: var(--color-accent-hover);
}

/* Footer & Social Icons */
.footer-nav-widgets-wrapper {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.footer-top {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.social-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}

.social-menu li {
  margin: 0;
}

.social-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.social-menu a:hover,
.social-menu a:focus {
  background-color: var(--color-accent-hover);
  transform: scale(1.08);
}

.social-menu svg {
  fill: currentColor;
  width: 22px;
  height: 22px;
}

#site-footer {
  padding: 2.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

#site-footer .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-copyright {
  margin: 0;
  font-weight: 700;
}

.footer-copyright a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

.to-the-top {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
}

.to-the-top:hover {
  text-decoration: underline;
  color: var(--color-text);
}

.to-the-top-short {
  display: none;
}

/* Responsive Design (Mobile & Tablet) */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 0;
    gap: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .header-navigation-wrapper {
    display: none;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--color-border);
  }

  .nav-toggle-checkbox:checked ~ .header-navigation-wrapper {
    display: block;
  }

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .primary-menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.65rem;
  }

  .primary-menu li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .primary-menu a {
    display: block;
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1.1rem;
  }

  .section-inner {
    width: calc(100% - 2.5rem);
  }

  .post-inner {
    padding: 2rem 0 3rem;
  }

  .site-title {
    font-size: 1.35rem;
  }

  .site-description {
    font-size: 0.875rem;
  }

  .has-large-font-size {
    font-size: 1.35rem;
  }

  .name-row {
    grid-template-columns: 1fr;
  }

  .to-the-top-long {
    display: none;
  }

  .to-the-top-short {
    display: inline;
  }
}

