/* Krafty K9s: under-construction page, from the old dogs site's
   "Dogs at Work" page. Fonts are hosted here, so no third-party requests. */

@font-face {
    font-family: 'Fredoka';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/fredoka-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Bubblegum Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/bubblegum-sans-latin.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* The seven dogs' collar colours. --dog-colour is set to the day's dog by
   theme.js (Sunday Lola ... Saturday Jess). */
:root {
    --color-lola: #7B5A94;
    --color-dodge: #6B9FBA;
    --color-bill: #2C8C4E;
    --color-elly: #D4A84E;
    --color-ruby: #EF4444;
    --color-max: #F97316;
    --color-jess: #FF69B4;
    --dog-colour: var(--color-lola);
    --text: #FFFFFF;
    --ink: #1A1A1A;
    --error: #FFB4A8;
    --radius: 16px;
}

body {
    font-family: 'Fredoka', 'Comic Sans MS', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    min-height: 100vh;
    background: #1B2340;
    overflow-x: hidden;
}

/* The construction-site picture stays still behind the page. A fixed layer
   rather than "background-attachment: fixed", which phones ignore and then
   stretch the picture down the whole page. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('../images/construction.jpg') no-repeat center center;
    background-size: cover;
}

a { color: #FFE9A8; }
a:hover, a:focus { color: #FFFFFF; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 10;
    background: #FFFFFF; color: var(--ink); padding: 0.5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Paw print dots drifting slowly behind everything */
.paw-prints {
    position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.08;
    background-image:
        radial-gradient(circle at 10% 20%, var(--color-lola) 1px, transparent 1px),
        radial-gradient(circle at 25% 40%, var(--color-dodge) 1px, transparent 1px),
        radial-gradient(circle at 45% 15%, var(--color-jess) 1px, transparent 1px),
        radial-gradient(circle at 65% 35%, var(--color-ruby) 1px, transparent 1px),
        radial-gradient(circle at 80% 25%, var(--color-max) 1px, transparent 1px),
        radial-gradient(circle at 90% 45%, var(--color-bill) 1px, transparent 1px),
        radial-gradient(circle at 15% 70%, var(--color-elly) 1px, transparent 1px);
    background-size: 200px 200px;
    animation: pawFloat 60s linear infinite;
}
@keyframes pawFloat { from { background-position: 0 0; } to { background-position: 200px 200px; } }

.container { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 60px 20px 20px; }
main:focus { outline: none; }

.shadow-text { text-shadow: 3px 3px 10px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.6); }

.construction-wrapper {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 20px 0 40px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.brand {
    font-family: 'Bubblegum Sans', cursive;
    font-size: clamp(3.2rem, 9vw, 6rem);
    line-height: 1.05;
    margin-bottom: 6px;
}
.brand .k9 { color: var(--dog-colour); -webkit-text-stroke: 1px rgba(0,0,0,0.35); }

.construction-heading {
    font-family: 'Bubblegum Sans', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 6px;
}

.construction-subtext {
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 30px;
}

.construction-image {
    width: 100%; max-width: 640px; height: auto;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

/* Sign-up card: a solid panel so the text is readable over the picture */
.signup {
    width: 100%; max-width: 680px; text-align: left;
    background: rgba(15, 18, 38, 0.88);
    border: 3px solid var(--dog-colour);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}
.signup h2 { font-family: 'Bubblegum Sans', cursive; font-size: 2rem; line-height: 1.2; margin-bottom: 8px; }
.signup p { margin-bottom: 12px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 20px; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input {
    width: 100%; padding: 12px 14px; font: inherit; font-size: 1.05rem;
    color: var(--ink); background: #FFFFFF;
    border: 3px solid #8A8FA8; border-radius: 10px;
}
.field input:focus { outline: 3px solid #FFE9A8; outline-offset: 2px; border-color: var(--dog-colour); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.hint { margin: 6px 0 0; font-size: 0.95rem; opacity: 0.9; }
.field-error { margin: 6px 0 0; color: var(--error); font-weight: 600; }

.gold-button {
    display: inline-block; cursor: pointer;
    padding: 14px 44px;
    font-family: 'Bubblegum Sans', cursive; font-size: 1.6rem;
    color: #4A2C00;
    background: linear-gradient(135deg, #F5C842 0%, #E0A020 50%, #F5C842 100%);
    border: 3px solid #C8860A; border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35), 0 0 25px rgba(212,168,78,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gold-button:hover, .gold-button:focus-visible {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 35px rgba(212,168,78,0.8);
    outline: 3px solid #FFFFFF; outline-offset: 3px;
}
.gold-button:disabled { opacity: 0.7; cursor: wait; transform: none; }

.honeypot { display: none !important; }

.error-summary { border: 3px solid var(--error); border-radius: 10px; padding: 14px 18px; margin: 12px 0; }
.error-summary h3 { color: var(--error); font-size: 1.15rem; margin-bottom: 6px; }
.error-summary ul { padding-left: 1.3rem; }
.error-summary a { color: #FFFFFF; }

.form-message { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form-message.success { display: block; background: rgba(44,140,78,0.25); border: 2px solid #7DDC9A; }
.form-message.error { display: block; background: rgba(239,68,68,0.2); border: 2px solid var(--error); }
.form-message:focus, .error-summary h3:focus { outline: 3px solid #FFE9A8; outline-offset: 3px; }

/* Privacy page */
.prose {
    max-width: 760px; margin: 0 auto;
    background: rgba(15, 18, 38, 0.9); border-radius: var(--radius); padding: 32px;
}
.prose h1 { font-family: 'Bubblegum Sans', cursive; font-size: 2.6rem; line-height: 1.2; }
.prose h2 { font-family: 'Bubblegum Sans', cursive; font-size: 1.6rem; margin: 24px 0 6px; }
.prose p { margin-bottom: 12px; }
.prose .updated { opacity: 0.85; }

footer { text-align: center; padding: 30px 20px; margin-top: 30px; background: rgba(0,0,0,0.35); }
footer p { margin-bottom: 4px; }
.socials { display: flex; justify-content: center; gap: 14px; list-style: none; margin-bottom: 14px; }
.socials a {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    color: #FFFFFF; background: rgba(0,0,0,0.45); border: 2px solid rgba(255,255,255,0.6);
    transition: background 0.3s ease, transform 0.3s ease;
}
.socials a:hover, .socials a:focus-visible { background: var(--dog-colour); transform: translateY(-3px); outline: 3px solid #FFFFFF; outline-offset: 2px; }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .paw-prints { animation: none; }
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
