/*
Theme Name: Terra Chroma
Theme URI: https://example.com/terra-chroma/  (Replace with your theme's URL)
Author: The Wandering Albatross 
Author URI: https://thewanderingalbatross.space/
Description: A unique, elegant, modern, and expressive WordPress theme for travel blogs, focusing on stunning imagery, immersive storytelling, and a distinctive color palette (Deep Teal-Indigo, Dusty Rosewood, Parchment, Spiced Saffron). Based on the Terra Chroma concept.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: travel, blog, photography, modern, elegant, responsive-layout, custom-colors, custom-menu, featured-images, translation-ready, one-column, two-columns, right-sidebar, left-sidebar (Adjust tags as needed)
Text Domain: terrachroma

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Variables
  ## Colors
  ## Typography
  ## Layout
# Normalize / Reset (Basic)
# Accessibility
# Base Styles
  ## Typography
  ## Links
  ## Forms (Basic)
  ## Buttons
# Layout
  ## Grid / Structure
  ## Header
  ## Navigation
  ## Content Area
  ## Posts and Pages
  ## Asides / Sidebar
  ## Footer
# Media Queries (Basic Responsive)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
  /* ## Colors */
  --color-primary-deep-tone: #2A3B49; /* Deep Teal-Indigo */
  --color-primary-lighter: #3E5060;
  --color-primary-darker: #1D2A35;

  --color-secondary-muted-tone: #A87C7C; /* Dusty Rosewood */
  --color-secondary-lighter: #C1A0A0;
  --color-secondary-darker: #8E5E5E;

  --color-neutral-base: #F5F2ED; /* Warm Off-White / Parchment */
  --color-neutral-subtle-variation: #F9F7F4; /* Slightly lighter for hover/blocks */

  --color-accent: #C99A30; /* Spiced Saffron (Slightly Muted) */
  --color-accent-bright: #E8B940; /* Brighter Saffron for interaction */

  --color-text-body: #333333; /* Dark Grey for readability */
  --color-text-light: #FFFFFF;
  --color-border-subtle: rgba(42, 59, 73, 0.15); /* Subtle border using primary */

  /* ## Typography */
  --font-primary: 'Montserrat', sans-serif; /* Example: Sophisticated Sans-Serif */
  --font-secondary: 'Lora', serif; /* Example: Readable Serif */
  --font-display: 'Playfair Display', serif; /* Optional Display Font */
  --global-line-height: 1.7;
  --font-size-base: 16px; /* Adjust as needed */

  /* ## Layout */
  --container-width: 1200px;
  --spacing-unit: 1.5rem; /* Base spacing unit */
}

/*--------------------------------------------------------------
# Normalize / Reset (Basic) - Add a more robust reset if needed
--------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul, figure, blockquote {
  margin: 0;
  padding: 0;
}

body {
  line-height: var(--global-line-height);
  font-size: var(--font-size-base);
  font-family: var(--font-secondary);
  color: var(--color-text-body);
  background-color: var(--color-neutral-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

ol, ul {
  list-style: none;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/

/* ## Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-primary-deep-tone);
  margin-bottom: calc(var(--spacing-unit) * 0.75);
  line-height: 1.3;
  font-weight: 600; /* Adjust weight as needed */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Optional Display Font Usage */
.site-title, /* Example usage */
.page-title { /* Example usage */
  /* font-family: var(--font-display); */
  /* font-weight: 700; */
}

p {
  margin-bottom: var(--spacing-unit);
}

blockquote {
  margin: 0 0 var(--spacing-unit) 0;
  padding: var(--spacing-unit);
  background-color: var(--color-secondary-lighter); /* Dusty Rosewood tint */
  border-left: 5px solid var(--color-secondary-muted-tone); /* Dusty Rosewood */
  font-style: italic;
  color: var(--color-secondary-darker);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ## Links */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
  color: var(--color-accent-bright);
  text-decoration: underline;
}

/* ## Forms (Basic) */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
  color: var(--color-text-body);
  border: 1px solid var(--color-border-subtle);
  border-radius: 4px;
  padding: 0.75em 1em;
  width: 100%;
  background-color: var(--color-neutral-subtle-variation);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--color-accent);
  outline: 2px solid transparent; /* Remove default */
  box-shadow: 0 0 0 2px var(--color-accent-bright); /* Focus indicator */
}

textarea {
  width: 100%;
}

/* ## Buttons */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link { /* Cover core block button */
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-primary-darker); /* High contrast */
  padding: 0.8em 1.5em;
  border: none;
  border-radius: 5px;
  font-family: var(--font-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  text-align: center;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
.wp-block-button__link:focus {
  background-color: var(--color-accent-bright);
  color: var(--color-primary-darker);
  text-decoration: none;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--color-primary-deep-tone); /* Focus indicator */
}

button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active,
.wp-block-button__link:active {
    transform: scale(0.98); /* Subtle press effect */
}


/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

/* ## Grid / Structure */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-unit);
  padding-right: var(--spacing-unit);
}

/* Basic two-column layout support */
.content-area {
  float: left;
  width: 100%;
  margin: 0;
  padding: calc(var(--spacing-unit) * 2) 0; /* Add vertical space */
}

.sidebar {
  float: right;
  width: 28%; /* Example width */
  margin-left: 4%; /* Example margin */
  padding-top: calc(var(--spacing-unit) * 2); /* Align top padding */
}

/* Clear floats */
.content-area::after,
.sidebar::after,
.container::after,
.site-header::after,
.site-footer::after {
  content: "";
  display: table;
  clear: both;
}

/* Style for when sidebar is active */
.has-sidebar .content-area {
    width: 68%; /* Adjust content width */
}

/* Style for full-width pages */
.no-sidebar .content-area {
    width: 100%;
    float: none;
}

/* ## Header */
.site-header {
  background-color: var(--color-primary-deep-tone); /* Deep Teal-Indigo */
  padding: var(--spacing-unit) 0;
  color: var(--color-neutral-base); /* Light text on dark background */
}

.site-branding {
  /* Adjust alignment as needed, e.g., using flexbox on .container */
  margin-bottom: var(--spacing-unit); /* Space below title/logo */
  text-align: center; /* Example */
}

.site-title {
  font-size: 2rem; /* Adjust size */
  font-family: var(--font-display); /* Use display font if desired */
  margin: 0;
  line-height: 1.2;
}
.site-title a {
  color: var(--color-neutral-base);
  text-decoration: none;
}
.site-title a:hover,
.site-title a:focus {
  color: var(--color-accent-bright);
  text-decoration: none;
}

.site-description {
  font-size: 0.9rem;
  color: var(--color-secondary-lighter); /* Dusty Rosewood tint for contrast */
  font-family: var(--font-primary);
  margin-top: 0.25rem;
}

/* ## Navigation */
.main-navigation {
  /* Add styles for your main menu */
  text-align: center; /* Example */
  font-family: var(--font-primary);
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block; /* Center the list */
}

.main-navigation ul li {
  display: inline-block; /* Horizontal menu */
  margin: 0 1em; /* Spacing between items */
  position: relative; /* For potential dropdowns */
}

.main-navigation a {
  color: var(--color-neutral-base);
  text-decoration: none;
  padding: 0.5em 0;
  display: block;
  font-weight: 500;
  position: relative; /* For underline effect */
  transition: color 0.2s ease;
}
.main-navigation a::after { /* Underline effect */
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  color: var(--color-accent-bright);
}
.main-navigation a:hover::after,
.main-navigation a:focus::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current-menu-ancestor > a::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Basic dropdown styles (add more for deeper levels) */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-primary-lighter); /* Slightly lighter primary */
  padding: 0.5em 0;
  min-width: 180px;
  z-index: 999;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.main-navigation ul li:hover > ul {
  display: block;
}

.main-navigation ul ul li {
  display: block;
  margin: 0;
}

.main-navigation ul ul a {
  padding: 0.75em 1.5em;
  width: 100%;
  color: var(--color-neutral-base);
}
.main-navigation ul ul a::after {
    display: none; /* No underline effect in dropdowns */
}

.main-navigation ul ul a:hover,
.main-navigation ul ul a:focus {
  background-color: var(--color-accent);
  color: var(--color-primary-darker);
}


/* ## Content Area */
.site-content {
  /* Main content wrapper */
  padding: 0; /* Remove padding if container handles it */
}

/* ## Posts and Pages */
.post,
.page {
  margin-bottom: calc(var(--spacing-unit) * 3); /* Space between posts */
  background-color: #fff; /* White background for contrast with parchment */
  padding: calc(var(--spacing-unit) * 1.5);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(42, 59, 73, 0.08); /* Subtle shadow */
  transition: box-shadow 0.3s ease;
}
.post:hover,
.page:hover {
    box-shadow: 0 5px 15px rgba(42, 59, 73, 0.12);
}


.entry-header {
  margin-bottom: var(--spacing-unit);
}

.entry-title {
  font-size: 1.8rem; /* Adjust as needed */
  margin-bottom: 0.25em;
}
.entry-title a {
  color: var(--color-primary-deep-tone);
  text-decoration: none;
}
.entry-title a:hover,
.entry-title a:focus {
  color: var(--color-accent);
  text-decoration: none;
}

.entry-meta {
  font-size: 0.85rem;
  color: var(--color-secondary-darker); /* Dusty Rosewood dark */
  font-family: var(--font-primary);
  margin-bottom: var(--spacing-unit);
}
.entry-meta a {
  color: var(--color-secondary-darker);
  text-decoration: underline;
}
.entry-meta a:hover,
.entry-meta a:focus {
  color: var(--color-accent);
}
.entry-meta span { /* Add spacing between meta items */
    margin-right: 1em;
}

.entry-content,
.entry-summary {
  margin-bottom: var(--spacing-unit);
}
.entry-content p:last-child,
.entry-summary p:last-child {
    margin-bottom: 0;
}

.entry-footer {
    font-size: 0.85rem;
    color: var(--color-secondary-darker);
    font-family: var(--font-primary);
    border-top: 1px solid var(--color-border-subtle);
    padding-top: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 1.5);
}
.entry-footer a {
    color: var(--color-secondary-darker);
}
.entry-footer a:hover,
.entry-footer a:focus {
    color: var(--color-accent);
}

/* Featured Image */
.post-thumbnail {
  margin-bottom: var(--spacing-unit);
}
.post-thumbnail img {
  border-radius: 5px; /* Slightly rounded corners for images */
  display: block;
  width: 100%;
}

/* Hint at Asymmetry (Example: slight offset on even posts) */
/* This is a VERY basic example. Real asymmetry needs more complex CSS/Grid/Flexbox */
/*
.blog .post:nth-child(even) {
    margin-left: 2%;
    margin-right: -2%;
}
*/

/* Read More Link */
.read-more-link {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    margin-top: var(--spacing-unit);
    transition: color 0.2s ease;
}
.read-more-link:hover,
.read-more-link:focus {
    color: var(--color-accent-bright);
    text-decoration: underline;
}


/* ## Asides / Sidebar */
.widget-area {
  /* Styles for the sidebar container */
}

.widget {
  margin-bottom: calc(var(--spacing-unit) * 2);
  padding: var(--spacing-unit);
  background-color: var(--color-neutral-subtle-variation); /* Use subtle variation */
  border-radius: 5px;
  border-left: 4px solid var(--color-secondary-muted-tone); /* Dusty Rosewood accent */
}

.widget-title {
  font-size: 1.2rem;
  color: var(--color-primary-deep-tone);
  margin-bottom: var(--spacing-unit);
  font-family: var(--font-primary);
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 0.5em;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  margin-bottom: 0.75em;
  padding-bottom: 0.75em;
  border-bottom: 1px dotted var(--color-border-subtle);
}
.widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget ul li a {
  text-decoration: none;
  color: var(--color-text-body);
}
.widget ul li a:hover,
.widget ul li a:focus {
  color: var(--color-accent);
}

/* ## Footer */
.site-footer {
  background-color: var(--color-primary-darker); /* Darkest Teal-Indigo */
  color: var(--color-secondary-lighter); /* Dusty Rosewood tint for text */
  padding: calc(var(--spacing-unit) * 2) 0;
  margin-top: calc(var(--spacing-unit) * 2);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: var(--color-neutral-base); /* Lighter link color */
  text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--color-accent-bright);
}

.site-info {
  /* Styles for copyright/credits */
}


/*--------------------------------------------------------------
# Media Queries (Basic Responsive)
--------------------------------------------------------------*/

/* Example: Adjust layout for smaller screens */
@media screen and (max-width: 768px) {
  .has-sidebar .content-area,
  .sidebar {
    width: 100%;
    float: none;
    margin-left: 0;
  }

  .sidebar {
      padding-top: 0;
      margin-top: calc(var(--spacing-unit) * 2);
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .main-navigation ul li {
      margin: 0 0.5em; /* Reduce nav spacing */
  }

  .site-header, .site-footer {
      text-align: center;
  }
  .site-branding, .main-navigation {
      text-align: center;
  }

}

/* Example: Adjustments for very small screens */
@media screen and (max-width: 480px) {
    :root {
        --font-size-base: 15px;
        --spacing-unit: 1.2rem;
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }

    .main-navigation ul li {
        display: block; /* Stack navigation */
        margin: 0.5em 0;
    }
    .main-navigation ul ul {
        position: static; /* Un-nest dropdowns */
        background: none;
        box-shadow: none;
        padding-left: 1em; /* Indent sub-items */
    }
    .main-navigation ul ul a {
        color: var(--color-neutral-base); /* Adjust color if needed */
        padding: 0.5em 1em;
    }
     .main-navigation ul ul a:hover,
     .main-navigation ul ul a:focus {
         background: none;
         color: var(--color-accent-bright);
     }

    .post, .page {
        padding: var(--spacing-unit);
    }
}
