/* Portfolio breakpoints follow the original Kalium WordPress theme:
   <=480px: one column; 481–768px: two; >=769px: three. */
* { box-sizing: border-box; }
body { margin: 0; color: #0000ff; background: #fff; font: 16px/1.6 Inter, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; background: none; border: 0; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 42px 5.5%; font-size: 32px; }
header > a { min-width: 0; overflow-wrap: anywhere; }
header button { flex-shrink: 0; font-size: 18px; min-height: 44px; }
header span { margin-left: 16px; }
main { margin: 10px 5.5% 80px; }
nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px 40px; margin: 20px 0 32px; }
nav button { padding: 6px 0; min-height: 44px; }
nav button.active { border-bottom: 1px solid; }
#grid { --columns: 3; --gap: 30px; position: relative; }
.card { position: absolute; display: block; margin: 0; overflow-wrap: anywhere; }
.card img { width: 100%; height: auto; display: block; }
.card h2 { font-size: 18px; font-weight: 400; margin: 14px 0 0; }
.card p { margin: 0; font-size: 14px; }
@media (hover: hover) { .card:hover img { opacity: .87; } }
footer { padding: 35px 5.5%; border-top: 1px solid #eee; display: flex; gap: 16px 25px; flex-wrap: wrap; color: #666; font-size: 14px; }
footer a { overflow-wrap: anywhere; }
#about { background: #0000ff; color: white; padding: 55px 5.5%; overflow-wrap: anywhere; }
#about .top-menu--widgets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 60px; }
#about .widget { min-width: 0; }
#about img { width: 100%; height: auto; max-width: 500px; }
#about h2, #about h3 { font-size: 24px; font-weight: 400; }
#about table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#about col:first-child { width: 52px !important; }
#about col:nth-child(2) { width: auto !important; }
#about td, #about th { border: 0; padding: 8px 5px; vertical-align: top; text-align: left; font-weight: 400; }
#project { min-width: 0; overflow-wrap: anywhere; }
#project h1 { font-weight: 400; font-size: 40px; line-height: 1.25; }
#project .description { white-space: pre-wrap; max-width: 760px; margin: 35px 0; }
#project img { display: block; max-width: 100%; height: auto; max-height: 1000px; object-fit: contain; margin: 25px auto; }
form { display: grid; gap: 18px; width: 100%; max-width: 650px; margin: 35px auto; }
label { display: grid; gap: 5px; min-width: 0; }
input, textarea, select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #bbb; background: white; }
textarea { min-height: 180px; resize: vertical; }
form button, .primary { padding: 12px 22px; background: #0000ff; color: white; text-align: center; min-height: 44px; }
#status { white-space: pre-wrap; color: #444; overflow-wrap: anywhere; }
body.editor main { max-width: 1000px; margin: auto; padding: 25px; }
#list { display: grid; gap: 10px; margin-top: 20px; }
#list button { text-align: left; padding: 15px; border: 1px solid #ddd; overflow-wrap: anywhere; min-width: 0; }
[hidden] { display: none !important; }
/* Small desktop / landscape tablet. */
@media (min-width: 769px) and (max-width: 991px) {
 header { padding-top: 30px; padding-bottom: 30px; font-size: 28px; }
 nav { gap: 12px 24px; }
 #about .top-menu--widgets { column-gap: 30px; }
}
/* WordPress tablet grid and stacked CV below its menu breakpoint. */
@media (max-width: 768px) {
 #grid { --columns: 2; }
 header { padding: 25px 5.5%; font-size: 26px; }
 nav { justify-content: flex-start; gap: 8px 24px; margin-top: 5px; }
 #about { padding: 30px 5.5%; }
 #about .top-menu--widgets { grid-template-columns: minmax(0, 1fr); gap: 20px; }
 #project h1 { font-size: 32px; }
 main { margin-bottom: 50px; }
}
/* WordPress phone breakpoint. */
@media (max-width: 480px) {
 #grid { --columns: 1; --gap: 25px; }
 header { font-size: 22px; gap: 12px; }
 header button { font-size: 16px; }
 header span { margin-left: 8px; }
 nav { gap: 4px 20px; margin-bottom: 24px; }
 .card h2 { font-size: 17px; }
 #project h1 { font-size: 28px; }
 #about h2, #about h3 { font-size: 22px; }
 footer { padding-top: 25px; padding-bottom: 25px; }
 body.editor main { padding: 20px; }
 body.editor h1 { font-size: 28px; }
}
@media (max-width: 360px) {
 header { font-size: 19px; }
 header button { font-size: 14px; }
 nav { gap: 4px 14px; font-size: 14px; }
}
