|
| 1 | +/* Shared page vocabulary — tokens plus the components used by more than one |
| 2 | + page (join, sponsors). Scoped to .wdc-page so it can't leak onto the |
| 3 | + host/past-host pages. Add .wdc-page to a page's wrapper div to opt in. */ |
| 4 | +.wdc-page { |
| 5 | + --paper: #fafafa; |
| 6 | + --line: #e0e0e0; |
| 7 | + --ink: #1a1a1a; |
| 8 | + --ink-2: #5a5a5a; |
| 9 | + --ink-3: #8a8a8a; |
| 10 | + --teal: var(--md-primary-fg-color, #009688); |
| 11 | + --teal-dark: #00766c; |
| 12 | + --blue: var(--md-accent-fg-color, #448aff); |
| 13 | + --radius: 14px; |
| 14 | + --mono: ui-monospace, "SF Mono", Menlo, monospace; |
| 15 | +} |
| 16 | + |
| 17 | +.wdc-page .lead { |
| 18 | + font-size: clamp(22px, 2.5vw, 28px); |
| 19 | + font-weight: 300; |
| 20 | + line-height: 1.5; |
| 21 | + color: var(--ink); |
| 22 | + margin: 4px 0 12px; |
| 23 | + max-width: 60ch; |
| 24 | +} |
| 25 | + |
| 26 | +/* Row of tiles. auto-fit collapses the empty tracks, so the column count |
| 27 | + follows the tile count on its own — a section with two tiles, or one |
| 28 | + paragraph of prose, needs no modifier class. Stacking below 900px still |
| 29 | + needs the breakpoint: the content column is wide enough there that the |
| 30 | + minmax floor alone would keep three tiles side by side. */ |
| 31 | +.wdc-page .tiles { |
| 32 | + display: grid; |
| 33 | + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); |
| 34 | + gap: 16px; |
| 35 | + padding: 20px 0; |
| 36 | + margin: 16px 0 20px; |
| 37 | + border-bottom: 1px solid var(--line); |
| 38 | +} |
| 39 | +.wdc-page .tile { |
| 40 | + padding: 22px; |
| 41 | + border-radius: var(--radius); |
| 42 | + background: var(--paper); |
| 43 | + border: 1px solid var(--line); |
| 44 | + transition: transform 0.2s, box-shadow 0.2s; |
| 45 | +} |
| 46 | +.wdc-page .tile:hover { |
| 47 | + transform: translateY(-2px); |
| 48 | + box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.05); |
| 49 | +} |
| 50 | +.wdc-page .tile h3 { |
| 51 | + font-weight: 400; |
| 52 | + font-size: 22px; |
| 53 | + margin: 10px 0 8px; |
| 54 | +} |
| 55 | +.wdc-page .tile p { |
| 56 | + margin: 0; |
| 57 | + color: var(--ink-2); |
| 58 | + font-size: 15px; |
| 59 | +} |
| 60 | +.wdc-page .tile a { |
| 61 | + font-weight: 500; |
| 62 | +} |
| 63 | + |
| 64 | +/* Full-width teal call-to-action banner */ |
| 65 | +.wdc-page .cta { |
| 66 | + margin: 20px 0; |
| 67 | + padding: 40px; |
| 68 | + border-radius: var(--radius); |
| 69 | + background: linear-gradient(135deg, var(--teal-dark), var(--teal)); |
| 70 | + color: #fff; |
| 71 | + position: relative; |
| 72 | + overflow: hidden; |
| 73 | +} |
| 74 | +.wdc-page .cta::before { |
| 75 | + content: ""; |
| 76 | + position: absolute; |
| 77 | + inset: 0; |
| 78 | + background: radial-gradient(circle at 80% 20%, rgba(68, 138, 255, 0.3), transparent 50%); |
| 79 | + pointer-events: none; |
| 80 | +} |
| 81 | +.wdc-page .cta-inner { |
| 82 | + display: grid; |
| 83 | + grid-template-columns: 1.4fr auto; |
| 84 | + gap: 32px; |
| 85 | + align-items: center; |
| 86 | + position: relative; |
| 87 | +} |
| 88 | +.wdc-page .cta h3 { |
| 89 | + font-weight: 300; |
| 90 | + font-size: 36px; |
| 91 | + margin: 14px 0 10px; |
| 92 | + line-height: 1.15; |
| 93 | + color: #fff; |
| 94 | +} |
| 95 | +.wdc-page .cta p { |
| 96 | + margin: 0; |
| 97 | + color: rgba(255, 255, 255, 0.9); |
| 98 | + max-width: 48ch; |
| 99 | +} |
| 100 | +.wdc-page .cta-actions { |
| 101 | + display: flex; |
| 102 | + flex-direction: column; |
| 103 | + gap: 10px; |
| 104 | +} |
| 105 | +.wdc-page .eyebrow { |
| 106 | + display: inline-flex; |
| 107 | + align-items: center; |
| 108 | + gap: 8px; |
| 109 | + font-family: var(--mono); |
| 110 | + font-size: 12px; |
| 111 | + letter-spacing: 0.06em; |
| 112 | + text-transform: uppercase; |
| 113 | + padding: 6px 10px; |
| 114 | + background: rgba(255, 255, 255, 0.15); |
| 115 | + border-radius: 999px; |
| 116 | +} |
| 117 | +.wdc-page .dot { |
| 118 | + width: 7px; |
| 119 | + height: 7px; |
| 120 | + border-radius: 50%; |
| 121 | + background: var(--blue); |
| 122 | + border: 1px solid #fff; |
| 123 | + box-shadow: 0 0 0 3px rgba(68, 138, 255, 0.3); |
| 124 | +} |
| 125 | + |
| 126 | +.wdc-page .btn { |
| 127 | + display: inline-flex; |
| 128 | + align-items: center; |
| 129 | + justify-content: center; |
| 130 | + padding: 12px 48px; |
| 131 | + border-radius: 12px; |
| 132 | + border: 2px solid rgba(255, 255, 255, 0.9); |
| 133 | + font-weight: 500; |
| 134 | + font-size: 17px; |
| 135 | + text-decoration: none; |
| 136 | + white-space: nowrap; |
| 137 | + transition: background 0.15s, border-color 0.15s; |
| 138 | +} |
| 139 | +.wdc-page .btn.primary { background: var(--blue); color: #fff; } |
| 140 | +.wdc-page .btn.primary:hover { background: #2979ff; border-color: #fff; } |
| 141 | + |
| 142 | +/* Question/answer list */ |
| 143 | +.wdc-page .qa { |
| 144 | + display: grid; |
| 145 | + gap: 18px; |
| 146 | + margin: 20px 0 8px; |
| 147 | +} |
| 148 | +.wdc-page .qa > div { |
| 149 | + padding-bottom: 18px; |
| 150 | + border-bottom: 1px solid var(--line); |
| 151 | +} |
| 152 | +.wdc-page .qa > div:last-child { |
| 153 | + border-bottom: none; |
| 154 | + padding-bottom: 0; |
| 155 | +} |
| 156 | +.wdc-page .qa .q { |
| 157 | + margin: 0 0 4px; |
| 158 | + font-weight: 500; |
| 159 | + color: var(--ink); |
| 160 | +} |
| 161 | +.wdc-page .qa .a { |
| 162 | + margin: 0; |
| 163 | + color: var(--ink-2); |
| 164 | +} |
| 165 | + |
| 166 | +@media (max-width: 900px) { |
| 167 | + .wdc-page .tiles { grid-template-columns: 1fr; } |
| 168 | + .wdc-page .cta { padding: 28px; } |
| 169 | + .wdc-page .cta h3 { font-size: 28px; } |
| 170 | + .wdc-page .cta-inner { grid-template-columns: 1fr; } |
| 171 | + .wdc-page .cta-actions { flex-direction: row; } |
| 172 | +} |
0 commit comments