/* Holy Teapot — Custom Design System
   2026-03-30 v1
   ========================================= */

/* ---- CSS Custom Properties ---- */
:root {
    /* Primary — Tea Tones */
    --tea-amber: #C17F4E;
    --tea-dark: #8B5A2B;
    --tea-light: #E8D4B8;

    /* Neutral — Cream Tones */
    --cream: #FAF7F2;
    --cream-dark: #F0EBE1;
    --white: #FFFFFF;

    /* Secondary — Nature */
    --leaf-green: #6B8E6B;
    --leaf-dark: #4A6B4A;

    /* Coffee Heresy */
    --coffee-brown: #3D2314;
    --coffee-light: #6F4E37;

    /* Neutrals */
    --text-primary: #3D3632;
    --text-secondary: #6B635B;
    --text-light: #8B8279;

    /* Special */
    --purgatea-grey: #8B8682;
    --celestial-dark: #1a1a2e;
}

/* ---- Base Typography ---- */
body {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    line-height: 1.2;
    color: var(--tea-dark);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }

/* ---- Layout ---- */
.page-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .page-wrap { padding: 0 2rem; }
}

@media (min-width: 1024px) {
    .page-wrap { padding: 0 2.5rem; }
}

/* ---- Cards ---- */
.ht-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ht-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--tea-amber);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--tea-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: var(--tea-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 50px;
    border: 2px solid var(--tea-light);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--tea-amber);
    color: var(--tea-amber);
}

.btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--leaf-green);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-green:hover {
    background-color: var(--leaf-dark);
}

/* ---- Section Backgrounds ---- */
.bg-cream      { background-color: var(--cream); }
.bg-cream-dark { background-color: var(--cream-dark); }
.bg-tea-dark   { background-color: var(--tea-dark); }
.bg-tea-amber  { background-color: var(--tea-amber); }
.bg-celestial  { background-color: var(--celestial-dark); }
.bg-coffee     { background-color: var(--coffee-brown); }
.bg-leaf       { background-color: var(--leaf-green); }
.bg-white      { background-color: var(--white); }

/* ---- Text Colours ---- */
.text-tea-amber  { color: var(--tea-amber); }
.text-tea-dark   { color: var(--tea-dark); }
.text-tea-light  { color: var(--tea-light); }
.text-leaf       { color: var(--leaf-green); }
.text-secondary  { color: var(--text-secondary); }
.text-light      { color: var(--text-light); }

/* ---- Commandment Cards ---- */
.commandment-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.commandment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.commandment-number {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tea-light);
    line-height: 1;
}

/* ---- Blockquote ---- */
.ht-quote {
    border-left: 4px solid var(--tea-amber);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--cream-dark);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.ht-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--tea-dark);
    font-size: 0.9rem;
}

/* ---- Hero ---- */
.hero-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 40%, var(--tea-light) 100%);
    padding: 5rem 0 6rem;
}

@media (min-width: 640px) {
    .hero-section { padding: 6rem 0 8rem; }
}

/* ---- Celestial Section ---- */
.celestial-section {
    background: var(--celestial-dark);
    color: #e0e0f0;
    position: relative;
    overflow: hidden;
}

.celestial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Stars (decorative dots) ---- */
.star {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
}

.star-bright {
    width: 6px;
    height: 6px;
    opacity: 0.9;
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* ---- Support CTA ---- */
.support-section {
    background: linear-gradient(135deg, var(--tea-amber) 0%, var(--tea-dark) 100%);
    color: white;
}

/* ---- Navigation ---- */
.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--tea-dark);
}

/* ---- Footer ---- */
.ht-footer {
    background-color: var(--coffee-brown);
    color: #a09080;
}

.ht-footer a {
    color: #c0a890;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ht-footer a:hover {
    color: var(--tea-light);
}

/* ---- Utility ---- */
.section-spacing {
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .section-spacing { padding: 5rem 0; }
}

@media (min-width: 1024px) {
    .section-spacing { padding: 6rem 0; }
}

.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    color: var(--tea-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 36rem;
}

/* ---- Divider ---- */
.ht-divider {
    width: 60px;
    height: 3px;
    background: var(--tea-amber);
    border-radius: 2px;
    margin: 1.5rem 0;
}

/* ---- Form Styles ---- */
.ht-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--tea-light);
    border-radius: 8px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ht-input:focus {
    outline: none;
    border-color: var(--tea-amber);
    box-shadow: 0 0 0 3px rgba(193, 127, 78, 0.15);
}

.ht-label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.ht-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--tea-light);
    border-radius: 8px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--white);
    appearance: auto;
    transition: border-color 0.2s ease;
}

.ht-select:focus {
    outline: none;
    border-color: var(--tea-amber);
    box-shadow: 0 0 0 3px rgba(193, 127, 78, 0.15);
}

textarea.ht-input {
    min-height: 120px;
    resize: vertical;
}

/* ---- Accessibility ---- */
:focus-visible {
    outline: 2px solid var(--tea-amber);
    outline-offset: 2px;
}

/* ---- Smooth scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Selection colour ---- */
::selection {
    background-color: var(--tea-light);
    color: var(--tea-dark);
}
