* { box-sizing: border-box; } body { margin: 0; padding: 0; background: linear-gradient(135deg, #e8f0f7 0%, #f7f7f7 100%); color: #1f2d3a; font-family: Verdana, Arial, sans-serif; min-height: 100vh; } a { color: #1d57d4; text-decoration: underline; } a:hover { text-decoration: none; } .page { width: 96%; max-width: 60rem; margin: 3vh auto; background: #ffffff; border: 0.125rem solid #1f2d3a; border-radius: 0.9rem; box-shadow: 0 0.75rem 1.5rem rgba(20, 40, 60, 0.12); overflow: hidden; display: flex; flex-direction: column; min-height: calc(100vh - 6vh); } .site-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 0.125rem solid #1f2d3a; gap: 1rem; flex-wrap: wrap; background: #f2f7f7; } .logo { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.03rem; font-family: Verdana, Arial, sans-serif; } .search { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 40%; } .search input { flex: 1; min-width: 45%; padding: 0.4rem 0.75rem; border: 0.125rem solid #1f2d3a; border-radius: 1.5rem; background: #fff; font-family: inherit; } .button { border: 0.125rem solid #1f2d3a; background: #fff; padding: 0.35rem 0.9rem; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 0.04rem; } .button--ask { background: #ff8a00; color: #fff; } .user-block { display: flex; align-items: center; gap: 0.6rem; } .user-links { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.9rem; } .user-links a { text-decoration: underline; } .user-auth { display: flex; gap: 0.6rem; font-size: 0.9rem; } .content { display: grid; grid-template-columns: 1fr 28%; gap: 1.5rem; padding: 1.1rem 1.25rem 1.5rem; } .main-title { display: flex; align-items: baseline; gap: 1rem; margin: 0 0 0.8rem; } .main-title h1 { margin: 0; font-size: 1.5rem; font-family: Verdana, Arial, sans-serif; } .card { border: 0.125rem solid #1f2d3a; padding: 0.75rem; display: grid; grid-template-columns: 18% 1fr; gap: 0.75rem; margin-bottom: 1rem; background: #fcfcfc; box-shadow: 0.25rem 0.25rem 0 rgba(31, 45, 58, 0.08); } .avatar-box { width: 4.4rem; height: 4.4rem; border: 0.125rem solid #1f2d3a; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; text-transform: uppercase; background: #fff; } .avatar-box.small { width: 2.9rem; height: 2.9rem; font-size: 0.65rem; } .vote-box { margin-top: 0.5rem; border: 0.125rem solid #1f2d3a; display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.25rem 0.4rem; width: fit-content; background: #f2f7f7; } .vote-arrows { display: flex; flex-direction: column; font-size: 0.65rem; line-height: 1; } .question-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; display: inline-block; color: #2b7a78; } .meta { margin-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; } .tag { color: #1d57d4; } .sidebar { background: #f2f7f7; border: 0.125rem solid #1f2d3a; padding: 0.75rem; height: fit-content; box-shadow: 0.25rem 0.25rem 0 rgba(31, 45, 58, 0.08); } .not-underlined { text-decoration: none; } .sidebar h2 { margin: 0 0 0.5rem; font-size: 1.25rem; font-family: Verdana, Arial, sans-serif; } .sidebar-section { margin-bottom: 1.5rem; } .tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; } .tag-cloud .tag-red { color: #d4332f; font-weight: 700; } .tag-cloud .tag-green { color: #2f9e44; font-weight: 700; } .tag-cloud .tag-orange { color: #e67a2f; font-weight: 700; } .member-list { display: flex; flex-direction: column; gap: 0.5rem; } .form { display: grid; gap: 0.6rem; max-width: 32rem; } .form-row { display: grid; grid-template-columns: 30% 1fr; gap: 0.6rem; align-items: center; } .form input, .form textarea { padding: 0.4rem 0.6rem; border: 0.125rem solid #1f2d3a; font-family: inherit; background: #fff; } .form textarea { min-height: 9rem; resize: vertical; } .error { color: #d4332f; font-weight: 700; } .pagination { display: flex; gap: 0.6rem; margin: 0.6rem 0 1rem; } .page-link { border: 0.125rem solid #1f2d3a; padding: 0.2rem 0.5rem; min-width: 1.6rem; text-align: center; color: #111; text-decoration: none; background: #fff; } .answer-card { border: 0.125rem solid #1f2d3a; padding: 0.6rem; display: grid; grid-template-columns: 16% 1fr; gap: 0.75rem; margin-bottom: 1rem; background: #fcfcfc; box-shadow: 0.25rem 0.25rem 0 rgba(31, 45, 58, 0.08); } .answer-controls { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; } .current-tag { display: inline-block; border: 0.125rem solid #1f2d3a; background: #f2f7f7; padding: 0.25rem 0.6rem; margin-bottom: 0.6rem; font-size: 0.85rem; box-shadow: 0.2rem 0.2rem 0 rgba(31, 45, 58, 0.08); } .current-tag span { color: #1d57d4; font-weight: 700; } .footer { border-top: 0.125rem solid #1f2d3a; padding: 0.6rem 1.1rem; background: #f2f7f7; text-align: center; font-size: 0.85rem; margin-top: auto; } @media (max-width: 768px) { .content { grid-template-columns: 1fr; } .sidebar { order: 2; } .search { width: 100%; } } @media (max-width: 375px) { .site-header { padding: 0.8rem; gap: 0.6rem; } .logo { font-size: 1.3rem; } .search { min-width: 100%; } .search input { min-width: 100%; } .content { padding: 0.8rem; gap: 1rem; } .card, .answer-card { grid-template-columns: 1fr; } .avatar-box, .avatar-box.small { width: 3.2rem; height: 3.2rem; } } @media (min-width: 1200px) { .page { max-width: 72rem; } .content { grid-template-columns: 1fr 24%; gap: 2rem; } .logo { font-size: 1.8rem; } }