/*
Theme Name: Hudson Default
Description: The default Hudson theme, built from the former showcase layout to surface menus, archives, author pages, blocks, comments, includes, and collection loops.
Version: 1.0.0
Author: Hudson
Supports Archives: true
Supports Date Archives: true
Supports Blocks: true
Supports Menus: true
*/

:root {
  --showcase-bg: #dfe4eb;
  --showcase-panel: #ffffff;
  --showcase-panel-soft: #f5f7fa;
  --showcase-ink: #1f2933;
  --showcase-muted: #66707a;
  --showcase-line: #d6dde6;
  --showcase-accent: #2f6fed;
  --showcase-accent-strong: #1f4fb3;
  --showcase-topbar: #000000;
  --showcase-topbar-ink: #ffffff;
  --showcase-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--showcase-ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 237, 0.08), transparent 24%),
    linear-gradient(180deg, #e6ebf2 0%, var(--showcase-bg) 100%);
}

a {
  color: var(--showcase-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.showcase-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.showcase-topbar,
.showcase-hero,
.showcase-page,
.showcase-post,
.showcase-archive,
.showcase-author,
.showcase-footer {
  background: var(--showcase-panel);
  border: 1px solid var(--showcase-line);
  box-shadow: var(--showcase-shadow);
}

.showcase-topbar {
  margin-bottom: 18px;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: var(--showcase-topbar);
  border-color: #000000;
  color: var(--showcase-topbar-ink);
}

.showcase-primary-nav {
  min-width: 0;
}

.showcase-brand {
  display: grid;
  gap: 4px;
}

.showcase-brand a {
  color: var(--showcase-topbar-ink);
  font-size: 1.8rem;
  font-weight: 700;
}

.showcase-brand p,
.showcase-topbar .showcase-nav-link {
  color: rgba(255, 255, 255, 0.78);
}

.showcase-nav,
.showcase-social-list,
.showcase-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.showcase-nav {
  align-items: center;
}

.showcase-nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-menu-toggle,
.showcase-subnav-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  cursor: pointer;
}

.showcase-menu-toggle {
  display: none;
  min-height: 34px;
  padding: 0 12px;
}

.showcase-subnav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.showcase-nav-link,
.showcase-subnav-link,
.showcase-social-list a,
.showcase-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

.showcase-nav-item {
  position: relative;
}

.showcase-nav-link {
  position: relative;
  z-index: 2;
}

.showcase-subnav {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 220px;
  padding: 8px 0 0;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 20;
}

.showcase-nav-item.has-children:hover .showcase-subnav,
.showcase-nav-item.has-children:focus-within .showcase-subnav {
  display: grid;
  gap: 8px;
}

.showcase-nav-item.has-children.is-open .showcase-subnav {
  display: grid;
  gap: 8px;
}

.showcase-subnav-link {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.78);
}

.showcase-nav-item:not(.has-children) .showcase-subnav {
  display: none !important;
}

.showcase-hero,
.showcase-page,
.showcase-post,
.showcase-archive,
.showcase-author,
.showcase-footer {
  padding: 24px;
}

.showcase-hero {
  margin-bottom: 18px;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-bottom: 18px;
}

.showcase-content,
.showcase-sidebar {
  min-width: 0;
}

.showcase-content,
.showcase-post-card,
.showcase-author-card,
.showcase-page-card,
.showcase-stat {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.showcase-content,
.showcase-sidebar {
  padding: 0;
}

.showcase-content {
  background: var(--showcase-panel);
  border: 1px solid var(--showcase-line);
  box-shadow: var(--showcase-shadow);
  padding: 22px;
}

.showcase-sidebar {
  align-self: start;
  background: var(--showcase-panel);
  border: 1px solid var(--showcase-line);
  box-shadow: var(--showcase-shadow);
  padding: 22px;
}

.showcase-content > section + section,
.showcase-sidebar > section + section,
.showcase-page > section + section,
.showcase-post > section + section,
.showcase-archive > section + section,
.showcase-author > section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--showcase-line);
}

.showcase-hero h1,
.showcase-page h1,
.showcase-post h1,
.showcase-archive h1,
.showcase-author h1,
.showcase-section-heading,
.showcase-sidebar h2,
.showcase-post-card h2,
.showcase-author-card h2,
.showcase-page-card h2 {
  margin: 0 0 10px;
  line-height: 1.15;
}

.showcase-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.showcase-eyebrow,
.showcase-meta,
.showcase-section-copy,
.showcase-stat-label,
.showcase-footer p {
  color: var(--showcase-muted);
}

.showcase-eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-meta {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.showcase-post-grid,
.showcase-card-grid {
  display: grid;
  gap: 0;
}

.showcase-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.showcase-post-card,
.showcase-author-card,
.showcase-page-card {
  padding: 18px 0;
  border-top: 1px solid var(--showcase-line);
}

.showcase-post-grid > :first-child,
.showcase-card-grid > :first-child {
  border-top: 0;
  padding-top: 0;
}

.showcase-post-card p:last-child,
.showcase-author-card p:last-child,
.showcase-page-card p:last-child,
.showcase-footer p:last-child {
  margin-bottom: 0;
}

.showcase-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.showcase-stat {
  padding: 0;
}

.showcase-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.5rem;
  line-height: 1;
}

.showcase-empty-state {
  margin: 0;
  padding: 14px 16px;
  background: var(--showcase-panel-soft);
  border: 1px solid var(--showcase-line);
  color: var(--showcase-muted);
}

.showcase-rich-content p,
.showcase-rich-content ul,
.showcase-rich-content ol,
.showcase-rich-content blockquote,
.showcase-rich-content pre {
  margin: 0 0 16px;
}

.showcase-rich-content blockquote {
  margin-left: 0;
  padding-left: 14px;
  border-left: 3px solid var(--showcase-line);
  color: var(--showcase-muted);
}

.showcase-empty {
  padding: 16px;
  border: 1px dashed var(--showcase-line);
  background: var(--showcase-panel-soft);
}

.content-card {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--showcase-line);
}

.section-label {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--showcase-muted);
}

.comment-form-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--showcase-line);
  background: var(--showcase-panel-soft);
}

.comment-form-notice.success {
  border-color: #b9d7c8;
  background: #eef8f1;
}

.comment-form-notice.error {
  border-color: #e0bfc4;
  background: #fbf1f3;
}

.comment-form-notice ul {
  margin: 0;
  padding-left: 18px;
}

.comment-form {
  display: grid;
  gap: 16px;
}

.comment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--showcase-line);
  background: #ffffff;
  color: var(--showcase-ink);
  font: inherit;
}

.comment-form textarea {
  min-height: 180px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid rgba(47, 111, 237, 0.18);
  border-color: var(--showcase-accent);
}

.comment-form .meta-line {
  margin: 8px 0 0;
  color: var(--showcase-muted);
  font-size: 0.9rem;
}

.comment-form button[type="submit"] {
  justify-self: start;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--showcase-accent-strong);
  background: var(--showcase-accent);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.comment-form button[type="submit"]:hover {
  background: var(--showcase-accent-strong);
}

.comment-card {
  padding: 18px 0;
  border-top: 1px solid var(--showcase-line);
}

.comment-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.comment-card.is-reply {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 2px solid var(--showcase-line);
}

.comment-card h3 {
  margin: 0 0 8px;
  line-height: 1.2;
}

.showcase-author-links,
.showcase-taxonomy-list,
.showcase-archive-month-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.showcase-author-links li,
.showcase-taxonomy-list li,
.showcase-archive-month-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--showcase-line);
}

.showcase-author-links li:last-child,
.showcase-taxonomy-list li:last-child,
.showcase-archive-month-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.showcase-chip-list {
  gap: 8px;
}

.showcase-chip {
  background: #eef3ff;
  border-color: #d9e5ff;
  color: var(--showcase-accent-strong);
}

@media (hover: none), (pointer: coarse) {
  .showcase-nav-item.has-children .showcase-subnav-toggle {
    display: inline-flex;
  }

  .showcase-nav-item.has-children:hover .showcase-subnav,
  .showcase-nav-item.has-children:focus-within .showcase-subnav {
    display: none;
  }

  .showcase-nav-item.has-children.is-open .showcase-subnav {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .comment-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .showcase-shell {
    width: min(100%, calc(100% - 20px));
  }

  .showcase-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding: 16px 18px;
  }

  .showcase-brand {
    min-width: 0;
  }

  .showcase-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .showcase-primary-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
  }

  .showcase-primary-nav.is-open {
    display: block;
  }

  .showcase-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-nav-item {
    width: 100%;
  }

  .showcase-nav-row {
    width: 100%;
  }

  .showcase-nav-link {
    flex: 1 1 auto;
  }

  .showcase-nav-item.has-children .showcase-subnav-toggle {
    display: inline-flex;
  }

  .showcase-subnav {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .showcase-nav-item.has-children:hover .showcase-subnav,
  .showcase-nav-item.has-children:focus-within .showcase-subnav {
    display: none;
  }

  .showcase-nav-item.has-children.is-open .showcase-subnav {
    display: grid;
    gap: 8px;
  }

  .showcase-subnav-link {
    margin-left: 16px;
  }

  .showcase-hero,
  .showcase-page,
  .showcase-post,
  .showcase-archive,
  .showcase-author,
  .showcase-footer {
    padding: 20px;
  }

  .showcase-layout {
    padding: 14px;
  }
}
