/* =====================================================================
   YakWare — corporate-editorial theme
   Warm paper · deep navy authority · thin brass accent
   Fraunces (display serif) + Public Sans (body)
   Scoped to the YakWare app; does not touch shared blogexample styling.
   ===================================================================== */

:root {
    --paper:      #faf8f2;
    --paper-2:    #f2efe6;
    --card:       #ffffff;
    --ink:        #1b2434;
    --ink-soft:   #565f72;
    --ink-faint:  #8a8f9c;
    --line:       #e6e1d4;
    --line-soft:  #efebe0;
    --navy:       #173453;
    --navy-deep:  #0e2236;
    --navy-tint:  #eef2f6;
    --brass:      #b07d34;
    --brass-soft: #cda05a;

    --maxw: 1120px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --shadow-sm: 0 1px 2px rgba(23,52,83,.05);
    --shadow-md: 0 18px 40px -24px rgba(14,34,54,.35);
    --shadow-lg: 0 40px 80px -40px rgba(14,34,54,.45);
}

/* ----------------------------- Base ------------------------------- */
/* font-sizes use rem so text honours the user's browser font-size
   setting and resizes to 200% (WCAG 2.1 SC 1.4.4). The root stays at
   100% (typically 16px) and is never pinned in px. */
html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.1875rem;   /* 19px at default root */
    line-height: 1.72;      /* >= 1.5 body line-height (SC 1.4.12) */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* sticky footer: keep the footer pinned to the bottom on short pages */
.yw-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.yw-app > .contents { flex: 1 0 auto; }

/* faint grain for atmosphere */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover, a:focus { color: var(--brass); text-decoration: none; }

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

/* keep app content above the grain layer */
.contents, .yw-footer { position: relative; z-index: 1; }

/* --------------------------- Navbar ------------------------------- */
.navbar.navbar-default {
    background: rgba(250, 248, 242, .88);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
    min-height: 72px;
}
.navbar.navbar-default .navbar-header { display: flex; align-items: center; }

.navbar-default .navbar-brand {
    height: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 22px 18px;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -.01em;
    color: var(--ink) !important;
}
.navbar-default .navbar-brand img {
    height: 34px;
    width: auto;
    top: 0 !important;
    position: static !important;
}
.navbar-default .navbar-brand:hover { color: var(--navy) !important; }

.navbar-default .navbar-nav > li > a {
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 26px 16px 24px;
    position: relative;
    transition: color .2s var(--ease);
}
.navbar-default .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 18px;
    height: 2px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--ease);
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus { color: var(--ink); background: transparent; }
.navbar-default .navbar-nav > li > a:hover::after { transform: scaleX(1); }

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: var(--navy);
    background: transparent;
}
.navbar-default .navbar-nav > .active > a::after { transform: scaleX(1); }

.navbar-default .navbar-toggle { border-color: var(--line); margin-top: 19px; }
.navbar-default .navbar-toggle .icon-bar { background: var(--navy); }
.navbar-default .navbar-collapse { border-color: var(--line); }

/* --------------------------- Layout ------------------------------- */
.yw-wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}
.yw-page { display: block; }

.yw-section { padding: 88px 0; }
.yw-section--tight { padding: 64px 0; }
.yw-section--alt { background: var(--paper-2); border-block: 1px solid var(--line-soft); }

.yw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: "Public Sans", sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 1.1rem;
}
.yw-eyebrow::before {
    content: "";
    width: 28px; height: 1px;
    background: var(--brass);
    display: inline-block;
}

.yw-lead { font-size: 1.32rem; color: var(--ink-soft); line-height: 1.62; }
.yw-measure { max-width: 62ch; }

/* ----------------------------- Hero ------------------------------- */
.yw-hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 96px;
    background:
        radial-gradient(120% 120% at 88% -10%, rgba(23,52,83,.10), transparent 55%),
        radial-gradient(90% 90% at -5% 110%, rgba(176,125,52,.08), transparent 60%);
    border-bottom: 1px solid var(--line);
}
.yw-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
}
.yw-hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.1rem);
    margin-bottom: 1.2rem;
}
.yw-hero h1 .accent { color: var(--navy); font-style: italic; }
.yw-hero h1 .sub {
    display: block;
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    font-style: italic;
    font-weight: 400;
    color: var(--ink-soft);
    margin-top: .35rem;
}
.yw-hero .yw-lead { max-width: 46ch; margin-bottom: 2rem; }

.yw-hero__media { display: flex; justify-content: center; }
.yw-hero__media figure {
    margin: 0;
    position: relative;
    width: min(340px, 78%);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}
.yw-hero__media figure::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid var(--brass-soft);
    opacity: .5;
    margin: -10px;
}
.yw-hero__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

/* ----------------------------- Buttons ---------------------------- */
.yw-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.yw-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: "Public Sans", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .01em;
    padding: 13px 24px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .22s var(--ease);
}
.yw-btn .arr { transition: transform .22s var(--ease); }
.yw-btn:hover .arr { transform: translateX(4px); }

.yw-btn--primary { background: var(--navy); color: #fff !important; }
.yw-btn--primary:hover, .yw-btn--primary:focus {
    background: var(--navy-deep); color: #fff !important;
    box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.yw-btn--ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.yw-btn--ghost:hover, .yw-btn--ghost:focus { border-color: var(--navy); color: var(--navy) !important; }

/* ----------------------- Feature cards ---------------------------- */
.yw-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.yw-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 34px 30px;
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.yw-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-soft); }
.yw-card__icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--navy-tint);
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 18px;
}
.yw-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.yw-card p { color: var(--ink-soft); font-size: 1.1875rem; margin: 0; }

.yw-sec-head { max-width: 60ch; margin-bottom: 48px; }
.yw-sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

/* --------------------- Product / article pages -------------------- */
.yw-article { padding: 96px 0; }
.yw-article__inner { max-width: 760px; margin: 0 auto; }
.yw-article h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin-bottom: 1.1rem; }
.yw-article__body { font-size: 1.24rem; color: var(--ink-soft); line-height: 1.8; }
.yw-article__body p { margin-bottom: 1.3rem; }
.yw-article__body strong { color: var(--ink); font-weight: 600; }

.yw-rule {
    width: 56px; height: 2px;
    background: var(--brass);
    margin: 0 0 2.4rem;
    border: 0;
}

.yw-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brass);
    background: rgba(176,125,52,.10);
    border: 1px solid rgba(176,125,52,.30);
    padding: 5px 12px;
    border-radius: 999px;
    vertical-align: middle;
    white-space: nowrap;   /* never break "Coming soon" across lines */
    flex-shrink: 0;
}
.yw-badge::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brass);
}

.yw-titleline { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .9rem; }
/* slightly smaller title on badged product pages so title + pill sit together */
.yw-titleline h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 0; }
.yw-article__cta { margin-top: 2.4rem; }

/* ----------------------------- About ------------------------------ */
.yw-prose { max-width: 720px; }
.yw-prose p { font-size: 1.25rem; color: var(--ink-soft); }
.yw-prose .yw-pull {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--ink);
    border-left: 2px solid var(--brass);
    padding-left: 1.4rem;
    margin: 2rem 0;
}

/* ----------------------------- Footer ----------------------------- */
.yw-footer {
    background: var(--navy-deep);
    color: #c6d0db;
    padding: 64px 0 30px;
    margin-top: 0;
    flex-shrink: 0;
}
/* the footer template is wrapped in a plain div by Wt; keep it from stretching */
.yw-app > div:last-child { flex-shrink: 0; }
.yw-footer a { color: #d7dee6; }
.yw-footer a:hover { color: var(--brass-soft); }
.yw-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.yw-footer__brand {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: .6rem;
}
.yw-footer__tag { color: #97a4b2; max-width: 34ch; font-size: 1rem; }
.yw-footer h4 {
    font-family: "Public Sans", sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #7f8d9d;
    margin-bottom: 1rem;
}
.yw-footer ul { list-style: none; padding: 0; margin: 0; }
.yw-footer li { margin-bottom: .55rem; font-size: 1.04rem; }
.yw-footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
    font-size: .9375rem;
    color: #7f8d9d;
}

/* --------------------------- Animation ---------------------------- */
@keyframes yw-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.yw-rise { opacity: 0; animation: yw-rise .7s var(--ease) forwards; }
.yw-d1 { animation-delay: .05s; }
.yw-d2 { animation-delay: .15s; }
.yw-d3 { animation-delay: .25s; }
.yw-d4 { animation-delay: .35s; }

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

/* --------------------------- Responsive --------------------------- */
@media (max-width: 860px) {
    .yw-hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .yw-hero__media { order: -1; }
    .yw-hero__media figure { width: min(240px, 60%); }
    .yw-grid-3 { grid-template-columns: 1fr; }
    .yw-footer__top { grid-template-columns: 1fr; gap: 28px; }
    .yw-section { padding: 60px 0; }
    .yw-hero { padding: 72px 0 64px; }
    .navbar-default .navbar-nav > li > a { padding: 12px 16px; }
    .navbar-default .navbar-nav > li > a::after { display: none; }
}

@media (max-width: 480px) {
    body { font-size: 1.0625rem; }   /* ~17px, still scalable via rem */
    .yw-wrap { padding: 0 20px; }
}
