|  | 
|  | 1 | +:root { | 
|  | 2 | +    --color-primary: #3f51b5; | 
|  | 3 | +    --color-primary-dark: #283593; | 
|  | 4 | +    --color-primary-darker: #1a237e; | 
|  | 5 | +    --color-text: #64748b; | 
|  | 6 | +    --color-background: #f8fafc; | 
|  | 7 | +    --color-border: #e2e8f0; | 
|  | 8 | +    --color-white: white; | 
|  | 9 | +} | 
|  | 10 | + | 
|  | 11 | +/* Base styles */ | 
| 1 | 12 | body { | 
| 2 |  | -    font-family: 'Helvetica Neue', sans-serif; | 
| 3 |  | -    background-color: #f0f0f0; | 
|  | 13 | +    font-family: 'Inter', system-ui, -apple-system, sans-serif; | 
|  | 14 | +    background-color: var(--color-background); | 
| 4 | 15 |     padding: 0; | 
| 5 | 16 |     margin: 0; | 
|  | 17 | +    line-height: 1.6; | 
| 6 | 18 | } | 
| 7 | 19 | 
 | 
| 8 |  | -.Index { | 
| 9 |  | -    width: 100vw; | 
| 10 |  | -    height: 100vh; | 
| 11 |  | -    background-color: #f0f0f0; | 
| 12 |  | -    color: #333; | 
| 13 |  | -    font-family: 'Helvetica Neue', sans-serif; | 
|  | 20 | +*, *::before, *::after { | 
|  | 21 | +    box-sizing: border-box; | 
|  | 22 | +    margin: 0; | 
|  | 23 | +    padding: 0; | 
|  | 24 | +} | 
| 14 | 25 | 
 | 
| 15 |  | -    display: grid; | 
| 16 |  | -    grid-template-columns: auto 40vw auto; | 
| 17 |  | -    grid-template-rows: auto auto auto 3em; | 
| 18 |  | -    grid-template-areas: | 
| 19 |  | -    ". . . ." | 
| 20 |  | -    ". main main ." | 
| 21 |  | -    ". . . ." | 
| 22 |  | -    "footer footer footer footer"; | 
|  | 26 | +p { | 
|  | 27 | +    color: var(--color-text); | 
| 23 | 28 | } | 
| 24 | 29 | 
 | 
| 25 |  | -.Index-footer { | 
| 26 |  | -    background-color: #333; | 
| 27 |  | -    grid-area: footer; | 
|  | 30 | +a { | 
|  | 31 | +    color: var(--color-primary); | 
|  | 32 | +    text-decoration: none; | 
|  | 33 | +    transition: color 0.2s; | 
| 28 | 34 | } | 
| 29 | 35 | 
 | 
| 30 |  | -.Index-footer > div { | 
| 31 |  | -    padding-left: 0.7em; | 
| 32 |  | -    padding-top: 0.7em; | 
|  | 36 | +a:hover { | 
|  | 37 | +    color: var(--color-primary-dark); | 
| 33 | 38 | } | 
| 34 | 39 | 
 | 
| 35 |  | -.Index-nodes { | 
| 36 |  | -    grid-area: main; | 
|  | 40 | +/* Layout */ | 
|  | 41 | +.page-wrapper { | 
|  | 42 | +    container-type: inline-size; | 
|  | 43 | +    max-width: 900px; | 
|  | 44 | +    margin: 0 auto; | 
|  | 45 | +    padding: 40px 20px; | 
|  | 46 | +    display: flex; | 
|  | 47 | +    flex-direction: column; | 
|  | 48 | +    gap: 4rem; | 
| 37 | 49 | } | 
| 38 | 50 | 
 | 
| 39 |  | -.Index-node { | 
| 40 |  | -    margin: 5px; | 
| 41 |  | -    padding: 15px; | 
| 42 |  | -    background-color: #fff; | 
| 43 |  | -    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); | 
|  | 51 | +/* Header */ | 
|  | 52 | +header { | 
|  | 53 | +    text-align: center; | 
|  | 54 | +    display: flex; | 
|  | 55 | +    flex-direction: column; | 
|  | 56 | +    gap: 1.5rem; | 
| 44 | 57 | } | 
| 45 | 58 | 
 | 
| 46 |  | -span { | 
| 47 |  | -    display: block; | 
| 48 |  | -    margin-bottom: 5px; | 
|  | 59 | +header h1 { | 
|  | 60 | +    color: var(--color-primary-darker); | 
|  | 61 | +    font-size: 2.5rem; | 
| 49 | 62 | } | 
| 50 | 63 | 
 | 
| 51 |  | -input[type="text"] { | 
| 52 |  | -    width: 100%; | 
| 53 |  | -    padding: 10px; | 
| 54 |  | -    border-radius: 5px; | 
| 55 |  | -    border: 1px solid #ccc; | 
| 56 |  | -    margin-bottom: 10px; | 
|  | 64 | +header p { | 
|  | 65 | +    max-width: 600px; | 
|  | 66 | +    margin: 0 auto; | 
| 57 | 67 | } | 
| 58 | 68 | 
 | 
| 59 |  | -button { | 
| 60 |  | -    background-color: #4c9aff; | 
| 61 |  | -    color: #fff; | 
| 62 |  | -    border: none; | 
| 63 |  | -    border-radius: 5px; | 
| 64 |  | -    padding: 10px 20px; | 
| 65 |  | -    font-size: 1.2em; | 
|  | 69 | +/* Cards */ | 
|  | 70 | +.cards { | 
|  | 71 | +    display: flex; | 
|  | 72 | +    flex-direction: column; | 
|  | 73 | +    gap: 24px; | 
| 66 | 74 | } | 
| 67 | 75 | 
 | 
| 68 |  | -button:hover { | 
| 69 |  | -    background-color: #4c7eff; | 
|  | 76 | +.card { | 
|  | 77 | +    background-color: var(--color-white); | 
|  | 78 | +    border-radius: 16px; | 
|  | 79 | +    padding: 40px; | 
|  | 80 | +    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);; | 
|  | 81 | +    display: grid; | 
|  | 82 | +    grid-template-columns: 2fr 1fr; | 
|  | 83 | +    gap: 32px; | 
|  | 84 | +    align-items: center; | 
| 70 | 85 | } | 
| 71 | 86 | 
 | 
| 72 |  | -a:link { | 
| 73 |  | -    color: #333; | 
|  | 87 | +.card-content { | 
|  | 88 | +    order: 1; | 
|  | 89 | +    display: flex; | 
|  | 90 | +    flex-direction: column; | 
|  | 91 | +    gap: 1.5rem; | 
| 74 | 92 | } | 
| 75 | 93 | 
 | 
| 76 |  | -a:visited { | 
| 77 |  | -    color: #333; | 
|  | 94 | +.card h2 { | 
|  | 95 | +    color: var(--color-primary-darker); | 
|  | 96 | +    font-size: 1.75rem; | 
|  | 97 | +    text-align: left; | 
| 78 | 98 | } | 
| 79 | 99 | 
 | 
| 80 |  | -a:hover { | 
| 81 |  | -    color: #555; | 
|  | 100 | + | 
|  | 101 | +/* Buttons */ | 
|  | 102 | +.button-container { | 
|  | 103 | +    order: 2; | 
|  | 104 | +    text-align: center; | 
|  | 105 | +    display: flex; | 
|  | 106 | +    justify-content: center; | 
|  | 107 | +} | 
|  | 108 | + | 
|  | 109 | +.button { | 
|  | 110 | +    background-color: var(--color-primary); | 
|  | 111 | +    color: var(--color-white); | 
|  | 112 | +    text-decoration: none; | 
|  | 113 | +    padding: 16px 32px; | 
|  | 114 | +    border-radius: 12px; | 
|  | 115 | +    font-weight: 600; | 
|  | 116 | +    transition: all 0.2s ease; | 
|  | 117 | +    max-width: 200px; | 
|  | 118 | +    width: 80%; | 
|  | 119 | +    flex-grow: 1; | 
| 82 | 120 | } | 
|  | 121 | + | 
|  | 122 | +.button:hover { | 
|  | 123 | +    background-color: var(--color-primary-dark); | 
|  | 124 | +    color: var(--color-white); | 
|  | 125 | +} | 
|  | 126 | + | 
|  | 127 | +.divider { | 
|  | 128 | +    height: 1px; | 
|  | 129 | +    background-color: var(--color-border); | 
|  | 130 | +} | 
|  | 131 | + | 
|  | 132 | +/* Footer */ | 
|  | 133 | +footer { | 
|  | 134 | +    text-align: center; | 
|  | 135 | +} | 
|  | 136 | + | 
|  | 137 | +/* Responsive styles */ | 
|  | 138 | +@container (max-width: 700px) { | 
|  | 139 | +    .card { | 
|  | 140 | +        grid-template-columns: 1fr; | 
|  | 141 | +    } | 
|  | 142 | + | 
|  | 143 | +    .card h2 { | 
|  | 144 | +        font-size: 1.5rem; | 
|  | 145 | +        text-align: center; | 
|  | 146 | +    } | 
|  | 147 | + | 
|  | 148 | +    .button { | 
|  | 149 | +        width: 100%; | 
|  | 150 | +    } | 
|  | 151 | +} | 
|  | 152 | + | 
0 commit comments