/* Titler website — a dark "render studio" overlay on top of the MorphOS Team
   theme (morphos-theme.css). Reuses the theme's layout scaffolding (wrapper,
   navigation, centred content) but recolours everything dark with metallic
   amber accents to match the ray-traced renders. */

:root{
    --ti-amber:#e0a24a;
    --ti-amber2:#f2c079;
    --ti-bronze:#c8781e;
    --ti-cyan:#4fb8d6;
    --ti-bg:#0c0e13;
    --ti-panel:#161a22;
    --ti-panel2:#1c2029;
    --ti-line:rgba(255,255,255,0.10);
    --ti-text:#c9cfda;
    --ti-dim:#8a91a0;
}

/* --------------------------------------------------------------------------
   DARK THEME — override the MorphOS light containers
   -------------------------------------------------------------------------- */
html{
    color:var(--ti-text);
    background-color:var(--ti-bg) !important;
    background-image:radial-gradient(ellipse at 50% -10%, #1b2230 0%, #12141b 55%, #0a0b0f 100%) !important;
}
body{ color:var(--ti-text); }

#wrapper{
    background:var(--ti-bg) !important;
    box-shadow:0 10px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) !important;
    overflow:hidden;
}
#content{ background-image:none !important; color:var(--ti-text); }
#content div{ color:var(--ti-text); }

/* The MorphOS theme forces `#content div { text-align:left }` (0,1,0,1);
   re-centre the pieces that must be centred with a matching #content prefix. */
#content #ti-hero,
#content #ti-hero p,
#content .ti-h2,
#content .lede,
#content .ti-shot figcaption,
#content .ti-dl .center{ text-align:center; }

/* --- navigation ----------------------------------------------------------- */
#navigation{
    background:#10131a !important;
    background-image:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0)) !important;
    border-top:1px solid rgba(255,255,255,0.06);
    border-bottom:1px solid rgba(0,0,0,0.5);
}
#navigation a{
    color:var(--ti-dim) !important;
    text-shadow:none !important;
    font-weight:normal;
}
#navigation a:hover{
    background:rgba(224,162,74,0.10) !important;
    color:var(--ti-amber2) !important;
    box-shadow:0 -2px 0 0 var(--ti-amber) inset !important;
    border-left:1px solid transparent; border-right:1px solid transparent;
}
#navigation .ti-brand{
    float:left; display:flex; align-items:center; gap:9px;
    height:60px; padding-left:24px; font-weight:bold; font-size:21px;
    color:var(--ti-amber2); letter-spacing:1px;
}
#navigation .ti-brand .mark{ color:var(--ti-amber); font-size:16px; }
#navigation .ti-lang{ float:right; padding-right:16px; line-height:60px; }
#navigation .ti-lang a{
    display:inline-block; padding:2px 7px; margin:0 1px; border-radius:3px;
    font-size:13px; font-weight:bold; color:var(--ti-dim) !important;
}
#navigation .ti-lang a.active{ background:var(--ti-bronze); color:#fff !important; box-shadow:none !important; }
#navigation .ti-lang a:hover{ background:rgba(255,255,255,0.06) !important; box-shadow:none !important; }

/* --- hero ----------------------------------------------------------------- */
#ti-hero{ text-align:center; margin:26px 0 14px; }
/* the wordmark is the ray-traced render on a black background. `screen`
   blending dissolves that black into the dark page, and a feathered radial mask
   fades the rectangular edges to transparent so no photo "box" remains — only
   the metallic text, melting into the page with a soft amber glow. */
#ti-hero h1.ti-logo{ margin:0; line-height:0; text-transform:none; }
.ti-logo .ti-render{
    display:block; width:min(580px,86%); height:auto; margin:0 auto;
    mix-blend-mode:screen;
    -webkit-mask-image:radial-gradient(ellipse 88% 72% at 50% 50%, #000 60%, transparent 100%);
            mask-image:radial-gradient(ellipse 88% 72% at 50% 50%, #000 60%, transparent 100%);
    filter:drop-shadow(0 0 30px rgba(224,162,74,0.16));
}
#ti-hero .tagline{ font-size:22px; color:#e7ebf2; margin:2px 0 4px; font-weight:bold; }
#ti-hero .lede{ max-width:720px; margin:8px auto 22px; color:var(--ti-dim); font-size:16px; line-height:1.65; }
#ti-hero .ver{ display:inline-block; margin-top:16px; color:var(--ti-dim); font-size:13px; letter-spacing:.6px; }

.lede{ color:var(--ti-dim); }

/* buttons */
.ti-btn{
    display:inline-block; margin:6px 6px 0; padding:12px 28px; border-radius:6px;
    font-weight:bold; font-size:15px; color:#231604 !important; text-decoration:none;
    background:linear-gradient(180deg,var(--ti-amber2),var(--ti-bronze));
    box-shadow:0 2px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.35);
    transition:transform .08s ease, box-shadow .1s ease;
}
.ti-btn:hover{ transform:translateY(-1px); box-shadow:0 5px 14px rgba(224,162,74,0.3); }
.ti-btn.ghost{ background:transparent; color:var(--ti-amber2) !important;
    box-shadow:inset 0 0 0 1px rgba(224,162,74,0.5); }

/* --- section headings ----------------------------------------------------- */
.ti-h2{ text-align:center; font-size:32px; color:#eef1f6; margin:56px 0 6px; font-weight:bold; letter-spacing:.5px; }
.ti-sep{ width:70px; height:3px; margin:12px auto 30px; border-radius:2px;
    background:linear-gradient(90deg,var(--ti-bronze),var(--ti-amber2),var(--ti-cyan)); }

/* --- feature grid --------------------------------------------------------- */
.ti-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:10px 0 20px; }
.ti-card{
    background:var(--ti-panel); border:1px solid var(--ti-line); border-radius:9px; padding:22px 20px;
    box-shadow:0 1px 3px rgba(0,0,0,0.4); transition:box-shadow .14s ease, transform .14s ease, border-color .14s ease;
}
.ti-card:hover{ box-shadow:0 8px 24px rgba(0,0,0,0.5); transform:translateY(-2px); border-color:rgba(224,162,74,0.35); }
.ti-card .ico{ font-size:30px; line-height:1; display:block; margin-bottom:12px; }
.ti-card h3{ margin:0 0 8px; font-size:18px; color:var(--ti-amber2); }
.ti-card p{ margin:0; color:var(--ti-dim); font-size:14.5px; line-height:1.55; }

/* --- screenshots ---------------------------------------------------------- */
.ti-shots{ display:flex; flex-direction:column; gap:36px; margin:14px 0 10px; }
.ti-shot figure{ margin:0; }
.ti-shot img{
    width:100%; height:auto; display:block; border-radius:6px;
    border:1px solid rgba(255,255,255,0.12); box-shadow:0 10px 30px rgba(0,0,0,0.55);
}
.ti-shot figcaption{ text-align:center; color:var(--ti-dim); font-size:14px; margin-top:12px; font-style:italic; }

/* --- gallery (example renders) -------------------------------------------- */
.ti-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:10px 0 10px; }
.ti-gallery figure{ margin:0; border-radius:8px; overflow:hidden; background:#000;
    border:1px solid var(--ti-line); box-shadow:0 6px 20px rgba(0,0,0,0.5);
    transition:transform .14s ease, box-shadow .14s ease; }
.ti-gallery figure:hover{ transform:translateY(-3px); box-shadow:0 12px 30px rgba(0,0,0,0.6), 0 0 40px rgba(224,162,74,0.08); }
.ti-gallery img{ width:100%; height:220px; object-fit:cover; display:block; }

/* --- manual --------------------------------------------------------------- */
.ti-manual{ text-align:left; max-width:920px; margin:6px auto 0; }
.ti-manual .sec{
    background:var(--ti-panel); border:1px solid var(--ti-line); border-left:4px solid var(--ti-amber);
    border-radius:6px; padding:16px 22px; margin:14px 0;
}
.ti-manual .sec h3{ margin:2px 0 8px; color:var(--ti-amber2); font-size:19px; }
.ti-manual .sec p{ margin:6px 0; color:var(--ti-text); line-height:1.6; font-size:15px; }
.ti-manual .sec ul{ margin:8px 0 4px; padding-left:22px; color:var(--ti-text); line-height:1.55; }
.ti-manual .sec li{ margin:4px 0; }
.ti-manual .sec b{ color:#eef1f6; }
.ti-manual .sec code{ background:rgba(224,162,74,0.14); color:var(--ti-amber2); padding:1px 6px; border-radius:4px; font-size:.92em; }

/* --- download ------------------------------------------------------------- */
.ti-dl{ max-width:780px; margin:8px auto 0; text-align:left; }
.ti-dl .panel{ background:var(--ti-panel); border:1px solid var(--ti-line); border-radius:9px;
    padding:22px 26px; box-shadow:0 1px 3px rgba(0,0,0,0.4); }
.ti-dl h3{ color:var(--ti-amber2); margin:0 0 10px; }
.ti-dl ul{ padding-left:20px; line-height:1.7; color:var(--ti-text); }
.ti-dl b{ color:#eef1f6; }
.ti-dl .note{ color:var(--ti-dim); font-size:13.5px; margin-top:14px; }
.ti-dl .center{ text-align:center; margin-top:22px; }

/* --- footer --------------------------------------------------------------- */
#ti-footer{ text-align:center; color:var(--ti-dim); font-size:14px; line-height:1.7;
    padding:30px 20px 22px; border-top:1px solid var(--ti-line); margin-top:20px; }
#ti-footer .brand{ font-weight:bold; color:var(--ti-amber2); }

/* --- responsive ----------------------------------------------------------- */
@media (max-width:900px){
    .ti-grid{ grid-template-columns:repeat(2,1fr); }
    .ti-gallery{ grid-template-columns:repeat(2,1fr); }
    #ti-hero h1{ font-size:52px; }
}
@media (max-width:600px){
    .ti-grid{ grid-template-columns:1fr; }
    .ti-gallery{ grid-template-columns:1fr; }
    .ti-gallery img{ height:auto; }
    #ti-hero h1{ font-size:40px; }
    #navigation .ti-brand span:last-child{ display:none; }
    #navigation .ti-lang{ float:none; display:block; text-align:center; line-height:2; }
}
