/* style.css */

:root {
--color-primary: #1993BE;
--color-primary-dark: #0C6483;

--color-point: #1993BE;
--color-point-dark: #0C6483;

--color-bg: #f6f7f8;
--color-surface: #ffffff;

--color-border: #d9e1e5;
--color-border-soft: #edf1f3;

--color-text: #1f2a30;
--color-text-soft: #4c5f68;
--color-muted: #3b4a51;

--color-chip-bg: #ffffff;
--color-chip-border: #d9e1e5;

--color-heading-line: #1993BE;
--color-accent: #f2f8fa;
}

* {
box-sizing: border-box;
}

html {
-webkit-text-size-adjust: 100%;
}

body {
margin: 0;
font-family: "Nanum Gothic", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
color: var(--color-text);
background: var(--color-bg);
line-height: 1.68;
}

a {
color: inherit;
text-decoration: none;
}

img {
max-width: 100%;
height: auto;
}

table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
}

/* Header */

.header {
background: #ffffff;
border-bottom: 3px solid var(--color-primary-dark);
}

.inner {
max-width: 1140px;
margin: 0 auto;
padding: 0 22px;
}

.header > .inner {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 72px;
}

.logo {
flex: 0 0 auto;
}

.logo a {
display: flex;
align-items: center;
}

.logo img {
display: block;
}

.menu {
margin-left: auto;
}

.menu ul,
.sub-menu ul {
display: flex;
align-items: center;
gap: 0;
margin: 0;
padding: 0;
list-style: none;
}

.menu li {
position: relative;
}

.menu a {
display: block;
padding: 25px 15px 23px;
font-size: 16px;
font-weight: 700;
color: var(--color-text);
line-height: 1.2;
border-bottom: 3px solid transparent;
}

.menu a:hover,
.menu a[aria-current="page"] {
color: var(--color-primary-dark);
border-bottom-color: var(--color-primary);
}

.burger {
display: none;
width: 42px;
height: 42px;
padding: 8px;
border: 1px solid var(--color-border);
border-radius: 0;
background: #ffffff;
cursor: pointer;
}

.burger span {
display: block;
height: 2px;
margin: 6px 0;
background: var(--color-primary-dark);
}

/* Sub menu */

.sub-menu {
background: #ffffff;
border-bottom: 1px solid var(--color-border-soft);
}

.sub-menu ul {
justify-content: center;
max-width: 1140px;
margin: 0 auto;
padding: 12px 22px;
flex-wrap: wrap;
gap: 8px;
}

.sub-menu a {
display: block;
padding: 7px 13px;
border: 1px solid var(--color-chip-border);
border-radius: 0;
color: var(--color-text-soft);
background: var(--color-chip-bg);
font-size: 14px;
font-weight: 700;
}

.sub-menu a:hover {
border-color: var(--color-primary);
color: var(--color-primary-dark);
background: #ffffff;
}

/* Content */

.content {
max-width: 1040px;
margin: 28px auto 0;
padding: 0 22px;
}

.post {
background: var(--color-surface);
border: 1px solid var(--color-border);
padding: 34px;
}

.post-header {
margin-bottom: 30px;
}

.post-header h1 {
margin: 0;
padding: 0 0 18px;
border: 0;
border-bottom: 1px solid var(--color-border);
background: transparent;
font-size: 31px;
line-height: 1.32;
letter-spacing: -0.045em;
color: var(--color-text);
}

.post-header h1::before {
content: "";
display: inline-block;
width: 9px;
height: 9px;
margin-right: 10px;
background: var(--color-primary);
vertical-align: 5px;
}

.post-header h1::after {
content: none;
}

.post-header p {
margin: 12px 0 0;
color: var(--color-text-soft);
font-size: 16px;
line-height: 1.62;
}

/* List */

.post-list {
margin: 30px 0 38px;
}

.post-list h2,
.post-content h2 {
position: relative;
margin: 0 0 18px;
padding: 0 0 13px;
border-bottom: 1px solid var(--color-border);
font-size: 25px;
line-height: 1.36;
letter-spacing: -0.035em;
color: var(--color-text);
}

.post-list h2::before,
.post-content h2::before {
content: "";
display: inline-block;
width: 7px;
height: 24px;
margin-right: 10px;
background: var(--color-primary);
vertical-align: -4px;
}

.post-list h2::after,
.post-content h2::after {
content: none;
}

/* New item list */

.item-list {
display: flex;
flex-direction: column;
gap: 16px;
}

.item-list article {
display: grid;
grid-template-columns: 300px minmax(0, 1fr);
gap: 24px;
align-items: stretch;
padding: 18px;
border: 1px solid var(--color-border);
background: #ffffff;
}

.item-image {
display: block;
overflow: hidden;
border: 1px solid var(--color-border-soft);
background: #f2f2f2;
order: 1;
}

.item-image img {
display: block;
width: 100%;
aspect-ratio: 2 / 1;
height: auto;
object-fit: cover;
}

.item-info {
display: flex;
flex-direction: column;
min-width: 0;
order: 2;
}

.item-info strong {
display: block;
margin: 0 0 13px;
font-size: 20px;
line-height: 1.36;
letter-spacing: -0.035em;
color: var(--color-text);
}

.item-info strong::before {
content: "";
display: inline-block;
width: 6px;
height: 6px;
margin-right: 8px;
background: var(--color-primary);
vertical-align: 4px;
}

.item-info span {
display: block;
position: relative;
margin: 0 0 7px;
padding-left: 72px;
font-size: 15px;
line-height: 1.5;
color: var(--color-text-soft);
}

.item-place::before {
content: "장소";
position: absolute;
left: 0;
top: 0;
width: 48px;
height: 24px;
border: 1px solid var(--color-border);
background: #ffffff;
color: var(--color-primary-dark);
font-size: 13px;
font-weight: 700;
line-height: 22px;
text-align: center;
}

.item-date::before {
content: "일정";
position: absolute;
left: 0;
top: 0;
width: 48px;
height: 24px;
border: 1px solid var(--color-border);
background: #ffffff;
color: var(--color-primary-dark);
font-size: 13px;
font-weight: 700;
line-height: 22px;
text-align: center;
}

.item-info a {
display: inline-flex;
align-items: center;
justify-content: center;
align-self: flex-start;
gap: 8px;
margin-top: auto;
padding: 12px 28px;
border: 1px solid var(--color-primary-dark);
border-radius: 4px;
background: var(--color-primary-dark);
color: #ffffff;
font-size: 15px;
font-weight: 800;
line-height: 1.25;
text-align: center;
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.item-info a::after {
content: "→";
display: inline-block;
font-size: 16px;
font-weight: 800;
line-height: 1;
}

.item-info a:hover {
background: var(--color-primary);
border-color: var(--color-primary);
}

/* Old list fallback */

.post-list ul {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
margin: 0;
padding: 0;
list-style: none;
}

.post-list li {
overflow: hidden;
border: 1px solid var(--color-border);
background: #ffffff;
}

.post-list li > a:first-child {
display: block;
}

.post-list li img {
display: block;
width: 100%;
aspect-ratio: 2 / 1;
object-fit: cover;
}

.post-list li strong {
display: block;
padding: 12px 13px 10px;
border-bottom: 1px solid var(--color-border-soft);
font-size: 16px;
line-height: 1.35;
letter-spacing: -0.025em;
}

.post-list li span {
display: block;
padding: 0 13px;
margin: 9px 0;
color: var(--color-text-soft);
font-size: 14px;
line-height: 1.45;
}

.post-list li > a:last-child {
display: block;
width: calc(100% - 26px);
margin: 18px auto 13px;
padding: 10px 12px;
border: 1px solid var(--color-primary-dark);
background: var(--color-primary-dark);
color: #ffffff;
font-size: 14px;
font-weight: 700;
line-height: 1.25;
text-align: center;
}

.post-list li > a:last-child:hover {
background: var(--color-primary);
border-color: var(--color-primary);
}

/* Post content */

.post-content {
margin-top: 36px;
}

.content-view {
font-size: 16px;
color: var(--color-text-soft);
}

.post-content h3,
.content-view h3 {
margin: 30px 0 12px;
padding: 0 0 9px;
border-bottom: 1px solid var(--color-border-soft);
font-size: 21px;
line-height: 1.42;
letter-spacing: -0.03em;
color: var(--color-text);
}

.post-content h3::before,
.content-view h3::before {
content: "";
display: inline-block;
width: 6px;
height: 6px;
margin-right: 9px;
background: var(--color-primary);
vertical-align: 4px;
}

.post-content h3::after,
.content-view h3::after {
content: none;
}

.post-content p,
.content-view p {
margin: 11px 0;
line-height: 1.76;
}

.post-content ul,
.post-content ol,
.content-view ul,
.content-view ol {
margin: 14px 0 20px;
padding: 18px 22px;
border: 1px solid var(--color-border-soft);
background: #fafafa;
list-style: none;
}

.post-content li,
.content-view li {
position: relative;
margin: 7px 0;
padding-left: 17px;
line-height: 1.64;
}

.post-content li::before,
.content-view li::before {
content: "";
position: absolute;
left: 0;
top: 11px;
width: 5px;
height: 5px;
background: var(--color-primary);
}

.post-content table,
.content-view table {
margin: 18px 0 24px;
border-top: 2px solid var(--color-primary-dark);
font-size: 15px;
line-height: 1.5;
}

.post-content th,
.post-content td,
.content-view th,
.content-view td {
padding: 12px 13px;
border: 1px solid var(--color-border);
text-align: left;
vertical-align: top;
}

.post-content th,
.content-view th {
background: #f5f7f8;
color: var(--color-primary-dark);
font-weight: 800;
}

.post-content td,
.content-view td {
background: #ffffff;
color: var(--color-text-soft);
}

.post-content strong,
.content-view strong {
color: var(--color-primary-dark);
font-weight: 800;
}

/* Footer */

.footer {
margin-top: 48px;
padding: 32px 0;
border-top: 1px solid var(--color-border);
background: #ffffff;
color: var(--color-muted);
font-size: 14px;
text-align: center;
}

.footer nav {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 8px 14px;
margin-bottom: 10px;
}

.footer a {
color: var(--color-text-soft);
}

.footer a:hover {
color: var(--color-primary-dark);
text-decoration: underline;
}

.footer p {
margin: 0;
}

/* Tablet */

@media (max-width: 1080px) {
.content {
max-width: 960px;
}

.item-list article {
grid-template-columns: 280px minmax(0, 1fr);
}

.post-list ul {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

/* Mobile */

@media (max-width: 880px) {
.header > .inner {
flex-wrap: wrap;
min-height: auto;
padding-top: 13px;
padding-bottom: 13px;
}

.burger {
display: block;
}

.menu {
display: none;
width: 100%;
margin-left: 0;
padding: 12px 0 0;
}

.menu.is-open {
display: block;
}

.menu ul {
display: block;
text-align: center;
border-top: 1px solid var(--color-border-soft);
}

.menu li {
border-bottom: 1px solid var(--color-border-soft);
}

.menu a {
display: block;
padding: 13px 0;
border-bottom: 0;
text-align: center;
}

.menu a:hover,
.menu a[aria-current="page"] {
color: var(--color-primary-dark);
background: #f7f7f7;
border-bottom: 0;
}

.sub-menu ul {
justify-content: flex-start;
}

.post {
padding: 26px;
}

.post-header h1 {
font-size: 26px;
}

.item-list article {
grid-template-columns: 1fr;
gap: 15px;
}

.item-image {
order: 1;
}

.item-info {
order: 2;
}

.item-image img {
width: 100%;
aspect-ratio: 2 / 1;
height: auto;
}

.item-info a {
width: 100%;
padding: 13px 24px;
}

.post-list ul {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 660px) {
.inner {
padding-left: 14px;
padding-right: 14px;
}

.header > .inner {
padding-top: 12px;
padding-bottom: 12px;
}

.content {
margin: 18px auto 0;
padding: 0 14px;
}

.post {
padding: 20px 16px;
}

.post-header {
margin-bottom: 24px;
}

.post-header h1 {
font-size: 23px;
padding-bottom: 14px;
}

.post-header h1::before {
width: 7px;
height: 7px;
margin-right: 8px;
vertical-align: 4px;
}

.post-list h2,
.post-content h2,
.content-view h2 {
font-size: 22px;
}

.item-list {
gap: 13px;
}

.item-list article {
padding: 14px;
}

.item-info strong {
font-size: 18px;
}

.item-info span {
padding-left: 0;
font-size: 14px;
}

.item-place::before,
.item-date::before {
position: static;
display: inline-block;
margin-right: 7px;
vertical-align: 1px;
}

.post-list ul {
grid-template-columns: 1fr;
}

.post-content h3,
.content-view h3 {
font-size: 19px;
}

.post-content ul,
.post-content ol,
.content-view ul,
.content-view ol {
padding: 15px 16px;
}

.post-content table,
.content-view table {
display: block;
overflow-x: auto;
white-space: nowrap;
}
}