/**
 * Typography
 * Base typography styles and utilities
 */

/* Base typography */
body {
    font-family: var(--font-family-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* All paragraphs and body text use Work Sans */
p, .body-text {
    font-family: var(--font-family-primary);
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

/* Headings use Playfair Display */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-secondary);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 300;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 300;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 300;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 300;
}

h5 {
    font-size: var(--text-lg);
    font-weight: 300;
}

h6 {
    font-size: var(--text-base);
    font-weight: 300;
}

/* Paragraphs */
p {
    font-family: var(--font-family-primary);
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

/* Links */
a {
    font-family: var(--font-family-primary);
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Lists */
ul, ol {
    font-family: var(--font-family-primary);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    font-family: var(--font-family-primary);
    margin-bottom: var(--spacing-sm);
}

/* Blockquotes */
blockquote {
    font-family: var(--font-family-primary);
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--text-light);
}

blockquote p {
    margin-bottom: 0;
}

/* Code */
code {
    background-color: var(--background-gray);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

pre {
    background-color: var(--background-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

pre code {
    background: none;
    padding: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
}

th, td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--background-gray);
}

/* Typography utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.italic { font-style: italic; }
.not-italic { font-style: normal; }

/* Menu typography */
.menu-links a {
    font-family: var(--font-family-menu);
}

/* Header navigation */
.header-nav a {
    font-family: var(--font-family-primary);
}

/* Button text */
.btn-book, .menu-book {
    font-family: var(--font-family-primary);
}
