* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Open Sans, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fff;
}

/* Directory Section */
.directory-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.dir-header {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
}

.dir-header h1 {
    font-family: Cormorant Garamond, serif;
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    font-weight: 400;
    font-style: italic;
    color: #000;
}

.subtitle {
    font-family: Cormorant Garamond, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.category-link {
    font-family: Cormorant Garamond, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 0.5px; /* thinner line */
    text-decoration-color: #bbb;   /* softer grey instead of black */
    text-underline-offset: 3px;    /* small gap between text & underline */
    padding: 0.3rem 1rem;
    transition: color 0.2s ease;
    text-align: center;
}

.category-link:hover {
    color: #666;
}

/* Content Sections */
main {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

section {
    padding: 2rem 0;
    border-bottom: 1px solid #f0f0f0;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-family: Cormorant Garamond, serif;
    font-style: italic;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    color: #000;
    font-weight: 500;
}

.item-line {
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5;
}

.item-text {
    font-family: Open Sans, sans-serif;
    font-size: 0.9rem;
    color: #222;
}

.item-note {
    font-style: italic;
    color: #333;
    font-family: Open Sans, sans-serif;
    font-size: 0.8rem;
}

.pill {
    display: inline-block;
    /* background: #000; */
    /* color: #fff; */
    background:#f0f0f0;
    color:#222;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: Open Sans, sans-serif;
}

.prep-section {
    margin-top: 0.3rem;     /* less space above */
    margin-bottom: 1rem;    /* more space below */
    padding-left: 1rem;
}

.prep-item {
    margin: 0.3rem 0;
    color: #333;
    font-size: 0.8rem;
}

.serve-section {
    margin-top: 0.5rem;
    color: #333;
    font-size: 0.8rem;
    padding-left: 1rem;
}

.method-section {
    margin-bottom: 2rem;    /* more space below */
    /* padding-left: 1rem; */
}

.method-item {
    /* margin: 0.3rem 0; */
    color: #333;
    font-size: 0.8rem;
}

/* Footer */
footer {
    background: #fafafa;
    padding: 3rem 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
    min-height: 100vh; /* or 100svh for mobile */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center;
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-content h2 {
    font-family: Cormorant Garamond, serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #444;
}

.about-content a {
    /* margin-top: 2rem; */
    display: inline-block;
    font-size: 0.7rem;
    text-decoration: none;
    color: #555;
    border-bottom: 1px solid #aaa;
    transition: color 0.2s ease;
  }
  
  .about-content a:hover {
    color: #000;
  }

.philosophy {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #555;
    text-align: center;
}

.philosophy em {
    font-style: italic;
}

.philosophy strong {
    font-weight: 600;
    color: #000;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .dir-header h1 {
        font-size: 2.5rem;
    }
    
    .directory {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    main {
        padding: 1.5rem 1rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .dir-header h1 {
        font-size: 2rem;
    }
    
    .directory {
        grid-template-columns: 1fr 1fr; /* Force exactly 2 columns */
        font-size: 0.9rem; /* Smaller text */
    }
}