/*
Theme Name: Arrested TN Shell
Theme URI: https://arrestedtn.com/
Author: Arrested TN
Description: A restrained header and footer theme built to leave DRY Records shortcodes visually independent.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arrested-tn-shell
*/

:root {
  --atn-bg: #eef1f4;
  --atn-surface: #ffffff;
  --atn-ink: #121820;
  --atn-muted: #66717f;
  --atn-line: #d8dde4;
  --atn-header: #080b0f;
  --atn-header-soft: #111720;
  --atn-gold: #c8a15a;
  --atn-gold-bright: #e0bc74;
  --atn-shell: 1280px;
  --atn-reading: 760px;
}

html {
  scroll-behavior: smooth;
}

html.atn-menu-open {
  overflow: hidden;
}

html.atn-menu-open body {
  overflow: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--atn-bg);
}

.atn-site-header,
.atn-site-header *,
.atn-site-header *::before,
.atn-site-header *::after,
.atn-site-footer,
.atn-site-footer *,
.atn-site-footer *::before,
.atn-site-footer *::after,
.atn-main:not(.atn-main--shortcode),
.atn-main:not(.atn-main--shortcode) *,
.atn-main:not(.atn-main--shortcode) *::before,
.atn-main:not(.atn-main--shortcode) *::after {
  box-sizing: border-box;
}

.atn-site-header,
.atn-site-footer,
.atn-main:not(.atn-main--shortcode) {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.atn-site-header img,
.atn-site-footer img,
.atn-main:not(.atn-main--shortcode) img {
  max-width: 100%;
  height: auto;
}

.atn-shell {
  width: min(var(--atn-shell), 100%);
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 34px);
}

.atn-skip-link {
  position: fixed;
  z-index: 100000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
}

.atn-skip-link:focus {
  transform: translateY(0);
}

/* Header */

.atn-slim-header {
  position: relative;
  z-index: 50;
  flex: 0 0 auto;
  width: 100%;
  border-bottom: 1px solid rgba(91, 141, 204, 0.3);
  background:
    radial-gradient(circle at top left, rgba(65, 120, 190, 0.2), transparent 32%),
    linear-gradient(135deg, #06101f 0%, #071b33 48%, #030914 100%);
  color: #e7eef8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.atn-slim-header.atn-header-is-scrolled {
  border-bottom-color: rgba(127, 180, 255, 0.38);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.atn-slim-header-inner {
  width: min(var(--atn-shell), 100%);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-inline: auto;
  padding: 12px 18px;
}

.atn-header-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.atn-header-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.atn-header-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.atn-header-logo img {
  width: auto;
  max-width: 38px;
  max-height: 38px;
  display: block;
  border-radius: 10px;
}

.atn-header-logo-fallback {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 180, 255, 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #9fc8ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.atn-header-title-wrap {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.atn-header-site-title {
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.atn-header-site-title:hover,
.atn-header-site-title:focus-visible {
  color: #7fb4ff;
}

.atn-header-tagline {
  overflow: hidden;
  max-width: 340px;
  margin: 0;
  color: #b8c8dc;
  font-size: 11.5px;
  line-height: 1.25;
  opacity: 0.92;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atn-header-nav-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.atn-header-nav {
  min-width: 0;
}

.atn-nav-list,
.atn-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.atn-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.atn-nav-list > li {
  display: flex;
  align-items: center;
}

.atn-nav-list a {
  display: inline-flex;
  align-items: center;
  color: #e7eef8;
  padding: 5px 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  opacity: 0.92;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.atn-nav-list a:hover,
.atn-nav-list a:focus-visible {
  color: #7fb4ff;
  opacity: 1;
  transform: translateY(-1px);
}

.atn-nav-list .current-menu-item > a,
.atn-nav-list .current_page_item > a {
  color: #9fc8ff;
  opacity: 1;
}

.atn-menu-toggle,
.atn-menu-close {
  display: none;
  border: 1px solid rgba(127, 180, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.atn-menu-toggle {
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  padding: 7px;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.atn-menu-toggle:hover,
.atn-menu-toggle:focus-visible,
.atn-menu-close:hover,
.atn-menu-close:focus-visible {
  border-color: rgba(127, 180, 255, 0.55);
  background: rgba(127, 180, 255, 0.14);
}

.atn-menu-icon,
.atn-menu-icon::before,
.atn-menu-icon::after {
  width: 22px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.atn-menu-icon {
  position: relative;
}

.atn-menu-icon::before,
.atn-menu-icon::after {
  position: absolute;
  left: 0;
}

.atn-menu-icon::before {
  top: -7px;
}

.atn-menu-icon::after {
  top: 7px;
}

.atn-menu-close-icon,
.atn-menu-close-icon::after {
  width: 24px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.atn-menu-close-icon {
  position: relative;
  transform: rotate(45deg);
}

.atn-menu-close-icon::after {
  position: absolute;
  inset: 0;
  transform: rotate(90deg);
}

.atn-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.atn-site-header :where(a, button):focus-visible,
.atn-site-footer a:focus-visible {
  outline: 2px solid #7fb4ff;
  outline-offset: 3px;
}

/* Content */

.atn-main {
  width: min(1120px, 100%);
  flex: 1 0 auto;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 3vw, 34px);
}

.atn-content-header {
  width: min(var(--atn-reading), 100%);
  margin: 0 auto clamp(24px, 4vw, 40px);
}

.atn-content-kicker {
  margin: 0 0 7px;
  color: #8a682c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.atn-content-title {
  margin: 0;
  color: var(--atn-ink);
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.atn-entry-content.atn-prose {
  width: min(var(--atn-reading), 100%);
  margin-inline: auto;
}

.atn-prose :where(p, li) {
  color: #303946;
}

.atn-prose :where(h2, h3, h4) {
  margin-top: 1.8em;
  color: var(--atn-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.atn-prose a {
  color: #75541c;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.atn-prose a:hover {
  color: #3e2b0c;
}

.atn-prose blockquote {
  margin: 28px 0;
  border-left: 3px solid var(--atn-gold);
  background: #fff;
  padding: 18px 22px;
}

.atn-prose code {
  border-radius: 3px;
  background: #e1e5ea;
  padding: 2px 5px;
}

.atn-post-list {
  display: grid;
  gap: 18px;
}

.atn-post-card {
  border: 1px solid var(--atn-line);
  background: var(--atn-surface);
  padding: clamp(20px, 3vw, 30px);
}

.atn-post-card h2,
.atn-post-card h1 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.atn-post-card h2 a {
  color: var(--atn-ink);
  text-decoration: none;
}

.atn-post-card h2 a:hover {
  color: #75541c;
}

.atn-post-meta {
  margin: 7px 0 18px;
  color: var(--atn-muted);
  font-size: 12px;
}

.atn-pagination {
  margin-top: 28px;
}

.atn-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.atn-pagination a,
.atn-pagination span {
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--atn-line);
  background: #fff;
  color: var(--atn-ink);
  padding: 7px 10px;
  text-decoration: none;
}

.atn-pagination .current {
  border-color: #947235;
  background: #947235;
  color: #fff;
}

/*
 * Shortcode canvas: reset only WordPress's host wrappers.
 * DRY Records owns every visual rule inside its shortcode root.
 */

.atn-shortcode-page .atn-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.atn-shortcode-page .atn-page,
.atn-shortcode-page .atn-entry-content--shortcode,
.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-columns,
.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-group,
.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-shortcode,
.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-columns > .wp-block-column,
.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-columns > .wp-block-column > .wp-block-shortcode,
.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-group > .wp-block-columns,
.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-group > .wp-block-columns > .wp-block-column,
.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-group > .wp-block-columns > .wp-block-column > .wp-block-shortcode {
  width: 100%;
  max-width: none;
  margin: 0;
}

.atn-shortcode-page .atn-entry-content--shortcode > .alignfull,
.atn-shortcode-page .atn-entry-content--shortcode > .alignwide {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-columns,
.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-group > .wp-block-columns {
  gap: 0;
  margin-block: 0;
}

.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-columns > .wp-block-column,
.atn-shortcode-page .atn-entry-content--shortcode > .wp-block-group > .wp-block-columns > .wp-block-column {
  min-width: 0;
}

/* Footer */

.atn-slim-footer {
  flex: 0 0 auto;
  width: 100%;
  border-top: 1px solid rgba(91, 141, 204, 0.34);
  background:
    radial-gradient(circle at top left, rgba(65, 120, 190, 0.22), transparent 30%),
    linear-gradient(135deg, #06101f 0%, #071b33 46%, #030914 100%);
  color: #e7eef8;
  padding: 16px 18px 14px;
}

.atn-slim-footer-inner,
.atn-footer-disclaimer-row {
  width: min(var(--atn-shell), 100%);
  margin-inline: auto;
}

.atn-slim-footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.atn-footer-brand {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.atn-footer-logo,
.atn-footer-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.atn-footer-logo img {
  width: auto;
  max-width: 36px;
  max-height: 36px;
  display: block;
  border-radius: 9px;
}

.atn-footer-logo-fallback {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(127, 180, 255, 0.34);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: #9fc8ff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.atn-footer-title-wrap {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.atn-footer-site-title {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: color 180ms ease;
}

.atn-footer-site-title:hover,
.atn-footer-site-title:focus-visible {
  color: #7fb4ff;
}

.atn-footer-tagline {
  max-width: 340px;
  margin: 0;
  color: #b8c8dc;
  font-size: 12px;
  line-height: 1.35;
}

.atn-footer-nav {
  min-width: 0;
}

.atn-footer-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.atn-footer-menu a {
  display: inline-flex;
  color: #e7eef8;
  padding: 3px 0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.9;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.atn-footer-menu a:hover,
.atn-footer-menu a:focus-visible {
  color: #7fb4ff;
  opacity: 1;
  transform: translateY(-1px);
}

.atn-footer-disclaimer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 9px;
}

.atn-footer-disclaimer {
  max-width: 840px;
  flex: 1 1 560px;
  margin: 0;
  color: #b8c8dc;
  font-size: 11.5px;
  line-height: 1.45;
}

.atn-footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #8fa3bd;
  font-size: 11.5px;
  line-height: 1.45;
  white-space: nowrap;
}

.atn-footer-copyright {
  margin: 0;
}

.atn-footer-legal a {
  color: #b8c8dc;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .atn-slim-header-inner {
    min-height: 58px;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .atn-header-brand {
    max-width: calc(100% - 56px);
  }

  .atn-header-tagline {
    display: none;
  }

  .atn-js .atn-menu-toggle {
    display: grid;
  }

  .atn-js .atn-header-nav {
    display: none;
  }

  .atn-js .atn-header-nav.is-open {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: block;
    overflow-y: auto;
    background:
      radial-gradient(circle at top left, rgba(65, 120, 190, 0.2), transparent 32%),
      linear-gradient(135deg, #06101f 0%, #071b33 52%, #030914 100%);
    color: #e7eef8;
    padding: 88px 20px 28px;
  }

  .atn-js .atn-header-nav.is-open .atn-menu-close {
    position: fixed;
    z-index: 1000000;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }

  .atn-header-nav .atn-nav-list {
    width: min(620px, 100%);
    display: grid;
    align-items: stretch;
    justify-content: stretch;
    gap: 10px;
    margin-inline: auto;
  }

  .atn-nav-list > li {
    display: block;
    width: 100%;
  }

  .atn-nav-list a {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(127, 180, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    color: #e7eef8;
    padding: 14px 16px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    opacity: 1;
  }

  .atn-nav-list a:hover,
  .atn-nav-list a:focus-visible {
    border-color: rgba(127, 180, 255, 0.38);
    background: rgba(127, 180, 255, 0.13);
    color: #9fc8ff;
    transform: none;
  }

  html:not(.atn-js) .atn-slim-header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  html:not(.atn-js) .atn-header-nav-wrap,
  html:not(.atn-js) .atn-header-nav {
    width: 100%;
  }

  html:not(.atn-js) .atn-header-nav .atn-nav-list {
    padding-top: 8px;
  }
}

@media (max-width: 782px) {
  .atn-slim-footer {
    padding: 14px 14px 13px;
  }

  .atn-slim-footer-inner {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
  }

  .atn-footer-brand,
  .atn-footer-nav {
    width: 100%;
    min-width: 0;
  }

  .atn-footer-menu {
    justify-content: flex-start;
    gap: 10px 13px;
  }

  .atn-footer-menu a {
    font-size: 12.5px;
  }

  .atn-footer-disclaimer-row {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
    margin-top: 10px;
    padding-top: 9px;
  }

  .atn-footer-disclaimer,
  .atn-footer-legal {
    flex-basis: 100%;
    font-size: 11px;
  }

  .atn-footer-legal {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .atn-slim-header-inner {
    padding-right: 14px;
    padding-left: 14px;
  }

  .atn-header-logo img {
    max-width: 34px;
    max-height: 34px;
  }

  .atn-header-logo-fallback {
    width: 34px;
    height: 34px;
  }

  .atn-header-site-title {
    font-size: 17px;
  }

  .atn-js .atn-header-nav.is-open {
    padding-top: 94px;
  }

  .atn-nav-list a {
    min-height: 58px;
    padding: 15px 16px;
    font-size: 21px;
  }

  .atn-footer-logo img {
    max-width: 32px;
    max-height: 32px;
  }

  .atn-footer-logo-fallback {
    width: 32px;
    height: 32px;
  }

  .atn-footer-site-title {
    font-size: 16px;
  }

  .atn-footer-tagline {
    font-size: 11.5px;
  }

  .atn-footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px 12px;
  }

  .atn-footer-menu > li,
  .atn-footer-menu a {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .atn-header-site-title {
    font-size: 15.5px;
  }

  .atn-header-logo img {
    max-width: 31px;
    max-height: 31px;
  }

  .atn-header-logo-fallback {
    width: 31px;
    height: 31px;
  }

  .atn-js .atn-header-nav.is-open {
    padding: 90px 14px 28px;
  }

  .atn-js .atn-header-nav.is-open .atn-menu-close {
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
  }

  .atn-nav-list a {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .atn-site-header *,
  .atn-site-footer * {
    transition: none !important;
  }
}
