:root {
    --bg-canvas: #f8fafc;           /* slate-50 */
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;           /* slate-100 */

    --text-strong: #0f172a;         /* slate-900 */
    --text: #334155;                /* slate-700 */
    --text-subtle: #64748b;         /* slate-500 */

    --border: #e2e8f0;              /* slate-200 */
    --chip-border: #cbd5e1;         /* slate-300 */

    --primary-1: #3057a3;           /* blue-600 (gradient FROM) */
    --primary-2: #9153a8;           /* violet-600 (gradient TO) */
    --primary-1-10: rgba(37, 99, 235, 0.1);
    --primary-2-10: rgba(124, 58, 237, 0.1);

    --accent: #14b8a6;              /* teal-500 */

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    --focus: 0 0 0 3px rgba(124, 58, 237, 0.35); /* violet focus ring */

    --main-blue: #122971;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg-canvas);
    color: var(--text);
    font-size: 1rem;
    margin: 0;
}

a {
    color: var(--primary-1);
}

a:visited {
    color: var(--primary-2);
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  margin: 0 0 0.5rem;
}
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 600; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }

p { color: var(--text); }
strong { color: var(--text-strong); }

p.note {
    font-size: 0.875rem;
    color: var(--text-subtle);
    margin-top: 0.5em;
}

.highlight {
    background-image: linear-gradient(90deg, var(--primary-1), var(--primary-2));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    font-weight: bold;
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1em;
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-md);
}

.chips {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    margin: 1em 0;
}

.chip {
    font-size: 0.875rem;
    padding: 0.5em 1em;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.tags {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    list-style: none;
    padding: 0;
    margin-top: 0.75em;
}

.tag {
    display: flex;
    gap: 3px;
    padding: 2px 8px;
    font-size: 0.875rem;
    color: var(--text-subtle);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.tag .lucide {
    width: 1em;
}

/* default icons */
.lucide {
    width: 1.2em;
    height: 1.2em;
}

.content-section {
    max-width: 1120px;
    margin: 1em auto;
    padding: 0 1em;
}

.landing__title {
    margin: 0.5em 0;
}

.landing__links {
    display: flex;
    gap: 1em;
}

.hero {
    border-radius: var(--radius-2xl);
    padding: 32px 24px;
    background-image: linear-gradient(90deg, var(--primary-1), var(--primary-2));
    color: var(--bg-surface);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.hero p,
.hero h1,
.hero h2,
.hero h3 {
    color: inherit;
}

.hero .chips {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.hero .chip {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero .button {
    color: var(--primary-1);
    font-weight: bold;
    padding: 0.75em 1.25em;
    border-radius: var(--radius-xl);
}

/* default form look */
label {
    display: block;
    color: var(--text-strong);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25em;
}

input, select, textarea {
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-strong);
}

input[type="text"], textarea {
    width: 100%;
}

.notice-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.notice-list__state {
    margin-left: 2em;
}

.notice-list__date {
    margin-left: 1em;
}

.notice {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.notice__body {
    flex-grow: 1;
}

.notice__title,
.answer-notice__title {
    font-size: 1.25rem;
}

.notice__details,
.answer-notice__notice-details {
    white-space: pre-line;
}

.notice .chips {
    margin: 0;
    align-self: flex-start;
}

.notice-attachments {
    margin-top: 1em;
}

.notice-attachments a,
.answer-attachments a {
    display: block;
}

.notice-answers {
    margin: 1em 0;
}

.new-notice label,
.answer-notice__form label {
    display: block;
    margin-top: 1rem;
}

.new-notice input[type="text"],
.new-notice textarea,
.answer-notice__form input[type="text"],
.answer-notice__form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    font-size: 1rem;
}

.button.answer-notice__submit {
    display: block;
    margin-top: 1em;
}

.new-notice input[type="text"] {
    width: 31rem;
}

.new-notice__buttons {
    display: flex;
    justify-content: end;
    margin-bottom: 0;
}

.profile__update-form {
    margin-top: 1em;
}

.profile__update-form button {
    display: block;
    margin-top: 1em;
}

.error__status {
    font-size: 4rem;
    margin: 1rem 0;
    color: var(--main-blue);
}
