/*
Theme Name: Arc44 27
Theme URI: https://arc44.com
Author: Arc44 Studio
Author URI: https://arc44.com
Description: A bold editorial-serif Arc44 rebuild — single-page marketing home, dedicated Work/Services/About/Contact pages, and the standard WordPress template set (page, single, archive, search, 404). Built as a standalone theme alongside Arc44 Studio and Arc44 Affinity.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arc44-27
*/

/* ================================================================
   Shared base + header/footer styles, loaded via wp_head()/wp_footer()
   on every template except home.php, which is a fully self-contained
   one-pager with its own nav (in-page anchors, not separate pages).

   Page-specific sections (hero art, pricing grids, FAQs, etc.) still
   live inline in each bespoke page-{slug}.php template.
   ================================================================ */
:root {
  /* --ink:#10110f; */
  --ink: #232621;
  --paper: #f1eee5;
  --accent: #FF5630;
  --teal: #35CFA3;
  --muted: #6c6d68;
  --line: rgba(16, 17, 15, .16);
  --darkLine: rgba(241, 238, 229, .18);
  --display: 'DM Serif Display', Georgia, serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --body: 'DM Sans', sans-serif;
  --max: 1460px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

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

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

button,
input,
textarea {
  font: inherit
}

.wrap {
  width: min(var(--max), 100%);
  margin: auto;
  padding: 0 2.125rem
}

@media(max-width:700px) {
  .wrap {
    padding: 0 1.125rem
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important
  }
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 30
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 0.625rem 0.75rem 0.625rem 1.125rem;
  background: rgba(241, 238, 229, .6);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  max-width: 100%;
  margin: 0 auto;
  transition: max-width .4s cubic-bezier(.16, 1, .3, 1), border-color .4s, box-shadow .4s
}

/* Nav pill condenses and centers itself once you scroll past the hero. */
.header.is-scrolled .nav {
  max-width: 768px;
  border-color: transparent;
  box-shadow: 0 12px 35px rgba(16, 17, 15, .06)
}

.brand {
  font: 700 1.5rem/1 var(--display);
  letter-spacing: -.08em
}

.links {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase
}

.links li {
  list-style: none
}

.links a {
  opacity: .72
}

.links a:hover,
.links a.current,
.links .current-menu-item a,
.links .current_page_item a {
  opacity: 1
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.125rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-align: center
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease
}

.header.nav-open .nav-toggle .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.header.nav-open .nav-toggle .bar:nth-child(2) {
  opacity: 0
}

.header.nav-open .nav-toggle .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

@media(max-width:820px) {
  .links {
    display: none
  }

  /* Brand left; CTA sits right beside the hamburger. */
  .nav .brand {
    margin-right: auto
  }

  .nav-cta {
    display: none
  }

  .nav-toggle {
    display: flex
  }

  .header.nav-open .links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 0 16px 40px rgba(16, 17, 15, .12)
  }

  .header.nav-open .links li {
    border-bottom: 1px solid var(--line)
  }

  .header.nav-open .links li:last-child {
    border-bottom: none
  }

  .header.nav-open .links a {
    display: block;
    padding: 0.875rem 0.75rem
  }
}

.kicker {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase
}

.kicker:before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor
}

.accent {
  color: var(--accent)
}

/* Canonical pill button — documented in page-style-guide.php. Page CSS
   files should only add contextual spacing (e.g. `.cta .btn{margin-top:…}`),
   not redeclare the button's own look. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6875rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.875rem 1.125rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 17, 15, .16)
}

.btn:active {
  transform: translateY(0);
  box-shadow: none
}

/* Arrow icon from arc44_27_arrow(), used on buttons and CTA links. */
.arrow {
  display: inline-flex;
  vertical-align: middle
}

.arrow svg {
  display: block;
  width: 1.2em;
  height: 1.2em;
  min-width: 14px;
  min-height: 14px;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1)
}

a:hover .arrow svg,
button:hover .arrow svg {
  transform: translateX(3px)
}

.page-hero {
  padding: 8.4375rem 0 3.75rem;
  border-bottom: 1px solid var(--ink)
}

.page-hero h1 {
  font: 400 clamp(2.5rem, 8vw, 6rem)/1.03 var(--serif);
  margin: 1.25rem 0 0
}

.content {
  padding: 4.375rem 0;
  max-width: none;
  width: 100%
}

.content h2 {
  font: 700 clamp(1.75rem, 4vw, 2.625rem)/1.1 var(--display);
  margin: 2.5rem 0 1rem
}

.content p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #343531
}

.content ul,
.content ol {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #343531
}

.content a {
  border-bottom: 1px solid var(--ink)
}

.content img {
  margin: 1.5rem 0
}

.content blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-style: italic
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3.75rem 0
}

.post-card {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line)
}

.post-card h2 {
  font: 700 clamp(1.625rem, 4vw, 2.375rem)/1.15 var(--display);
  margin: 0 0 0.75rem
}

.post-meta {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.875rem
}

.post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #343531
}

.read-more {
  display: inline-block;
  margin-top: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink)
}

.pagination {
  display: flex;
  gap: 0.875rem;
  padding: 1.25rem 0 5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase
}

.pagination a,
.pagination span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.625rem 1rem
}

.error-404 {
  padding: 9.375rem 0 5.625rem;
  text-align: left
}

.error-404 .code {
  font: 700 clamp(2.5rem, 18vw, 13.75rem)/.8 var(--display);
  letter-spacing: -.06em;
  color: var(--accent)
}

.search-form {
  display: flex;
  gap: 0.625rem;
  margin: 1.875rem 0 0.625rem
}

.search-form input[type=search] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.875rem 1.25rem;
  background: transparent;
  color: var(--ink)
}

.search-form button {
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 0.875rem 1.375rem;
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer
}

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3.4375rem 0 1.5625rem
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 1.875rem;
  align-items: end
}

.footer-brand {
  font: 700 3.75rem/.85 var(--display);
  letter-spacing: -.08em
}

.footer-copy {
  max-width: 320px;
  color: rgba(241, 238, 229, .56)
}

.footer-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.125rem
}

.footer-id .footer-copy {
  margin-top: 1rem
}

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

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--darkLine);
  border-radius: 50%;
  color: var(--paper);
  transition: background .2s, border-color .2s, color .2s
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink)
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 1.0625rem;
  border-top: 1px solid var(--darkLine);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: .11em
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  color: rgba(241, 238, 229, .72);
  font-size: 0.6875rem
}

@media(max-width:700px) {

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start
  }

  .footer-brand {
    font-size: 3.125rem
  }

  .footer-aside {
    align-items: flex-start
  }

}

/* Text reveal (assets/js/text-reveal.js). Only active once JS has set .tr-ready, so text is never hidden without JS. */
.tr-ready .tr-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* room for descenders inside the mask without changing the line box */
  padding-bottom: .22em;
  margin-bottom: -.22em
}

.tr-ready .tr-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(.16, 1, .3, 1)
}

.tr-ready .tr-in .tr-inner {
  transform: none
}

.tr-ready .tr-block {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease .25s, transform 1s cubic-bezier(.16, 1, .3, 1) .25s
}

.tr-ready .tr-block.tr-in {
  opacity: 1;
  transform: none
}


.footer-legal{display:flex;flex-wrap:wrap;gap:0.5rem 1.25rem}.footer-legal a{color:inherit;transition:color .2s}.footer-legal a:hover,.footer-legal a:focus-visible{color:var(--paper);text-decoration:underline}
