/*
Theme Name: Aria
Theme URI: https://knotful.com/themes/aria
Author: Knotful & Co. Ltd
Author URI: https://knotful.com
Description: Aria is a light, image-forward wedding-photography theme with an editorial feel, a built-in light and dark mode, and a companion-plugin architecture. Ships in dark mode by default.
Version: 00.03.00
Requires at least: 6.0
Tested up to: 6.5
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: aria
*/


  :root {
    /* brand constants (fixed in both themes) */
    --ivory:  #F0EBE1;
    --greige: #D8D1C4;
    --bark:   #23261E;
    --forest: #4A5A40;

    /* semantic roles - light */
    --bg:      #F0EBE1;
    --surface: #FFFFFF;
    --band:    #23261E;
    --text:    #23261E;
    --muted:   rgba(35, 38, 30, 0.72);
    --line:    rgba(35, 38, 30, 0.10);
    --sage:    #93A088;
    --brass:   #A98A5B;
    --blush:   #D9B7AD;
    --mauve:   #96798A;
    --on-dark:       #F0EBE1;
    --on-dark-muted: rgba(240, 235, 225, 0.78);
    --bar-bg:  rgba(240, 235, 225, 0.85);
    --btn-bg:  #23261E;
    --btn-fg:  #F0EBE1;
    --footer-bg: #93A088;

    --serif: "Cormorant", Georgia, "Times New Roman", serif;
    --sans:  "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --measure: 60ch;
    --edge: clamp(20px, 6vw, 96px);
  }

  :root[data-theme="dark"] {
    --bg:      #1D201A;
    --surface: #262A20;
    --band:    #262A20;
    --text:    #ECE7DD;
    --muted:   rgba(236, 231, 221, 0.72);
    --line:    rgba(236, 231, 221, 0.14);
    --sage:    #A6B29B;
    --brass:   #C2A06B;
    --on-dark:       #ECE7DD;
    --on-dark-muted: rgba(236, 231, 221, 0.74);
    --bar-bg:  rgba(29, 32, 26, 0.85);
    --btn-bg:  #ECE7DD;
    --btn-fg:  #1D201A;
    --footer-bg: #4A5443;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg:      #1D201A;
      --surface: #262A20;
      --band:    #262A20;
      --text:    #ECE7DD;
      --muted:   rgba(236, 231, 221, 0.72);
      --line:    rgba(236, 231, 221, 0.14);
      --sage:    #A6B29B;
      --brass:   #C2A06B;
      --on-dark:       #ECE7DD;
      --on-dark-muted: rgba(236, 231, 221, 0.74);
      --bar-bg:  rgba(29, 32, 26, 0.85);
      --btn-bg:  #ECE7DD;
      --btn-fg:  #1D201A;
      --footer-bg: #4A5443;
    }
  }


  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

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

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

  ::selection { background: var(--blush); color: var(--bark); }

  :focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
  }

  .eyebrow {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sage);
    margin: 0 0 18px;
  }

  .display {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0.005em;
    margin: 0;
  }

  /* ---- Top bar ---- */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--edge);
    background: var(--bar-bg);
    backdrop-filter: saturate(120%) blur(8px);
    border-bottom: 1px solid var(--line);
  }

  /* ---- Logo + theme toggle ---- */
  .logo { display: inline-flex; align-items: center; gap: 11px; background: none; border: 0; cursor: pointer; padding: 0; }
  .logo-mark { width: 46px; height: 46px; flex: none; }
  .logo-mark svg { display: block; width: 100%; height: 100%; }
  .logo-mark .ring { stroke: var(--sage); opacity: 0.55; }
  .logo-mark .leaf { stroke: var(--sage); }
  .logo-mark .glyph { stroke: var(--text); }
  .logo-mark .seed { fill: var(--brass); }
  .logo-word { font-family: var(--serif); font-weight: 500; font-size: 27px; letter-spacing: 0.2em; padding-left: 0.2em; color: var(--text); }
  .logo--on-color .ring { stroke: var(--on-dark); opacity: 0.6; }
  .logo--on-color .leaf,
  .logo--on-color .glyph { stroke: var(--on-dark); }
  .logo--on-color .logo-word { color: var(--on-dark); }

  .bar-right { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
  /* The light and dark switch is Companion's now — same control on every
     product. Only its placement in this header belongs here. */
  .kn-mode { opacity: 0.82; transition: opacity 0.25s ease; width: auto; height: auto; padding: 6px; }
  .kn-mode:hover { opacity: 1; }
  .kn-mode svg { width: 19px; height: 19px; }

  .nav {
    display: flex;
    gap: 34px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .nav a { position: relative; padding: 4px 0; color: var(--text); }
  .nav a::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
  }
  .nav a:hover::after { transform: scaleX(1); }

  .menu-btn { display: none; background: none; border: 0; color: var(--text); font: inherit; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }

  /* ---- Hero ---- */
  .hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
  }
  .hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 42%;
  }
  .hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(35,38,30,0.42) 0%, rgba(35,38,30,0.10) 38%, rgba(35,38,30,0) 62%);
  }
  .hero-inner {
    position: relative;
    z-index: 2;
    padding: var(--edge);
    padding-bottom: clamp(34px, 6vw, 72px);
    color: var(--ivory);
    max-width: 900px;
  }
  .hero .eyebrow { color: var(--forest); opacity: 1; }
  .hero h1 {
    font-size: clamp(38px, 6.4vw, 88px);
    max-width: 15ch;
  }
  .hero h1 em { font-style: italic; font-weight: 400; }

  /* ---- Section frame ---- */
  .section { padding: clamp(64px, 10vw, 132px) var(--edge); }
  /* When two sections sit back to back, their paddings would otherwise stack
     into an uneven-looking gap. Halve the join so the rhythm stays even. */
  .section + .section { padding-top: clamp(20px, 3vw, 40px); }
  .section-head { max-width: var(--measure); }
  .section-head h2 { font-size: clamp(30px, 4.4vw, 52px); }
  .lead { color: var(--muted); max-width: 46ch; margin: 16px 0 0; }

  /* ---- Eucalyptus hairline divider (the signature) ---- */
  .sprig { display: block; width: min(320px, 60%); margin: 6px auto 0; color: var(--sage); }
  .sprig .stem { stroke: var(--sage); }
  .sprig .seed { fill: var(--brass); }

  /* ---- Featured grid ---- */
  .featured { text-align: center; }
  .featured .section-head { margin: 0 auto; }
  .grid3 {
    margin-top: clamp(36px, 5vw, 60px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 26px);
    text-align: left;
  }
  .tile figure { margin: 0; overflow: hidden; }
  .tile .frame { overflow: hidden; aspect-ratio: 3 / 4; }
  .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
  .tile:hover img { transform: scale(1.04); }
  .tile figcaption {
    margin-top: 14px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    color: var(--text);
  }
  .tile .meta { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-top: 2px; }

  /* ---- Wide band ---- */
  .band { position: relative; min-height: min(56vh, 520px); display: grid; place-items: center; overflow: hidden; }
  .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
  .band::after { content: ""; position: absolute; inset: 0; background: rgba(35,38,30,0.34); }
  .band p { position: relative; z-index: 2; color: var(--ivory); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 5vw, 56px); text-align: center; max-width: 24ch; padding: 0 var(--edge); }

  /* ---- Dark studio strip ---- */
  .studio { background: var(--band); color: var(--on-dark); }
  .studio .wrap {
    padding: clamp(64px, 10vw, 132px) var(--edge);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
  }
  .studio .eyebrow { color: var(--brass); }
  .studio h2 { font-size: clamp(28px, 4vw, 46px); }
  .studio p { color: var(--on-dark-muted); max-width: 48ch; margin: 20px 0 0; }
  .studio figure { margin: 0; }
  .studio figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .rule { width: 46px; height: 1px; background: var(--brass); margin: 26px 0 0; border: 0; }

  /* ---- Two-up detail ---- */
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 26px); margin-top: clamp(34px, 5vw, 56px); }
  .pair figure { margin: 0; }
  .pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .pair figcaption { margin-top: 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }

  /* ---- Contact ---- */
  .contact { text-align: center; }
  .contact .section-head { margin: 0 auto; }
  .contact h2 { font-size: clamp(30px, 4.6vw, 56px); }
  .cta {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 40px;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    transition: background 0.3s ease, color 0.3s ease;
  }
  .cta:hover { background: transparent; color: var(--text); border-color: var(--text); }

  /* ---- Footer ---- */
  footer { background: var(--footer-bg); color: var(--on-dark); padding: clamp(48px, 7vw, 84px) var(--edge); }
  .foot-top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .foot-nav { display: flex; gap: 26px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
  .foot-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(240,235,225,0.28); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.08em; color: rgba(240,235,225,0.82); }

  /* ---- Motion ---- */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
  .reveal.in { opacity: 1; transform: none; }

  @media (max-width: 860px) {
    .bar-right .nav { display: none; }
    .menu-btn { display: inline-block; }
    .studio .wrap { grid-template-columns: 1fr; }
    .studio figure { order: -1; }
  }
  @media (max-width: 620px) {
    .grid3 { grid-template-columns: 1fr; }
    .pair { grid-template-columns: 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .tile img { transition: none; }
  }

  /* ---- Accessibility ---- */
  .skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; }
  .skip-link:focus { left: var(--edge); top: 10px; width: auto; height: auto; padding: 10px 16px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
  .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

  /* ---- Page header (shared) ---- */
  .page-head { padding: clamp(74px, 12vw, 150px) var(--edge) 0; max-width: 64ch; }
  .page-head h1 { font-family: var(--serif); font-weight: 500; line-height: 1.05; font-size: clamp(40px, 6.4vw, 84px); margin: 8px 0 0; }
  .page-head .lead { font-size: 19px; }
  .cat { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
  .meta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }

  /* ---- Prose (posts & pages) ---- */
  .page-body { padding: clamp(40px, 6vw, 80px) var(--edge); }
  .prose { max-width: var(--measure); font-size: 18px; line-height: 1.8; }
  .prose > * + * { margin-top: 1.4em; }
  .prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.16; margin-top: 1.7em; }
  .prose h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin-top: 1.5em; }
  .prose a:not(.cta) { color: var(--text); border-bottom: 1px solid var(--brass); }
  .prose ul, .prose ol { padding-left: 1.2em; }
  .prose li + li { margin-top: 0.5em; }
  .prose img { width: 100%; height: auto; margin: 2em 0; }
  .prose blockquote { margin: 1.8em 0; padding-left: 26px; border-left: 2px solid var(--brass); font-family: var(--serif); font-style: italic; font-size: clamp(23px, 3vw, 32px); line-height: 1.35; }
  .prose figcaption { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-top: 8px; }

  /* ---- Single post ---- */
  .post-hero-head { padding: clamp(74px, 12vw, 140px) var(--edge) clamp(22px, 4vw, 38px); max-width: 62ch; }
  .post-hero-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6vw, 76px); line-height: 1.04; margin: 14px 0 0; }
  .post-hero-head .meta { margin-top: 18px; }
  .post-hero { margin: 0; }
  .post-hero img { width: 100%; max-height: 74vh; object-fit: cover; }
  .post-body { padding: clamp(44px, 7vw, 92px) var(--edge); }
  .post-wrap { max-width: var(--measure); margin: 0 auto; }
  .post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
  .post-nav a { color: var(--sage); }

  /* ---- Post lists & archives ---- */
  .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 44px); }
  .post-card .shot { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
  .post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
  .post-card:hover img { transform: scale(1.04); }
  .post-card h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; margin: 15px 0 0; color: var(--text); }
  .post-card .cat { display: block; margin: 15px 0 0; }
  .post-card .meta { margin-top: 8px; }
  .post-card p.ex { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
  .pagination { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 40px); margin-top: clamp(46px, 6vw, 78px); }
  .pagination a { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid var(--brass); padding-bottom: 3px; color: var(--text); }
  .pagination .pos { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

  /* ---- Search form & results ---- */
  .search-bar { display: flex; gap: 12px; margin-top: 24px; max-width: 520px; }
  .search-bar input { flex: 1; font: inherit; padding: 13px 15px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 0; }
  .search-bar button { font: inherit; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; padding: 0 24px; background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg); cursor: pointer; }
  .result-count { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); margin-top: 20px; }
  .results { list-style: none; margin: clamp(28px, 4vw, 46px) 0 0; padding: 0; }
  .result { border-top: 1px solid var(--line); }
  .result:last-child { border-bottom: 1px solid var(--line); }
  .result a { display: grid; grid-template-columns: 150px 1fr; gap: clamp(18px, 3vw, 36px); align-items: center; padding: clamp(20px, 3vw, 30px) 0; }
  .result.no-thumb a { grid-template-columns: 1fr; }
  .result .thumb { aspect-ratio: 3 / 2; overflow: hidden; }
  .result .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .result h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3vw, 30px); line-height: 1.16; margin: 8px 0 0; color: var(--text); }
  .result .ex { color: var(--muted); font-size: 15px; margin: 8px 0 0; max-width: 58ch; }

  /* ---- 404 ---- */
  .error-page { min-height: 68vh; display: grid; place-items: center; padding: clamp(56px, 10vw, 110px) var(--edge); text-align: center; }
  .error-inner { max-width: 46ch; }
  .error-inner h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6vw, 72px); line-height: 1.06; margin: 10px 0 0; }
  .error-inner .lead { margin: 18px auto 0; }
  .error-links { margin-top: 26px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
  .error-links a { color: var(--sage); }
  .error-links a:hover { color: var(--text); }
  .error-page .sprig { margin: 32px auto 0; }
  .error-inner .search-bar { margin: 30px auto 0; }

  /* ---- Mobile menu ---- */
  .menu-panel { display: none; }
  @media (max-width: 860px) {
    .menu-panel[hidden] { display: none; }
    .menu-panel { display: block; position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: 96px var(--edge) var(--edge); }
    .menu-panel nav ul { display: flex; flex-direction: column; gap: 22px; }
    .menu-panel a { font-family: var(--serif); font-size: 30px; color: var(--text); }
    .menu-close { position: absolute; top: 22px; right: var(--edge); background: none; border: 0; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .result a { grid-template-columns: 120px 1fr; }
  }
  @media (max-width: 560px) {
    .post-grid { grid-template-columns: 1fr; }
    .result a { grid-template-columns: 1fr; }
    .result .thumb { display: none; }
  }

  /* ---- Menu lists (WordPress markup) ---- */
  .nav ul, .menu-panel nav ul, .foot-nav ul { list-style: none; margin: 0; padding: 0; }
  .foot-nav ul { display: flex; gap: 26px; flex-wrap: wrap; }
  .nav ul { display: flex; gap: 34px; align-items: center; }
  .nav li, .menu-panel nav li { margin: 0; }

  /* Social links — footer row, only shows when set in the Customizer */
  .social-links { display: flex; gap: 20px; list-style: none; margin: 30px 0 0; padding: 0; }
  .social-link { display: inline-flex; color: var(--brass); transition: color .15s ease, transform .15s ease; }
  .social-link svg { width: 22px; height: 22px; display: block; }
  .social-link:hover { color: var(--text); transform: translateY(-1px); }
  .logo--on-color .social-link,
  footer .social-link { color: var(--brass); }
  footer .social-link:hover { color: var(--on-dark, var(--text)); }

  /* Uploaded logo (Customizer → Site Identity → Logo) sits in place of the mark */
  .custom-logo-link { display: inline-flex; align-items: center; }
  .custom-logo { display: block; height: 48px; width: auto; max-width: 240px; }
  /* The inline Knotful mark fills the logo-mark box. */
  .logo-mark .brandmark { display: block; width: 100%; height: 100%; }
