/*
* Bookshop v1.0
* Copyright 2026, Quotes - a bookshop, Inc
* Domain: http://quotesbookshop.org
* Author: Chuck Mallott
* style.css
*/

  
/* Colors
–––––––––––––––––––––––––––––––––––––––––––––––––– 

Ink				#101A24;
Gold			#FFD25A;
Linen			#F5F1E7;
Linen-100		#E6E3D9;
Linen-200		#D8D4CB;
Caramel			#BA822E;

*/
  

/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– 

Ships Whistle weights
* regular		400
* bold			700

Libre Baskerville weights
* regular		400
* medium		500
* semibold		600
* bold			700
*/

@font-face {
  font-family: 'Ships Whistle';
  src: url('/fonts/ShipsWhistle-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ships Whistle';
  src: url('/fonts/ShipsWhistle-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {

  /* Font families */
  --font-body: "Libre Baskerville", Georgia, serif;
  --font-display: "Ships Whistle", cursive;

  /* Type scale */
  --step--1: clamp(1rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0:  clamp(1.2rem, 0.96rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.4rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.6rem, 1.3rem + 0.6vw, 1.8rem);
  --step-3:  clamp(1.8rem, 1.6rem + 1vw, 2.4rem);
  --step-4:  clamp(2.4rem, 2rem + 1.5vw, 3.2rem);

  /* Line heights */
  --lh-tight: 1.25;
  --lh-normal: 1.6;
  --lh-loose: 1.9;

  /* Spacing rhythm */
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--lh-normal);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #101A24;
  background-color: #F5F1E7;
  margin: 0;
  	-webkit-font-smoothing: antialiased;
  	-moz-osx-font-smoothing: grayscale;
  }
  
::selection {
  background-color: #BA822E; /* The background color of the highlighted text */
  color: #fff;              /* The color of the highlighted text */
}
  
/* Larger than 750px */
@media (min-width: 750px) {
	body {
		font-size: 2.0rem;	
	}
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
}

h1, h2, h3 {
  font-weight: 400;
  line-height: var(--lh-normal);
  margin: 0 0 var(--space-sm);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-2); letter-spacing: -0.016em; }
h3 { font-size: var(--step-1); }

p {
  margin: 0 0 var(--space-sm);
  max-width: 65ch;
  font-size: var(--step-0);
}

.small {
	font-family: var(--font-display);
	font-size: var(--step-0);
	color: #101A24;
}

.small em {
	font-size: var(--step--1);
	font-style: normal;
}

.wrapper {
	border: 40px solid #fff;
}

.inner-wrapper {
	max-width: 1200px;
	margin: 6.0rem auto;
}

.page {
  max-width: 100%;
  margin: 0 auto;
}

/* NAV */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.nav nav a {
  margin-right: 24px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight:400;
  text-transform: uppercase;
  color: #101A24;
  padding: 6px 12px;
  border-radius: 4px;
}

.nav nav a:hover {
	color: #101A24;
	background: #D8D4CB;
	padding: 6px 12px;
	border-radius: 4px;
}

.logo img {
  height: 70px;
}


/* GRID SYSTEM */

.grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 64px;
}

.section {
  margin: 60px 0;
}

.section h2 {
  color: #b07a2b;
  font-size: var(--step-3);
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}


/* INTRO */

.lead {
  font-family: var(--font-body);
  font-size: var(--step-2);
  line-height: var(--lh-normal);
}



/* STORY */

.story {
  grid-template-columns: 180px 1fr 200px;
}

.portrait img {
  width: 100%;
  border-radius: 4px;
}


/* RULES */

hr {
  border: none;
  border-top: 12px solid #E6E3D9;
  margin: 50px 0;
}

a:link, a:visited, a:active {
	color: #BA822E;
}

a:hover {
	color: #101A24;
}


/* FOOTER */

.footer {
  grid-template-columns: 1fr 64px;
}

.footer p span {
	color: #BA822E;
	opacity: .64;
}


/* MEDIA QUERIES */

@media (max-width: 1320px) {
	.inner-wrapper {
		padding-left: 4rem;
		padding-right: 4rem;
	}

}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .story {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .nav nav {
    order: 2;
  }
  
  .nav nav a {
	  display: block;
	  margin-bottom: 1rem;
  }
  
.section {
  margin: 12px 0;
}

  .logo {
    order: 1;
  }
  
  .seal {
	  text-align: center;
	  height: 100px;
  }
  
  .intro-text {
	  margin-top: 8rem;
	  margin-bottom: 0;
  }
  
 .lead {
  font-family: var(--font-body);
  font-size: var(--step-1);
  }
  
 .portrait {
  display: block;
  margin: 0 auto;
  height:100px;
  width: 100px;
  }
  
 .footer {
	flex-direction: column;
    align-items: center;
	text-align: center;
 }
 
 .footer img {
 	display: block;
 	margin: 0 auto;
 }

 .wrapper {
	border: 20px solid #fff;
  }

	.inner-wrapper {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}
    
