/*
Theme Name: PC Website
Theme URI: https://example.com/pc-website
Author: Pat Carroll
Description: Custom WordPress theme derived from the static PC Website design.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: pc-website
*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg: #ffffff;
  --bg-tint: #f2f2f2;
  --fg: #0d0d0d;
  --fg-muted: #888076;
  --border: rgba(13, 13, 13, 0.12);
  --font: 'IBM Plex Mono', 'Courier New', monospace;
  --nav-h: 48px;
}

[data-theme="night"] {
  --bg: #080808;
  --bg-tint: #101010;
  --fg: #ffffff;
  --fg-muted: #706a62;
  --border: rgba(245, 243, 239, 0.11);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  transition: background 0.3s, color 0.3s;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

#rippleBar {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 2;
}

.content-box {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 48px 56px;
  max-width: 860px;
  margin: 0 auto 60px;
  margin-top: calc(var(--nav-h) + 60px);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 100;
  transition: background 0.3s;
}

.nav-logo {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  list-style: none;
  margin-right: 32px;
}

.nav-links li a {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  transition: color 0.15s;
  display: block;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--fg);
}

.nav-toggle {
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 11px;
  cursor: pointer;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  padding: 0;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-toggle:hover {
  color: var(--fg);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 16px;
  cursor: pointer;
  color: var(--fg-muted);
  margin-left: auto;
  padding: 4px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  transition: background 0.3s;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 40px;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  transition: color 0.12s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--fg);
}

.sec {
  display: none;
}

.sec.active {
  display: block;
}

#home.hidden {
  display: none;
}

section {
  background: none;
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.35s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(1) { animation-delay: 0.04s; }
.fade-in:nth-child(2) { animation-delay: 0.10s; }
.fade-in:nth-child(3) { animation-delay: 0.17s; }
.fade-in:nth-child(4) { animation-delay: 0.24s; }
.fade-in:nth-child(5) { animation-delay: 0.31s; }

#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

#home .content-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 120px);
}

.hero-index {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}

.hero-name {
  font-size: clamp(34px, 5.5vw, 66px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.hero-descriptor {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 60px;
  max-width: 360px;
  line-height: 1.9;
}

.hero-cta,
.section-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid var(--fg);
  padding: 9px 20px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  color: var(--fg);
}

.hero-cta:hover,
.section-link:hover {
  background: var(--fg);
  color: var(--bg);
}

.hero-bottom {
  margin-top: 100px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-bottom hr {
  flex: 1;
  border: none;
  border-top: 1px solid var(--border);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  gap: 16px;
}

.sec-head h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.sec-index {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.catalog-table thead tr,
.post-table thead tr,
.about-table tbody tr,
.tools-header,
.tool-row,
.footer-box {
  border-bottom: 1px solid var(--border);
}

.catalog-table thead th,
.post-table thead th {
  text-align: left;
  padding-bottom: 12px;
  font-size: 11px;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.catalog-table thead th:last-child,
.post-table thead th:last-child {
  text-align: right;
}

.catalog-table tbody tr,
.post-table tbody tr {
  transition: background 0.15s, color 0.15s;
}

.catalog-table tbody tr:hover,
.post-table tbody tr:hover {
  background: var(--bg-tint);
}

.catalog-table tbody td,
.post-table tbody td {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.catalog-table tbody td:first-child,
.post-table tbody td:first-child {
  color: var(--fg-muted);
  width: 138px;
  padding-right: 18px;
}

.cat-title,
.post-title {
  font-weight: 500;
  padding-right: 24px;
}

.cat-title a,
.post-title a {
  display: inline-block;
}

.catalog-table tbody td:last-child,
.post-table tbody td:last-child {
  text-align: right;
  color: var(--fg-muted);
  white-space: nowrap;
}

.catalog-table tbody tr:hover .cat-title a,
.post-table tbody tr:hover .post-title a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-row-wip,
.tool-row-wip {
  opacity: 0.6;
}

.section-pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 30px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.pagination-arrow {
  flex: 1 1 0;
  min-width: 88px;
}

.pagination-arrow-prev {
  text-align: left;
}

.pagination-arrow-next {
  text-align: right;
}

.pagination-arrow a,
.pagination-status {
  color: var(--fg-muted);
}

.pagination-status {
  flex: 0 0 auto;
  text-align: center;
}

.pagination-arrow a:hover {
  color: var(--fg-muted);
  opacity: 0.75;
}

.tools-header {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 24px;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 2px;
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
}

.tool-row-name {
  font-weight: 500;
}

.tool-row-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tool-row-desc {
  color: var(--fg-muted);
}

.tool-row-arrow {
  text-align: right;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
}

.about-portrait {
  width: 100%;
  max-width: 220px;
  height: 330px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-tint);
  justify-self: start;
  align-self: start;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body p + p {
  margin-top: 20px;
}

.about-table {
  margin-top: 28px;
}

.about-table td {
  padding: 10px 0;
}

.about-table td:first-child {
  width: 120px;
  color: var(--fg-muted);
}

.about-contact {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}

.about-contact-label {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin-bottom: 2px;
}

.about-contact-link {
  display: block;
  width: fit-content;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  transition: color 0.12s;
}

.about-contact-link:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-box {
  background: var(--bg) !important;
  background-image: none !important;
  border: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 20px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--fg-muted);
  position: relative;
  z-index: 2;
  isolation: isolate;
  opacity: 1;
  font-size: 10px;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  transition: color 0.12s;
  letter-spacing: 0.06em;
}

.footer-social a:hover {
  color: var(--fg);
}

.single-shell {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 40px 60px;
}

.single-shell .content-box {
  margin-top: 0;
}

.single-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--fg-muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  text-transform: lowercase;
}

.entry-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: lowercase;
}

.entry-content > * + * {
  margin-top: 18px;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.entry-content figure {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .wp-block-image,
.entry-content .wp-caption {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .wp-block-image img,
.entry-content .wp-caption img {
  max-width: 100%;
  height: auto;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.entry-content ul,
.entry-content ol {
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  color: var(--fg-muted);
}

.back-link-top {
  margin-top: 6px;
  margin-bottom: 18px;
}

.back-link-bottom {
  margin-top: 32px;
}

.back-link:hover {
  color: var(--fg);
}

.links-shell {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 40px 60px;
}

.links-box {
  margin-top: 0;
}

.links-intro {
  margin-bottom: 32px;
  color: var(--fg-muted);
}

.links-groups {
  display: grid;
  gap: 34px;
}

.links-group-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.links-group-head h3 {
  font-size: 11px;
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.links-list {
  display: grid;
}

.link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.link-card:hover {
  background: var(--bg-tint);
}

.link-card-main {
  display: grid;
  gap: 4px;
}

.link-card-title {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.link-card-desc {
  color: var(--fg-muted);
  font-size: 12px;
  line-height: 1.7;
}

.link-card-arrow {
  text-align: right;
  color: var(--fg-muted);
  font-size: 14px;
}

.empty-row td {
  color: var(--fg-muted);
}

@media (max-width: 640px) {
  /* On phones, keep the day/night switch visible and give the nav more height. */
  :root {
    --nav-h: 72px;
  }

  nav {
    padding: 0 24px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    font-size: 12px;
  }

  .nav-hamburger {
    display: block;
    margin-left: 0;
    font-size: 20px;
  }

  .mobile-menu a {
    padding: 16px 24px;
  }

  .content-box {
    padding: 32px 24px;
  }

  #home {
    padding-left: 24px;
    padding-right: 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tool-row,
  .tools-header {
    grid-template-columns: 1fr 16px;
  }

  .tool-row-desc,
  .tools-header span:nth-child(2) {
    display: none;
  }

  .catalog-table tbody td:first-child,
  .post-table tbody td:first-child {
    width: 96px;
  }

  .footer-box {
    padding: 20px 24px;
    flex-direction: column;
  }

  .single-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .links-shell {
    padding-left: 24px;
    padding-right: 24px;
  }
}
