/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #f0f0eb;
  --fg:     #111111;
  --muted:  #666666;
  --accent: #b8926a;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
}


body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 3rem 1.25rem;
}

#app {
  max-width: 690px;
  margin: 0 auto;
}

/* Nav */
nav {
  margin-bottom: 1rem;
  display: flex;
  gap: 1.25rem;
  font-weight: bold;
  justify-content: center
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: 1.0rem;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

nav a:hover,
nav a.active { color: var(--fg); }


/* Footer */
footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  text-align: center;
 /*  border-top: 1px solid #eee; */
}



/* Banner */
/*
.banner {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #a8c5a0, #c8dfc4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.banner span {
  color: white;
  font-size: 2.5rem;
  font-family: system-ui, sans-serif;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 3px solid white;
  padding: 0.4rem 1.2rem;
}
*/

@keyframes gradshift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.banner {
  width: 100%;
  height: 200px;
  background: linear-gradient(270deg, #648a59, #7a9e6e, #648a59, #577a4d);
  background-size: 400% 400%;
  animation: gradshift 12s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.banner span {
  color: white;
  font-size: 2.5rem;
  font-family: system-ui, sans-serif;
  font-weight: 450;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}


/* Base elemets */
h1 {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 0.1rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: normal;
  margin: 2rem 0 0.5rem;
}

p { margin-bottom: 1.5rem; }

a { color: var(--accent); }



/* About page */

.contact-list {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contactImg {
  width: 4rem;
  height: auto;
}


/* Blog list */
.post-list { list-style: none; }

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

.post-list a {
  text-decoration: none;
  color: var(--fg);
}

.post-list a:hover { text-decoration: underline; }

.post-date,
.post-meta {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-bottom: 2rem;
}

/*Code*/
pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/*Mobile*/
@media (max-width: 480px) {
  body { padding: 2rem 1rem; }
  .post-list li { flex-direction: column; gap: 0.15rem; }
}


/* Landingpage Animation */
@font-face {
  font-family: 'Just Another Hand';
  src: url('/fonts/JustAnotherHand-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes write {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-hint {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.handwrite {
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: write 4s steps(120) forwards;
  font-family: 'Just Another Hand', cursive;
  font-size: 3.5rem;
}

.title-row {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
}

.click-hint {
  font-family: 'Just Another Hand', cursive;
  font-size: 1.05rem;
  white-space: nowrap;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  margin-top: -0.5rem;
  margin-left: 0.5rem;
  animation: fade-in 1s ease 4s forwards;
  animation: fade-in 1s ease 4s forwards, blink-hint 1.5s ease 5s infinite;
}

/* -- clock and terminal -- */

.widget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.widget-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#terminal-box {
  font-family: monospace;
  font-size: 13px;
  color: #a8c5a0;
  min-height: 180px;
  width: 100%;
}

.t-line { margin: 0; line-height: 1.7; }
.t-prompt { color: #a8c5a0; }
.t-cmd { color: #fff; }
.t-out { color: #888; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #a8c5a0;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 480px) {
  .widget-row { grid-template-columns: 1fr; }
}
