/* ===== Cozy Sandy-Wood Theme ===== */

:root {
    --bg-main: #F5E6C8;
    --bg-card: #E8D5A8;
    --wood-light: #C89B5E;
    --wood-dark: #8B5A2B;
    --accent: #D9B44A;
    --text-main: #2B2B2B;
    --border-soft: #D4C29A;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Nunito", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* ===== Navbar ===== */

.navbar {
    background: var(--wood-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--wood-dark);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
}

nav a:hover {
    color: var(--wood-dark);
}

/* ===== Layout ===== */

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ===== Hero ===== */

.hero {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-soft);
    text-align: center;
    margin-bottom: 2rem;
}

.hero h2 {
    margin-bottom: 1rem;
}

/* ===== Button ===== */

.primary-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--wood-light);
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.primary-btn:hover {
    background: var(--wood-dark);
    color: white;
}

/* ===== Cards ===== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Standard static card (About hero etc) */
.card, .about-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 14px;
    border: 2px solid var(--border-soft);
    transition: transform 0.15s ease;
}

.card:hover, .about-card:hover {
    transform: translateY(-5px);
}

/* ===== Clickable Card Buttons ===== */

.card-button {
    display: block;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 14px;
    border: 2px solid var(--border-soft);
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
    cursor: pointer;
}

.card-button h3 {
    margin-bottom: 0.5rem;
}

.card-button:hover {
    transform: translateY(-5px);
    background: #EEDFB7; /* slightly lighter sand */
    box-shadow: 0 6px 0 var(--wood-dark);
}

.card-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 0 var(--wood-dark);
}

.card-button:focus {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ===== Footer ===== */

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    background: var(--wood-light);
    border-top: 4px solid var(--wood-dark);
}

/* ===== About Page ===== */

.about-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-soft);
    max-width: 700px;
    margin: 0 auto;
}

.about-card h2 {
    margin-bottom: 1rem;
}

.about-card p {
    margin-bottom: 1rem;
}

.about-list {
    list-style: none;
    padding-left: 0;
}

.about-list li {
    margin-bottom: 0.5rem;
}

.small-note {
    opacity: 0.7;
    font-size: 0.95rem;
}

/* ===== Code blocks ===== */

pre {
    background: #F0E6D2; /* light parchment feel */
    border: 2px solid var(--border-soft);
    border-radius: 12px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-main);
    margin: 1rem 0;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

pre code span.keyword {
    color: #C96A4A; /* clay red */
    font-weight: bold;
}

pre code span.string {
    color: #8FAF7B; /* muted green */
}

.blog-image {
  display: block;
  width: 100%;        /* always full width of card content */
  max-width: 100%;    /* never overflow */
  height: auto;       /* preserve aspect ratio */
  margin: 2rem 0;
  border-radius: 10px;
  border: 1px solid #cdbb90;
  background: #f8f1df;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.header-banner {
  width: 100%;
  height: 400px; /* adjust height as needed */
  background-image: url('assets/images/japanese_village.png');
  background-size: cover;        /* make sure it fills the banner */
  background-position: center;   /* center the important part of the image */
  background-repeat: no-repeat;
  border-radius: 0 0 20px 20px; /* optional: rounded bottom corners */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* optional shadow */
  margin-bottom: 2rem;          /* space below the banner */
  position: relative;
}

/* Optional overlay to make text on banner readable */
.header-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.2); /* semi-transparent overlay */
  border-radius: 0 0 20px 20px;
}

* {
  cursor: url('assets/images/rake.png') 16 10, auto;
}