/* Make10 — shared site styling. Matches the in-app Credits screen
   palette (deep purple background, soft white text, rounded
   "system rounded" feel via -apple-system + Inter as fallback). */

:root {
    /* SwiftUI Color(red: 0.16, green: 0.10, blue: 0.28) at ~97% */
    --purple-bg:       #291a47;
    --purple-bg-soft:  #3a2660;
    --card-bg:         rgba(255, 255, 255, 0.05);
    --card-stroke:     rgba(255, 255, 255, 0.10);
    --link-blue:       #9ed7ff;   /* matches credits-screen link tint */
    --text:            #ffffff;
    --text-soft:       rgba(255, 255, 255, 0.85);
    --text-faint:      rgba(255, 255, 255, 0.65);
    --heading-faint:   rgba(255, 255, 255, 0.55);
    --accent-orange:   #ff8d1a;
    --accent-cyan:     #33bfd9;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: linear-gradient(180deg,
                                  var(--purple-bg-soft) 0%,
                                  var(--purple-bg) 50%,
                                  var(--purple-bg) 100%);
    color: var(--text);
    font-family: ui-rounded, -apple-system, BlinkMacSystemFont,
                 "SF Pro Rounded", "Inter", "Helvetica Neue",
                 Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    font-size: 16px;
}

a {
    color: var(--link-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(158, 215, 255, 0.35);
    transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 28px 80px;
}

header.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
    max-width: 760px;
    margin: 0 auto;
}

header.site-header .brand {
    font-family: ui-rounded, "SF Pro Rounded", -apple-system,
                 BlinkMacSystemFont, "Inter", Arial, sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.4px;
    color: #ffffff;
    border: none;
}
header.site-header .brand:hover {
    color: var(--link-blue);
}

header.site-header nav a {
    margin-left: 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-bottom: none;
    color: var(--text-faint);
}
header.site-header nav a:hover {
    color: #ffffff;
}

h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin: 0 0 8px;
    color: #ffffff;
}

.meta {
    color: var(--text-faint);
    font-size: 13px;
    margin-bottom: 32px;
    line-height: 1.7;
}

h2 {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--heading-faint);
    margin: 40px 0 10px;
}

h3 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 26px 0 8px;
}

p {
    color: var(--text-soft);
    margin: 0 0 14px;
}

ul, ol {
    color: var(--text-soft);
    padding-left: 22px;
    margin: 0 0 14px;
}
li {
    margin-bottom: 6px;
}

strong { color: #ffffff; font-weight: 700; }

hr {
    border: none;
    border-top: 1px solid var(--card-stroke);
    margin: 36px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 24px;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--card-stroke);
    font-size: 14px;
}
th, td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--card-stroke);
    vertical-align: top;
    color: var(--text-soft);
}
th {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.2px;
}
tr:last-child td { border-bottom: none; }

code {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 13px;
    font-family: ui-monospace, "SF Mono", "Menlo", Consolas, monospace;
}

.card-link {
    display: block;
    padding: 18px 22px;
    margin: 14px 0;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-stroke);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.1s ease, border-color 0.15s ease,
                background 0.15s ease;
}
.card-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.20);
    transform: translateY(-1px);
}
.card-link .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.card-link .sub {
    font-size: 13px;
    color: var(--text-faint);
}

footer.site-footer {
    text-align: center;
    color: var(--text-faint);
    font-size: 12px;
    padding: 24px 0 36px;
}
footer.site-footer a {
    color: var(--text-faint);
    border-bottom: none;
}
footer.site-footer a:hover { color: #ffffff; }
