diff --git a/event-create.css b/event-create.css index a138e29..e118a3e 100644 --- a/event-create.css +++ b/event-create.css @@ -1,7 +1,9 @@ :root { --color-bg: #f7f7f2; --color-surface: #ffffff; + --color-surface-soft: #f0eee7; --color-text: #1f1f1f; + --color-text-secondary: #303030; --color-muted: #6b6b6b; --color-border: #d8d8d2; --color-border-strong: #202020; @@ -9,10 +11,16 @@ --color-primary-hover: #111111; --color-focus: #2f6fed; --color-error: #b42318; + --color-progress-bg: #ddddda; + --color-divider: #ecece7; + --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06); + --radius-sm: 0.875rem; --radius-md: 1.25rem; - --radius-lg: 999px; + --radius-lg: 1.5rem; + --radius-pill: 999px; + --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; @@ -21,8 +29,14 @@ --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; + --max-width: 1120px; + --content-width: 760px; --header-height: 4.5rem; + + --control-min-height: 3rem; + --input-min-height: 3.5rem; + --card-min-height: 6rem; } *, @@ -130,7 +144,7 @@ a { } .step-layout { - width: min(100%, 760px); + width: min(100%, var(--content-width)); margin: 0 auto; display: grid; gap: var(--space-6); @@ -142,11 +156,30 @@ a { grid-template-columns: 1fr; } -.step-copy { +.step-copy, +.step-fields, +.form-field, +fieldset { display: grid; gap: var(--space-4); } +.step-copy { + gap: var(--space-4); +} + +.step-fields { + gap: var(--space-5); +} + +.form-field, +fieldset { + margin: 0; + padding: 0; + border: 0; + gap: var(--space-3); +} + .step-kicker { margin: 0; font-weight: 700; @@ -165,17 +198,22 @@ h2 { .step-text { margin: 0; max-width: 42rem; - color: #303030; + color: var(--color-text-secondary); font-size: clamp(1rem, 1.4vw, 1.2rem); } +.intro-card, +.review-card { + border: 1px solid var(--color-border); + background: var(--color-surface); + box-shadow: var(--shadow-soft); +} + .intro-card { max-width: 24rem; padding: var(--space-6); - border: 1px solid var(--color-border); border-radius: 1.75rem; - background: linear-gradient(135deg, #ffffff, #f0eee7); - box-shadow: var(--shadow-soft); + background: linear-gradient(135deg, var(--color-surface), var(--color-surface-soft)); } .intro-card-emoji { @@ -183,20 +221,6 @@ h2 { margin-bottom: var(--space-3); } -.step-fields { - display: grid; - gap: var(--space-5); -} - -.form-field, -fieldset { - margin: 0; - padding: 0; - border: 0; - display: grid; - gap: var(--space-3); -} - label, legend { font-weight: 700; @@ -214,7 +238,7 @@ input[type="time"], input[type="number"], textarea { width: 100%; - min-height: 3.5rem; + min-height: var(--input-min-height); padding: 0.95rem 1rem; border: 1px solid var(--color-border); border-radius: 1rem; @@ -241,7 +265,7 @@ textarea { position: relative; display: grid; gap: 0.15rem; - min-height: 6rem; + min-height: var(--card-min-height); padding: 1rem 1rem 1rem 1.05rem; border: 1px solid var(--color-border); border-radius: 1rem; @@ -280,9 +304,14 @@ textarea { text-align: center; } +.counter-button, +.button { + min-height: var(--control-min-height); +} + .counter-button { - width: 3rem; - height: 3rem; + width: var(--control-min-height); + height: var(--control-min-height); border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-surface); @@ -291,10 +320,7 @@ textarea { .review-card { padding: var(--space-5); - border: 1px solid var(--color-border); - border-radius: 1.5rem; - background: var(--color-surface); - box-shadow: var(--shadow-soft); + border-radius: var(--radius-lg); } .review-list { @@ -307,7 +333,7 @@ textarea { display: grid; gap: var(--space-1); padding-bottom: var(--space-4); - border-bottom: 1px solid #ecece7; + border-bottom: 1px solid var(--color-divider); } .review-item:last-child { @@ -322,7 +348,7 @@ textarea { .review-item dd { margin: 0; white-space: pre-wrap; - color: #303030; + color: var(--color-text-secondary); } .flow-footer { @@ -338,7 +364,7 @@ textarea { .progress { width: 100%; height: 0.375rem; - background: #ddddda; + background: var(--color-progress-bg); } .progress-bar { @@ -374,9 +400,8 @@ textarea { display: inline-flex; align-items: center; justify-content: center; - min-height: 3rem; padding: 0.9rem 1.35rem; - border-radius: var(--radius-lg); + border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: transparent; color: var(--color-text); @@ -430,6 +455,35 @@ textarea:focus-visible { outline-offset: 3px; } +@media (max-width: 767px) { + .site-nav { + flex-wrap: wrap; + padding: var(--space-3) 0; + } + + .site-nav-links { + gap: var(--space-3); + } + + .flow-actions, + .flow-actions-right { + flex-direction: column; + align-items: stretch; + } + + .button--text { + justify-content: flex-start; + } + + .button--primary { + width: 100%; + } + + .event-flow-header { + justify-content: flex-start; + } +} + @media (min-width: 768px) { .step-layout--intro { grid-template-columns: 1.25fr 0.8fr; diff --git a/event-create.html b/event-create.html index 5190f9f..da5d6b0 100644 --- a/event-create.html +++ b/event-create.html @@ -25,7 +25,11 @@